summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-10-24 10:34:27 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2018-10-24 12:22:19 +0100
commit708d3c9fc07e8b27770e365696d8867599b3ae93 (patch)
tree441bf83273fd718d43d6624ac0492eea60e20f17 /lib
parent87ba17ba41f2c540efe9ecd46379477282852642 (diff)
build: Provide initial meson infrastructure
Define the starting points for the libcamera build using meson and ninja build components. An initial 'dummy' library class is created, and a test binary links against the shared library calling it's init_lib() function. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/main.cpp13
-rw-r--r--lib/meson.build5
2 files changed, 18 insertions, 0 deletions
diff --git a/lib/main.cpp b/lib/main.cpp
new file mode 100644
index 00000000..7b3da269
--- /dev/null
+++ b/lib/main.cpp
@@ -0,0 +1,13 @@
+#include <iostream>
+
+namespace libcamera {
+
+using std::cout;
+using std::endl;
+
+void init_lib(void)
+{
+ cout << "Lib Camera Init" << endl;
+}
+
+};
diff --git a/lib/meson.build b/lib/meson.build
new file mode 100644
index 00000000..37876cee
--- /dev/null
+++ b/lib/meson.build
@@ -0,0 +1,5 @@
+sources = ['main.cpp']
+
+libcamera = shared_library('camera',
+ sources,
+ include_directories : inc)