blob: 4c679ac3fe6eb3ebd01df448b16332f03f48cc93 [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)
Carl Shapiro1fb86202011-06-27 17:43:13 -070025local_cflags := $(LOCAL_CFLAGS)
Carl Shapiro008e4122011-06-23 17:27:46 -070026
27local_shared_libraries := \
28 libart \
29 libstlport
30
31local_c_includes := \
Carl Shapiro008e4122011-06-23 17:27:46 -070032 external/gtest/include
33
34local_static_libraries := \
35 libgtest \
36 libgtest_main
37
38$(foreach file,$(TEST_LOCAL_SRC_FILES), \
39 $(eval include $(CLEAR_VARS)) \
40 $(eval LOCAL_CPP_EXTENSION := $(local_cpp_extension)) \
41 $(eval LOCAL_MODULE := $(notdir $(file:%.cc=%))) \
42 $(eval LOCAL_MODULE_TAGS := $(local_module_tags)) \
43 $(eval LOCAL_SRC_FILES := $(file)) \
Carl Shapiro1fb86202011-06-27 17:43:13 -070044 $(eval LOCAL_CFLAGS := $(local_cflags)) \
45 $(eval include external/stlport/libstlport.mk) \
46 $(eval LOCAL_C_INCLUDES += $(local_c_includes)) \
Carl Shapiro008e4122011-06-23 17:27:46 -070047 $(eval LOCAL_STATIC_LIBRARIES := $(local_static_libraries)) \
48 $(eval LOCAL_SHARED_LIBRARIES := $(local_shared_libraries)) \
49 $(eval include $(BUILD_EXECUTABLE)) \
50)