Overhaul the directory structure

In order to match the directory structure of traditional projects,
rename the top-level lib/ directory to src/libcamera/. Other libraries
developed as part of the project will later find a home in src/.

Split the libcamera header files in three categories: public headers
describing the public API in include/libcamera/, internal headers
describing the internal API in src/libcamera/include/, and private
headers local to one or a small number of compilation units along the
corresponding .cpp files. As no internal header exists yet the
src/libcamera/include/ directory is created empty as the build system
would fail otherwise.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2018-12-04 23:38:48 +02:00
parent 0713202dc0
commit 913b3ee817
6 changed files with 10 additions and 4 deletions

View File

17
src/libcamera/main.cpp Normal file
View File

@@ -0,0 +1,17 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2018, Google Inc.
*
* main.cpp - libcamera main class
*/
#include <iostream>
#include <libcamera/libcamera.h>
using std::cout;
using std::endl;
void libcamera::init_lib(void)
{
cout << "Lib Camera Init" << endl;
}

11
src/libcamera/meson.build Normal file
View File

@@ -0,0 +1,11 @@
sources = ['main.cpp']
includes = [
libcamera_includes,
include_directories('include'),
]
libcamera = shared_library('camera',
sources,
install : true,
include_directories : includes)

1
src/meson.build Normal file
View File

@@ -0,0 +1 @@
subdir('libcamera')