Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 1 | # Build the unit tests. |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | # Build the unit tests. |
| 6 | test_src_files := \ |
| 7 | InputChannel_test.cpp \ |
| 8 | InputEvent_test.cpp \ |
| 9 | InputPublisherAndConsumer_test.cpp \ |
Colin Cross | a982dc0 | 2012-03-22 18:43:07 -0700 | [diff] [blame] | 10 | ObbFile_test.cpp |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 11 | |
| 12 | shared_libraries := \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame^] | 13 | libandroidfw \ |
| 14 | libcutils \ |
| 15 | libutils \ |
| 16 | libbinder \ |
| 17 | libui \ |
| 18 | libstlport \ |
| 19 | libskia |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 20 | |
| 21 | static_libraries := \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame^] | 22 | libgtest \ |
| 23 | libgtest_main |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 24 | |
| 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 Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 29 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 30 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame^] | 31 | $(eval include $(BUILD_NATIVE_TEST)) \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | # Build the manual test programs. |
| 35 | include $(call all-makefiles-under, $(LOCAL_PATH)) |