summaryrefslogtreecommitdiff
path: root/modules/png/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/png/c++')
-rw-r--r--modules/png/c++/SConscript27
-rw-r--r--modules/png/c++/png.cpp1
-rw-r--r--modules/png/c++/png.hpp7
3 files changed, 35 insertions, 0 deletions
diff --git a/modules/png/c++/SConscript b/modules/png/c++/SConscript
new file mode 100644
index 0000000..75b8645
--- /dev/null
+++ b/modules/png/c++/SConscript
@@ -0,0 +1,27 @@
+#!/bin/false
+
+import os
+import os.path
+import glob
+
+
+Import('env')
+
+dir_path = Dir('.').abspath
+
+# Environment for base library
+png_env = env.Clone();
+
+png_env.sources = sorted(glob.glob(dir_path + "/*.cpp"));
+png_env.headers = sorted(glob.glob(dir_path + "/*.hpp"));
+
+env.sources += png_env.sources;
+env.headers += png_env.headers;
+
+## Static lib
+objects = []
+png_env.add_source_files(objects, png_env.sources, shared=False);
+env.library_static = png_env.StaticLibrary('#build/kel-lbm-png', [objects]);
+
+env.Install('$prefix/lib/', env.library_static);
+env.Install('$prefix/include/kel/lbm/png/', png_env.headers);
diff --git a/modules/png/c++/png.cpp b/modules/png/c++/png.cpp
new file mode 100644
index 0000000..248a8a5
--- /dev/null
+++ b/modules/png/c++/png.cpp
@@ -0,0 +1 @@
+#include "png.hpp"
diff --git a/modules/png/c++/png.hpp b/modules/png/c++/png.hpp
new file mode 100644
index 0000000..f675a99
--- /dev/null
+++ b/modules/png/c++/png.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+namespace kel {
+namespace lbm {
+
+}
+}