summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-01-18 12:05:13 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-01-18 12:05:13 +0100
commitfec96c85a4d71f20d3de9791163a9a1f932c8e48 (patch)
tree4ed269f4e0079e3f21f83ea3f8cd8aebbf60ebe0 /modules
parent9022768d0d9a869d90767c079ce7d76a07e2f5ff (diff)
window: Moving around directories
Diffstat (limited to 'modules')
-rw-r--r--modules/window/.nix/derivation.nix8
-rw-r--r--modules/window/c++/SConscript (renamed from modules/window/SConscript)8
-rw-r--r--modules/window/c++/backends.h (renamed from modules/window/backends.h)0
-rw-r--r--modules/window/c++/device.h (renamed from modules/window/device.h)0
-rw-r--r--modules/window/c++/linux_xcb.h (renamed from modules/window/linux_xcb.h)0
-rw-r--r--modules/window/c++/video_mode.h (renamed from modules/window/video_mode.h)0
-rw-r--r--modules/window/c++/window.h (renamed from modules/window/window.h)0
-rw-r--r--modules/window/c++/xcb.cpp (renamed from modules/window/xcb.cpp)0
-rw-r--r--modules/window/c++/xcb.h (renamed from modules/window/xcb.h)0
9 files changed, 11 insertions, 5 deletions
diff --git a/modules/window/.nix/derivation.nix b/modules/window/.nix/derivation.nix
index 67a682c..2b15505 100644
--- a/modules/window/.nix/derivation.nix
+++ b/modules/window/.nix/derivation.nix
@@ -28,7 +28,13 @@ in stdenv.mkDerivation {
forstio.codec
xorg.libX11
xorg.libxcb
- ];
+ ];
+
+ doCheck = true;
+ checkPhase = ''
+ scons test
+ ./bin/tests
+ '';
outputs = ["out" "dev"];
}
diff --git a/modules/window/SConscript b/modules/window/c++/SConscript
index bd830b9..10d88c6 100644
--- a/modules/window/SConscript
+++ b/modules/window/c++/SConscript
@@ -21,18 +21,18 @@ env.headers += window_env.headers;
## Shared lib
objects_shared = []
window_env.add_source_files(objects_shared, window_env.sources, shared=True);
-window_env.library_shared = window_env.SharedLibrary('#build/forstio-window', [objects_shared]);
+env.library_shared = window_env.SharedLibrary('#build/forstio-window', [objects_shared]);
## Static lib
objects_static = []
window_env.add_source_files(objects_static, window_env.sources, shared=False);
-window_env.library_static = window_env.StaticLibrary('#build/forstio-window', [objects_static]);
+env.library_static = window_env.StaticLibrary('#build/forstio-window', [objects_static]);
# Set Alias
-env.Alias('library_window', [window_env.library_shared, window_env.library_static]);
+env.Alias('library_window', [env.library_shared, env.library_static]);
env.targets += ['library_window'];
# Install
-env.Install('$prefix/lib/', [window_env.library_shared, window_env.library_static]);
+env.Install('$prefix/lib/', [env.library_shared, env.library_static]);
env.Install('$prefix/include/forstio/window/', [window_env.headers]);
diff --git a/modules/window/backends.h b/modules/window/c++/backends.h
index e129037..e129037 100644
--- a/modules/window/backends.h
+++ b/modules/window/c++/backends.h
diff --git a/modules/window/device.h b/modules/window/c++/device.h
index 6a28cd5..6a28cd5 100644
--- a/modules/window/device.h
+++ b/modules/window/c++/device.h
diff --git a/modules/window/linux_xcb.h b/modules/window/c++/linux_xcb.h
index 65ff94d..65ff94d 100644
--- a/modules/window/linux_xcb.h
+++ b/modules/window/c++/linux_xcb.h
diff --git a/modules/window/video_mode.h b/modules/window/c++/video_mode.h
index a8f1695..a8f1695 100644
--- a/modules/window/video_mode.h
+++ b/modules/window/c++/video_mode.h
diff --git a/modules/window/window.h b/modules/window/c++/window.h
index 0e8d051..0e8d051 100644
--- a/modules/window/window.h
+++ b/modules/window/c++/window.h
diff --git a/modules/window/xcb.cpp b/modules/window/c++/xcb.cpp
index 1b804ba..1b804ba 100644
--- a/modules/window/xcb.cpp
+++ b/modules/window/c++/xcb.cpp
diff --git a/modules/window/xcb.h b/modules/window/c++/xcb.h
index a2a9b0b..a2a9b0b 100644
--- a/modules/window/xcb.h
+++ b/modules/window/c++/xcb.h