From 708d3c9fc07e8b27770e365696d8867599b3ae93 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 24 Oct 2018 10:34:27 +0100 Subject: 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 --- lib/main.cpp | 13 +++++++++++++ lib/meson.build | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 lib/main.cpp create mode 100644 lib/meson.build (limited to 'lib') 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 + +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) -- cgit v1.2.1