endif
+capi_inc = []
+if not get_option('enable-tizen')
+ capi_inc += include_directories ('include/platform')
+endif
inc = include_directories('include')
nninc = include_directories('../../gst')
-capi_inc = [inc, nninc]
+capi_inc += [inc, nninc]
capi_main = []
capi_main += join_paths(meson.current_source_dir(), 'src', 'nnstreamer-capi-pipeline.c')
if get_option('enable-tizen')
# header for Tizen internal API
capi_devel_main += join_paths(meson.current_source_dir(), 'include', 'nnstreamer-tizen-internal.h')
+else
+ capi_devel_main += join_paths(meson.current_source_dir(), 'include', 'platform', 'tizen_error.h')
endif
# Dependencies
override_dh_install:
dh_install --sourcedir=debian/tmp --list-missing
- patch -R -p1 -i ./packaging/non_tizen_build.patch
# Add --fail-missing option after adding *.install files for all subpackages.
# This also enables nnfw as a subplugin for Tizen.
endif
-# Patch for non-tizen build
-patch_file = join_paths(meson.current_source_dir(), 'packaging', 'non_tizen_build.patch')
-if (not get_option('enable-tizen')) and get_option('enable-capi')
- r = run_command('patch', '-R', '--dry-run', '-sfp1', '-i', patch_file)
- if (r.returncode() != 0)
- r = run_command('patch', '-p1', '-i', patch_file)
- if (r.returncode() != 0)
- message('Non-Tizen mode support failed')
- endif
- endif
- message('CAPI is in non-Tizen mode')
-endif
-
# Build nnstreamer (common, plugins)
subdir('gst')