Application.mk 717 Bytes
Newer Older
Yizhi Liu committed
1
ifndef config
2 3 4 5 6
    ifneq ("$(wildcard ./config.mk)","")
        config ?= config.mk
    else
        config ?= make/config.mk
    endif
Yizhi Liu committed
7 8 9 10
endif

include $(config)

11 12 13
# We target every architecture except armeabi here, for two reasons:
# 1) armeabi is deprecated in NDK r16 and removed in r17
# 2) vulkan is not supported in armeabi
14
APP_ABI ?= armeabi-v7a arm64-v8a x86 x86_64 mips
15
APP_STL := c++_shared
Yizhi Liu committed
16 17

APP_CPPFLAGS += -DDMLC_LOG_STACK_TRACE=0 -DTVM4J_ANDROID=1 -std=c++11 -Oz -frtti
18
ifeq ($(USE_OPENCL), 1)
19
    APP_CPPFLAGS += -DTVM_OPENCL_RUNTIME=1
Yizhi Liu committed
20
endif
21

22
ifeq ($(USE_VULKAN), 1)
23 24
    APP_CPPFLAGS += -DTVM_VULKAN_RUNTIME=1
    APP_LDFLAGS += -lvulkan
25
endif
26 27 28 29

ifeq ($(USE_SORT), 1)
    APP_CPPFLAGS += -DUSE_SORT=1
endif