-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
30 lines (23 loc) · 984 Bytes
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libOpenCL
LOCAL_SRC_FILES := opencl12_stubs.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/opencl12_stubs_include
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -fPIE
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := main.cc pmu_utils.cc erode.cc erode_cl.cc erode_gl.cc erode_rs.cc erode3x3.rs
ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), arm arm64))
LOCAL_ARM_NEON := true
LOCAL_SRC_FILES += erode_neon.cc
endif
LOCAL_MODULE := erode_test
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/opencl12_stubs_include
LOCAL_CPPFLAGS := -std=gnu++0x -Wall -fPIE -fopenmp -DWITH_OPENGLES -DWITH_OPENMP
LOCAL_CPP_FEATURES := exceptions
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -fPIE -pie -lGLESv2 -lEGL -fopenmp
LOCAL_SHARED_LIBRARIES := libOpenCL
# For Renderscript
LOCAL_STATIC_LIBRARIES += RScpp_static
include $(BUILD_EXECUTABLE)
$(call import-module,android/renderscript)