This commit adds the build option for NPU data manipulation.
As HW could provide this feature in the near future, it is enabled by
the build option.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
rm -rf debian/tmp
override_dh_auto_configure:
- PKG_CONFIG_PATH=${NPU_TRINITY_INSTALL_PREFIX}/lib/pkgconfig meson --buildtype=plain --prefix=$(NPU_TRINITY_INSTALL_PREFIX) --sysconfdir=$(NPU_TRINITY_INSTALL_PREFIX)/etc --libdir=lib --bindir=bin --includedir=include build -Denable_npu_emul=true
+ PKG_CONFIG_PATH=${NPU_TRINITY_INSTALL_PREFIX}/lib/pkgconfig meson --buildtype=plain --prefix=$(NPU_TRINITY_INSTALL_PREFIX) --sysconfdir=$(NPU_TRINITY_INSTALL_PREFIX)/etc --libdir=lib --bindir=bin --includedir=include build -Denable_npu_emul=true -Denable_data_manip=true
override_dh_auto_build:
ninja -C build
add_project_arguments('-I/opt/trinity/include', language: ['c', 'cpp'])
add_project_arguments('-DENABLE_EMUL', language: ['c', 'cpp'])
endif
+if get_option('enable_data_manip')
+ add_project_arguments('-DENABLE_MANIP', language: ['c', 'cpp'])
+endif
subdir('src')
subdir('tools')
option('working_dir', type : 'string', value : '/tmp/')
option('log_dir', type : 'string', value : '/tmp/')
option('enable_npu_emul', type : 'boolean', value : false)
+option('enable_data_manip', type : 'boolean', value : false)
CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
%endif
-meson build --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_libdir} --includedir=%{_includedir} --bindir=%{neexampledir} -Denable_npu_emul=%{enable_npu_emul}
+meson build --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_libdir} --includedir=%{_includedir} --bindir=%{neexampledir} -Denable_npu_emul=%{enable_npu_emul} -Denable_data_manip=true
ninja -C build %{?_smp_mflags}
%install