# Tensorflow
have_tensorflow = false
-if get_option('ENABLE_TENSORFLOW')
+if get_option('enable-tensorflow')
tf_dep = dependency('tensorflow', required: true)
protobuf_dep = dependency('protobuf', version: '>= 3.4.0', required: true)
# Tensorflow-lite
have_tensorflow_lite = false
-if get_option('ENABLE_TENSORFLOW_LITE')
+if get_option('enable-tensorflow-lite')
tflite_dep = dependency('tensorflow-lite', required: true)
if tflite_dep.found()
subdir('nnstreamer_example')
# Build unittests
-if get_option('ENABLE_TEST')
+if get_option('enable-test')
subdir('tests')
endif
-option('ENABLE_TEST', type: 'boolean', value: true)
-option('ENABLE_TENSORFLOW_LITE', type: 'boolean', value: true)
-option('ENABLE_TENSORFLOW', type: 'boolean', value: true)
-option('INSTALL_EXAMPLES', type: 'boolean', value: false)
+option('enable-test', type: 'boolean', value: true)
+option('enable-tensorflow-lite', type: 'boolean', value: true)
+option('enable-tensorflow', type: 'boolean', value: true)
+option('install-example', type: 'boolean', value: false)
'dummy_LSTM.c',
dependencies: [libm_dep],
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
dummyRNN = shared_library('dummyRNN',
'dummy_RNN.c',
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
nnstreamer_customfilter_average = shared_library('nnstreamer_customfilter_average',
'nnstreamer_customfilter_example_average.c',
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
'nnstreamer_customfilter_opencv_scaler.cc',
dependencies: [glib_dep, opencv_dep],
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
'nnstreamer_customfilter_opencv_average.cc',
dependencies: [glib_dep, opencv_dep],
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
nnstreamer_customfilter_passthrough = shared_library('nnstreamer_customfilter_passthrough',
'nnstreamer_customfilter_example_passthrough.c',
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
nnstreamer_customfilter_passthrough_variable = shared_library('nnstreamer_customfilter_passthrough_variable',
'nnstreamer_customfilter_example_passthrough_variable.c',
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
'nnstreamer_customfilter_example_scaler.c',
dependencies: [glib_dep],
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
'nnstreamer_customfilter_example_scaler_allocator.c',
dependencies: [glib_dep],
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: subplugins_install_dir
)
nnstreamer_example_cam = executable('nnstreamer_example_cam',
'nnstreamer_example_cam.c',
dependencies: [glib_dep, gst_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
nnstreamer_example_decoder_image_labelling = executable('nnstreamer_example_decoder_image_labelling',
'nnstreamer_example_decoder_image_labelling.c',
dependencies: [glib_dep, gst_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
nnstreamer_example_filter = executable('nnstreamer_example_filter',
'nnstreamer_example_filter.c',
dependencies: [glib_dep, gst_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
nnstreamer_example_filter_performance_profile = executable('nnstreamer_example_filter_performance_profile',
'nnstreamer_example_filter_performance_profile.c',
dependencies: [glib_dep, gst_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
nnstreamer_example_object_detection = executable('nnstreamer_example_object_detection',
'nnstreamer_example_object_detection.cc',
dependencies: [glib_dep, gst_dep, gst_video_dep, cairo_dep, libm_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
-if get_option('INSTALL_EXAMPLES')
+if get_option('install-example')
install_data(['get_model.sh', 'gst-launch-object-detection.sh'],
install_dir: examples_install_dir
)
'nnstreamer_example_object_detection_tensorflow.cc',
dependencies: [glib_dep, gst_dep, gst_video_dep, cairo_dep, libm_dep],
include_directories: nnstreamer_inc,
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
-if get_option('INSTALL_EXAMPLES')
+if get_option('install-example')
install_data(['get_model.sh'],
install_dir: examples_install_dir
)
nnstreamer_sink_example = executable('nnstreamer_sink_example',
'nnstreamer_sink_example.c',
dependencies: [glib_dep, gst_dep, gst_app_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
nnstreamer_sink_example_play = executable('nnstreamer_sink_example_play',
'nnstreamer_sink_example_play.c',
dependencies: [glib_dep, gst_dep, gst_app_dep],
- install: get_option('INSTALL_EXAMPLES'),
+ install: get_option('install-example'),
install_dir: examples_install_dir
)
mkdir -p build
%ifarch x86_64 aarch64
- meson --buildtype=plain --werror --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{nnstexampledir} --includedir=%{_includedir} -DINSTALL_EXAMPLES=true build
+ meson --buildtype=plain --werror --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{nnstexampledir} --includedir=%{_includedir} -Dinstall-example=true build
%else
- meson --buildtype=plain --werror --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{nnstexampledir} --includedir=%{_includedir} -DINSTALL_EXAMPLES=true -DENABLE_TENSORFLOW=false build
+ meson --buildtype=plain --werror --prefix=%{_prefix} --libdir=%{_libdir} --bindir=%{nnstexampledir} --includedir=%{_includedir} -Dinstall-example=true -Denable-tensorflow=false build
%endif
ninja -C build %{?_smp_mflags}