include: Install include files

The include directory was defined but not installed.

Add it to the meson build structure to incorporate it as part of the
library install.

To facilitate the same include paths in our internal includes, update
the structure for headers to match the install structure.

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2018-11-26 10:32:13 +00:00
parent 88c35c9084
commit 66051636c5
5 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,6 @@
public_api = [
'libcamera.h',
]
install_headers(public_api,
subdir : 'libcamera')

1
include/meson.build Normal file
View file

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

View file

@ -4,6 +4,7 @@ project('libcamera - supporting complex camera pipelines', 'c', 'cpp',
inc = include_directories('include')
subdir('include')
subdir('lib')
subdir('test')
subdir('utils')

View file

@ -1,4 +1,4 @@
#include <libcamera.h>
#include <libcamera/libcamera.h>
int main(void)
{