Skip to content

Commit

Permalink
[android] Let nnstreamer.mk export proper snpe filter source file
Browse files Browse the repository at this point in the history
- Determine proper source code out of `tensor_filter_snpe.cc` and `tensor_filter_snpe_v1.cc`

Signed-off-by: Yongjoo Ahn <[email protected]>
  • Loading branch information
anyj0527 authored and myungjoo committed Jun 14, 2024
1 parent ff9350d commit c86df28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jni/nnstreamer.mk
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ NNSTREAMER_FILTER_CAFFE2_SRCS := \
NNSTREAMER_FILTER_SNPE_SRCS := \
$(NNSTREAMER_EXT_HOME)/tensor_filter/tensor_filter_snpe.cc

# Check whether the version of SNPE SDK is old (v1, rather than v2)
ifeq ($(shell test -d ${SNPE_ROOT}/include/zdl; echo $$?),0)
NNSTREAMER_FILTER_SNPE_SRCS := \
$(NNSTREAMER_EXT_HOME)/tensor_filter/tensor_filter_snpe_v1.cc
endif

# filter snap
NNSTREAMER_FILTER_SNAP_SRCS := \
$(NNSTREAMER_EXT_HOME)/tensor_filter/tensor_filter_snap.cc
Expand Down

0 comments on commit c86df28

Please sign in to comment.