blob: dc3a2291db0ec37746d55b2a8dda11f77d22f684 [file] [log] [blame]
Carl Shapiro008e4122011-06-23 17:27:46 -07001#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
20local_module_tags := eng tests
21
22TEST_TARGET_ARCH := $(TARGET_ARCH)
23include $(LOCAL_PATH)/Android.common.mk
24local_cpp_extension := $(LOCAL_CPP_EXTENSION)
25
26local_shared_libraries := \
27 libart \
28 libstlport
29
30local_c_includes := \
31 external/stlport/stlport \
32 bionic \
33 bionic/libstdc++/include \
34 dalvik \
35 external/gtest/include
36
37local_static_libraries := \
38 libgtest \
39 libgtest_main
40
41$(foreach file,$(TEST_LOCAL_SRC_FILES), \
42 $(eval include $(CLEAR_VARS)) \
43 $(eval LOCAL_CPP_EXTENSION := $(local_cpp_extension)) \
44 $(eval LOCAL_MODULE := $(notdir $(file:%.cc=%))) \
45 $(eval LOCAL_MODULE_TAGS := $(local_module_tags)) \
46 $(eval LOCAL_SRC_FILES := $(file)) \
47 $(eval LOCAL_C_INCLUDES := $(local_c_includes)) \
48 $(eval LOCAL_STATIC_LIBRARIES := $(local_static_libraries)) \
49 $(eval LOCAL_SHARED_LIBRARIES := $(local_shared_libraries)) \
50 $(eval include $(BUILD_EXECUTABLE)) \
51)