ipa: Move vimc to a subdirectory
Give a subdirectory to all IPA modules to make the structure of the source tree more consistent. This will also simplify the implementation of IPA module selection at build time. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
5e8933eeeb
commit
a25533089b
3 changed files with 18 additions and 19 deletions
|
@ -1,8 +1,3 @@
|
||||||
ipa_vimc_sources = [
|
|
||||||
['ipa_vimc', 'LGPL-2.1-or-later'],
|
|
||||||
['ipa_vimc_isolate', 'Proprietary'],
|
|
||||||
]
|
|
||||||
|
|
||||||
ipa_install_dir = join_paths(get_option('libdir'), 'libcamera')
|
ipa_install_dir = join_paths(get_option('libdir'), 'libcamera')
|
||||||
|
|
||||||
ipa_includes = [
|
ipa_includes = [
|
||||||
|
@ -10,20 +5,9 @@ ipa_includes = [
|
||||||
libcamera_internal_includes,
|
libcamera_internal_includes,
|
||||||
]
|
]
|
||||||
|
|
||||||
subdir('libipa')
|
|
||||||
|
|
||||||
foreach t : ipa_vimc_sources
|
|
||||||
ipa = shared_module(t[0], 'ipa_vimc.cpp',
|
|
||||||
name_prefix : '',
|
|
||||||
include_directories : ipa_includes,
|
|
||||||
dependencies : libcamera_dep,
|
|
||||||
link_with : libipa,
|
|
||||||
install : true,
|
|
||||||
install_dir : ipa_install_dir,
|
|
||||||
cpp_args : '-DLICENSE="' + t[1] + '"')
|
|
||||||
endforeach
|
|
||||||
|
|
||||||
config_h.set('IPA_MODULE_DIR',
|
config_h.set('IPA_MODULE_DIR',
|
||||||
'"' + join_paths(get_option('prefix'), ipa_install_dir) + '"')
|
'"' + join_paths(get_option('prefix'), ipa_install_dir) + '"')
|
||||||
|
|
||||||
|
subdir('libipa')
|
||||||
subdir('rkisp1')
|
subdir('rkisp1')
|
||||||
|
subdir('vimc')
|
||||||
|
|
15
src/ipa/vimc/meson.build
Normal file
15
src/ipa/vimc/meson.build
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
ipa_vimc_sources = [
|
||||||
|
['ipa_vimc', 'LGPL-2.1-or-later'],
|
||||||
|
['ipa_vimc_isolate', 'Proprietary'],
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach t : ipa_vimc_sources
|
||||||
|
ipa = shared_module(t[0], 'vimc.cpp',
|
||||||
|
name_prefix : '',
|
||||||
|
include_directories : [ipa_includes, libipa_includes],
|
||||||
|
dependencies : libcamera_dep,
|
||||||
|
link_with : libipa,
|
||||||
|
install : true,
|
||||||
|
install_dir : ipa_install_dir,
|
||||||
|
cpp_args : '-DLICENSE="' + t[1] + '"')
|
||||||
|
endforeach
|
|
@ -17,7 +17,7 @@
|
||||||
#include <ipa/ipa_interface.h>
|
#include <ipa/ipa_interface.h>
|
||||||
#include <ipa/ipa_module_info.h>
|
#include <ipa/ipa_module_info.h>
|
||||||
|
|
||||||
#include "libipa/ipa_interface_wrapper.h"
|
#include <libipa/ipa_interface_wrapper.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue