blob: 4ae23ec33dfbb1ccd8dbbdf02f53f91e1f4e03f3 [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 := \
Kenny Rootf3f286d2012-10-02 10:52:47 -070013 libandroidfw \
14 libcutils \
15 libutils \
16 libbinder \
17 libui \
18 libstlport \
19 libskia
Mathias Agopian83c64e62012-02-20 16:58:20 -080020
21static_libraries := \
Kenny Rootf3f286d2012-10-02 10:52:47 -070022 libgtest \
23 libgtest_main
Mathias Agopian83c64e62012-02-20 16:58:20 -080024
25$(foreach file,$(test_src_files), \
26 $(eval include $(CLEAR_VARS)) \
27 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
28 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
Mathias Agopian83c64e62012-02-20 16:58:20 -080029 $(eval LOCAL_SRC_FILES := $(file)) \
30 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Kenny Rootf3f286d2012-10-02 10:52:47 -070031 $(eval include $(BUILD_NATIVE_TEST)) \
Mathias Agopian83c64e62012-02-20 16:58:20 -080032)
33
34# Build the manual test programs.
35include $(call all-makefiles-under, $(LOCAL_PATH))