Until now dlsym was used to lookup external symbols. Now you can register your own function to be called when an undefined symbol is used.
65 lines
1.1 KiB
Makefile
65 lines
1.1 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# Executable for host
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= acc
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
main.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libacc
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
# Executable for target
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= acc
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
main.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libacc
|
|
|
|
LOCAL_CFLAGS := -O0 -g
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
# Runtime tests for host
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= accRuntimeTest
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
runtimeTest.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libacc
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
# Runtime tests for target
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= accRuntimeTest
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
runtimeTest.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libacc
|
|
|
|
LOCAL_CFLAGS := -O0 -g
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
include $(BUILD_EXECUTABLE)
|