Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 1 | # Build the unit tests for installd |
| 2 | LOCAL_PATH := $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
Dan Albert | b79dfe6 | 2014-09-11 18:45:33 -0700 | [diff] [blame] | 4 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 5 | |
| 6 | # Build the unit tests. |
| 7 | test_src_files := \ |
| 8 | installd_utils_test.cpp |
| 9 | |
| 10 | shared_libraries := \ |
Jeff Sharkey | c03de09 | 2015-04-07 18:14:05 -0700 | [diff] [blame] | 11 | libbase \ |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 12 | libutils \ |
| 13 | libcutils \ |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 14 | |
| 15 | static_libraries := \ |
| 16 | libinstalld \ |
| 17 | libdiskusage \ |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 18 | |
| 19 | c_includes := \ |
Ramin Zaghi | 7400742 | 2014-02-27 15:20:40 +0000 | [diff] [blame] | 20 | frameworks/native/cmds/installd |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 21 | |
| 22 | $(foreach file,$(test_src_files), \ |
| 23 | $(eval include $(CLEAR_VARS)) \ |
| 24 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 25 | $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ |
| 26 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 27 | $(eval LOCAL_C_INCLUDES := $(c_includes)) \ |
| 28 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
Jeff Sharkey | 41ea424 | 2015-04-09 11:34:03 -0700 | [diff] [blame] | 29 | $(eval LOCAL_CLANG := true) \ |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 30 | $(eval include $(BUILD_NATIVE_TEST)) \ |
| 31 | ) |