8ee370729c56e8f3c9136f92424040a5f447518a
[platform/core/ml/nntrainer.git] / Applications / TransferLearning / Draw_Classification / jni / meson.build
1 build_root = meson.build_root()
2 res_path = meson.current_source_dir() / '..' / 'res'
3 nntr_draw_resdir = nntr_app_resdir / 'Draw_Classification'
4 run_command('cp', '-lr', res_path, nntr_draw_resdir)
5
6 gst_api_version = '1.0'
7 glib_dep = dependency('glib-2.0')
8 gst_dep = dependency('gstreamer-'+gst_api_version)
9
10 if not nnstreamer_capi_dep.found()
11   error('nnstreamer capi dependency not found for tizen')
12 endif
13 if not gtest_dep.found()
14   error('Gtest dependency not found for tizen')
15 endif
16
17 training_sources = [
18   'main.cpp'
19 ]
20
21 e = executable('nntrainer_training',
22   training_sources,
23   dependencies: [app_utils_dep, iniparser_dep, nntrainer_capi_dep, nnstreamer_capi_dep, tflite_dep, gtest_dep],
24   include_directories: include_directories('.'),
25   install: get_option('install-app'),
26   install_dir: application_install_dir
27 )
28
29 nntrainer_filter_env = environment()
30 nntrainer_filter_env.set('GTEST_OUTPUT', 'xml:@0@/@1@.xml'.format(meson.build_root(), 'app_draw_classification'))
31 nntrainer_filter_env.set('NNSTREAMER_FILTERS', meson.build_root() / 'nnstreamer' / 'tensor_filter')
32
33 if get_option('enable-nnstreamer-tensor-filter').enabled()
34    test('app_draw_classification', e, env: nntrainer_filter_env,
35      args: [nntr_draw_resdir / 'Training.ini', nntr_draw_resdir], timeout: 150)
36 endif