| # |
| # Copyright (C) 2011 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| LOCAL_PATH := $(call my-dir) |
| include $(CLEAR_VARS) |
| |
| local_module_tags := eng tests |
| |
| TEST_TARGET_ARCH := $(TARGET_ARCH) |
| include $(LOCAL_PATH)/Android.common.mk |
| local_cpp_extension := $(LOCAL_CPP_EXTENSION) |
| local_cflags := $(LOCAL_CFLAGS) |
| |
| local_shared_libraries := \ |
| libart \ |
| libstlport |
| |
| local_c_includes := \ |
| external/gtest/include |
| |
| local_static_libraries := \ |
| libgtest \ |
| libgtest_main |
| |
| $(foreach file,$(TEST_LOCAL_SRC_FILES), \ |
| $(eval include $(CLEAR_VARS)) \ |
| $(eval LOCAL_CPP_EXTENSION := $(local_cpp_extension)) \ |
| $(eval LOCAL_MODULE := $(notdir $(file:%.cc=%))) \ |
| $(eval LOCAL_MODULE_TAGS := $(local_module_tags)) \ |
| $(eval LOCAL_SRC_FILES := $(file)) \ |
| $(eval LOCAL_CFLAGS := $(local_cflags)) \ |
| $(eval include external/stlport/libstlport.mk) \ |
| $(eval LOCAL_C_INCLUDES += $(local_c_includes)) \ |
| $(eval LOCAL_STATIC_LIBRARIES := $(local_static_libraries)) \ |
| $(eval LOCAL_SHARED_LIBRARIES := $(local_shared_libraries)) \ |
| $(eval include $(BUILD_EXECUTABLE)) \ |
| ) |