c++: Moved to new lib dep structure
parent
7f5b37f3ef
commit
0a0f06c925
|
@ -23,7 +23,9 @@ stdenvNoCC.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
forstio
|
forstio.core
|
||||||
|
forstio.async
|
||||||
|
forstio.io
|
||||||
xorg.libxcb
|
xorg.libxcb
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
libGL
|
libGL
|
||||||
|
|
|
@ -42,11 +42,11 @@ env_vars.Add('prefix',
|
||||||
validator=isAbsolutePath
|
validator=isAbsolutePath
|
||||||
)
|
)
|
||||||
|
|
||||||
env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=['#source','#','#driver'],
|
env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=['#source','#driver'],
|
||||||
CXX='clang++',
|
CXX='clang++',
|
||||||
CPPDEFINES=['SAW_UNIX_XCB'],
|
CPPDEFINES=['SAW_UNIX_XCB'],
|
||||||
CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
|
CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
|
||||||
LIBS=['forstio','xcb','X11','X11-xcb'])
|
LIBS=['forstio-core','forstio-async','forstio-io','xcb','X11','X11-xcb'])
|
||||||
env.__class__.add_source_files = add_kel_source_files
|
env.__class__.add_source_files = add_kel_source_files
|
||||||
env.Tool('compilation_db');
|
env.Tool('compilation_db');
|
||||||
env.cdb = env.CompilationDatabase('compile_commands.json');
|
env.cdb = env.CompilationDatabase('compile_commands.json');
|
||||||
|
|
30
default.nix
30
default.nix
|
@ -1,18 +1,24 @@
|
||||||
{ pkgs ? import <nixpkgs> {
|
{ pkgs ? import <nixpkgs> {}
|
||||||
overlays = [
|
|
||||||
(import ((builtins.fetchGit {
|
|
||||||
url = "gitea@git.keldu.de:nixos/kelducfg.git";
|
|
||||||
ref = "master";
|
|
||||||
}).outPath + "/overlays/default.nix"))
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
forstio = import ((builtins.fetchGit {
|
forstio = {
|
||||||
url = "gitea@git.keldu.de:forstio/forstio.git";
|
core =
|
||||||
ref = "dev";
|
import ((builtins.fetchGit {
|
||||||
}).outPath + "/default.nix") {};
|
url = "gitea@git.keldu.de:forstio/forstio-core.git";
|
||||||
|
ref = "master";
|
||||||
|
}).outPath + "/default.nix") {};
|
||||||
|
async =
|
||||||
|
import ((builtins.fetchGit {
|
||||||
|
url = "gitea@git.keldu.de:forstio/forstio-async.git";
|
||||||
|
ref = "master";
|
||||||
|
}).outPath + "/default.nix") {};
|
||||||
|
io =
|
||||||
|
import ((builtins.fetchGit {
|
||||||
|
url = "gitea@git.keldu.de:forstio/forstio-io.git";
|
||||||
|
ref = "master";
|
||||||
|
}).outPath + "/default.nix") {};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
pkgs.callPackage ./.nix/derivation.nix {
|
pkgs.callPackage ./.nix/derivation.nix {
|
||||||
inherit forstio;
|
inherit forstio;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <X11/Xlib-xcb.h>
|
#include <X11/Xlib-xcb.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <forstio/io.h>
|
#include <forstio/io/io.h>
|
||||||
#include <xcb/xcb.h>
|
#include <xcb/xcb.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <forstio/async.h>
|
#include <forstio/async/async.h>
|
||||||
#include <forstio/common.h>
|
#include <forstio/common.h>
|
||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "../video_mode.h"
|
#include "../video_mode.h"
|
||||||
#include "../window.h"
|
#include "../window.h"
|
||||||
|
|
||||||
#include <forstio/async.h>
|
#include <forstio/async/async.h>
|
||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <forstio/async.h>
|
#include <forstio/async/async.h>
|
||||||
#include <forstio/common.h>
|
#include <forstio/common.h>
|
||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
Loading…
Reference in New Issue