blob: 0079be4c29616487b5ed18f444099ab148528d2d [file] [log] [blame]
Kenny Root7a4adb52013-10-09 10:14:35 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7 asn1_decoder_test.cpp
8
9shared_libraries := \
10 liblog \
11 libcutils
12
13static_libraries := \
14 libgtest \
15 libgtest_main \
16 libverifier
17
18$(foreach file,$(test_src_files), \
19 $(eval include $(CLEAR_VARS)) \
20 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
21 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
22 $(eval LOCAL_SRC_FILES := $(file)) \
23 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
24 $(eval LOCAL_C_INCLUDES := $(LOCAL_PATH)/..) \
Ethan Yonker75bf0412014-11-21 13:54:27 -060025 $(eval LOCAL_MODULE_TAGS := optional) \
Kenny Root7a4adb52013-10-09 10:14:35 -070026 $(eval include $(BUILD_NATIVE_TEST)) \
Ethan Yonker75bf0412014-11-21 13:54:27 -060027)