blob: 38a9f6996419d001177113e8e32b4cb4c67be9cd [file] [log] [blame]
Mike Lockwood94afecf2012-10-24 10:45:23 -07001# Build the unit tests for installd
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
Dan Albertb79dfe62014-09-11 18:45:33 -07004LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Mike Lockwood94afecf2012-10-24 10:45:23 -07005
6# Build the unit tests.
7test_src_files := \
8 installd_utils_test.cpp
9
10shared_libraries := \
Jeff Sharkeyc03de092015-04-07 18:14:05 -070011 libbase \
Mike Lockwood94afecf2012-10-24 10:45:23 -070012 libutils \
13 libcutils \
Mike Lockwood94afecf2012-10-24 10:45:23 -070014
15static_libraries := \
16 libinstalld \
17 libdiskusage \
Mike Lockwood94afecf2012-10-24 10:45:23 -070018
19c_includes := \
Ramin Zaghi74007422014-02-27 15:20:40 +000020 frameworks/native/cmds/installd
Mike Lockwood94afecf2012-10-24 10:45:23 -070021
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 Sharkey41ea4242015-04-09 11:34:03 -070029 $(eval LOCAL_CLANG := true) \
Mike Lockwood94afecf2012-10-24 10:45:23 -070030 $(eval include $(BUILD_NATIVE_TEST)) \
31)