blob: 39009b8ea3bac36105c9219bcc5f5336ea8abfc8 [file] [log] [blame]
Mathias Agopian83c64e62012-02-20 16:58:20 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7 InputChannel_test.cpp \
8 InputEvent_test.cpp \
9 InputPublisherAndConsumer_test.cpp \
Colin Crossa982dc02012-03-22 18:43:07 -070010 ObbFile_test.cpp
Mathias Agopian83c64e62012-02-20 16:58:20 -080011
12shared_libraries := \
13 libandroidfw \
14 libcutils \
15 libutils \
16 libbinder \
17 libui \
18 libstlport \
19 libskia
20
21static_libraries := \
22 libgtest \
23 libgtest_main
24
25c_includes := \
26 bionic \
27 bionic/libstdc++/include \
28 external/gtest/include \
29 external/stlport/stlport \
30 external/skia/include/core
31
32module_tags := eng tests
33
34$(foreach file,$(test_src_files), \
35 $(eval include $(CLEAR_VARS)) \
36 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
37 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
38 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
39 $(eval LOCAL_SRC_FILES := $(file)) \
40 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
41 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
42 $(eval include $(BUILD_EXECUTABLE)) \
43)
44
45# Build the manual test programs.
46include $(call all-makefiles-under, $(LOCAL_PATH))