blob: 4d99d524903059f3d4242dd5f91e38430804cb6a [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)/..) \
25 $(eval include $(BUILD_NATIVE_TEST)) \
26)