blob: dc5a05378cfed0b2b7634f1a2c296699a6708c32 [file] [log] [blame]
Jesse Wilsonc981ace2011-06-22 14:17:14 -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
Carl Shapiro12eb78e2011-06-24 14:51:06 -070022TEST_TARGET_ARCH := $(HOST_ARCH)
Jesse Wilsonc981ace2011-06-22 14:17:14 -070023include $(LOCAL_PATH)/Android.common.mk
24local_cpp_extension := $(LOCAL_CPP_EXTENSION)
Carl Shapiro1fb86202011-06-27 17:43:13 -070025local_cflags := $(LOCAL_CFLAGS)
Jesse Wilsonc981ace2011-06-22 14:17:14 -070026
27local_shared_libraries := \
28 libart
29
30local_c_includes := \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070031 external/gtest/include
Jesse Wilsonc981ace2011-06-22 14:17:14 -070032
33local_whole_static_libraries := \
34 libgtest_host \
35 libgtest_main_host
36
37$(foreach file,$(TEST_LOCAL_SRC_FILES), \
38 $(eval include $(CLEAR_VARS)) \
39 $(eval LOCAL_CPP_EXTENSION := $(local_cpp_extension)) \
40 $(eval LOCAL_MODULE := $(notdir $(file:%.cc=%))) \
41 $(eval LOCAL_MODULE_TAGS := $(local_module_tags)) \
42 $(eval LOCAL_SRC_FILES := $(file)) \
Carl Shapiro1fb86202011-06-27 17:43:13 -070043 $(eval LOCAL_CFLAGS := $(local_cflags)) \
Jesse Wilsonc981ace2011-06-22 14:17:14 -070044 $(eval LOCAL_C_INCLUDES := $(local_c_includes)) \
45 $(eval LOCAL_WHOLE_STATIC_LIBRARIES := $(local_whole_static_libraries)) \
46 $(eval LOCAL_SHARED_LIBRARIES := $(local_shared_libraries)) \
47 $(eval include $(BUILD_HOST_EXECUTABLE)) \
48)