Skip to content

Commit

Permalink
meson: nnstreamer-dep fixed
Browse files Browse the repository at this point in the history
nnstreamer-dep is required only when
nntrainer is going to build nnstreamer subplugins.

Don't try it if subplugins are not enabled.

Signed-off-by: MyungJoo Ham <[email protected]>
  • Loading branch information
myungjoo committed Jul 11, 2024
1 parent e92ae36 commit 5eec3ef
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,13 @@ if get_option('enable-app')
endif
endif

if get_option('platform') != 'android'
nnstreamer_dep = dependency('nnstreamer')
message('building nnstreamer')
subdir('nnstreamer')
else
warning('android nnstreamer-filter and nnstreamer-trainer are not yet supported, building them is skipped')
if get_option('enable-nnstreamer-tensor-filter').enabled() or get_option('enable-nnstreamer-tensor-trainer').enabled()
if get_option('platform') != 'android'
nnstreamer_dep = dependency('nnstreamer')
subdir('nnstreamer')
else
warning('android nnstreamer-filter and nnstreamer-trainer are not yet supported, building them is skipped')
endif
endif

if get_option('platform') == 'android'
Expand Down

0 comments on commit 5eec3ef

Please sign in to comment.