Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Kainan Cha <[email protected]>
  • Loading branch information
Kainan Cha committed May 6, 2021
1 parent 31969a7 commit e5d6da2
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ ifeq ($(VIVANTE_SDK_INC),)
$(error Please set VIVANTE_SDK_INC path pointing to VX/CL header file locations)
endif

LOCAL_VENDOR_MODULE := true
LOCAL_VENDOR_MODULE := true

INTERNAL_SRC_PATH := $(LOCAL_PATH)/src/tim/vx/internal/src
SRC_FILES := $(wildcard $(LOCAL_PATH)/src/tim/vx/*.c**)
SRC_FILES += $(wildcard $(LOCAL_PATH)/src/tim/vx/ops/*.c**)
LOCAL_SRC_FILES := $(SRC_FILES:$(LOCAL_PATH)/%=%)
TIMVX_SOURCES := $(wildcard $(LOCAL_PATH)/src/tim/vx/*.c**)
TIMVX_SOURCES += $(wildcard $(LOCAL_PATH)/src/tim/vx/ops/*.c**)
LOCAL_SRC_FILES := $(TIMVX_SOURCES:$(LOCAL_PATH)/%=%)

INTERNAL_SOURCES := $(wildcard $(LOCAL_PATH)/src/tim/vx/internal/src/*.c)
INTERNAL_SOURCES += $(wildcard $(LOCAL_PATH)/src/tim/vx/internal/src/*/*.c)
INTERNAL_SRC_PATH := $(LOCAL_PATH)/src/tim/vx/internal/src
INTERNAL_SOURCES := $(wildcard $(INTERNAL_SRC_PATH)/*.c)
INTERNAL_SOURCES += $(wildcard $(INTERNAL_SRC_PATH)/*/*.c)
LOCAL_SRC_FILES += $(INTERNAL_SOURCES:$(LOCAL_PATH)/%=%)

LIBNNEXT_KERNEL_SOURCES := $(wildcard $(INTERNAL_SRC_PATH)/libnnext/ops/kernel/*.c)
Expand All @@ -34,27 +34,16 @@ KERNEL_SOURCES += $(wildcard $(INTERNAL_SRC_PATH)/custom/ops/kernel/*.c)
LOCAL_SRC_FILES += $(KERNEL_SOURCES:$(LOCAL_PATH)/%=%)

LOCAL_C_INCLUDES := \
$(VIVANTE_SDK_INC)/VX \
$(VIVANTE_SDK_INC)/CL \
$(VIVANTE_SDK_INC)/ \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/include/tim/vx \
$(LOCAL_PATH)/include/tim/vx/ops \
$(LOCAL_PATH)/src/tim/vx \
$(INTERNAL_SRC_PATH)/../include \
$(INTERNAL_SRC_PATH)/../include/ops \
$(INTERNAL_SRC_PATH)/../include/utils \
$(INTERNAL_SRC_PATH)/../include/inference \
$(INTERNAL_SRC_PATH)/../include/client \
$(INTERNAL_SRC_PATH)/../include/libnnext

LOCAL_SHARED_LIBRARIES := \
liblog \
libGAL \
libOpenVX \
libVSC \
libdl
$(VIVANTE_SDK_INC) \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/src/tim/vx \
$(INTERNAL_SRC_PATH)/../include \
$(INTERNAL_SRC_PATH)/../include/ops \
$(INTERNAL_SRC_PATH)/../include/utils \
$(INTERNAL_SRC_PATH)/../include/client \
$(INTERNAL_SRC_PATH)/../include/libnnext

LOCAL_SHARED_LIBRARIES := liblog libGAL libOpenVX libVSC libdl
LOCAL_STATIC_LIBRARIES := libgtest

LOCAL_CFLAGS := \
Expand Down Expand Up @@ -83,10 +72,11 @@ endif
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_VENDOR_MODULE := true
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := samples/lenet/lenet_asymu8.cc
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES := liblog libGAL libOpenVX libVSC libdl libtim-vx
LOCAL_SHARED_LIBRARIES := libtim-vx
LOCAL_MODULE := lenet_asymu8
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
Expand Down

0 comments on commit e5d6da2

Please sign in to comment.