1# 2# Copyright (C) 2014 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# 16COMMON_C_INCLUDES := \ 17 external/libcxx/test/support \ 18 external/libcxx/include \ 19 20COMMON_CPPFLAGS := \ 21 -std=c++11 \ 22 -fexceptions \ 23 -frtti \ 24 -nostdinc++ \ 25 26COMMON_DEPS := \ 27 external/libcxx/test/Android.build.mk \ 28 $(test_makefile) \ 29 30include $(CLEAR_VARS) 31LOCAL_ADDITIONAL_DEPENDENCIES := $(COMMON_DEPS) 32LOCAL_CLANG := true 33LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES) 34LOCAL_CPPFLAGS := $(COMMON_CPPFLAGS) 35LOCAL_SHARED_LIBRARIES := libc++ 36LOCAL_SYSTEM_SHARED_LIBRARIES := libc libm 37LOCAL_MODULE := libc++tests/$(test_name) 38LOCAL_SRC_FILES := $(test_src) 39include $(BUILD_EXECUTABLE) 40 41include $(CLEAR_VARS) 42LOCAL_ADDITIONAL_DEPENDENCIES := $(COMMON_DEPS) 43LOCAL_CLANG := true 44LOCAL_C_INCLUDES := $(COMMON_C_INCLUDES) 45LOCAL_CPPFLAGS := $(COMMON_CPPFLAGS) 46LOCAL_LDFLAGS := -nodefaultlibs 47LOCAL_LDLIBS := -lc -lm -lpthread 48LOCAL_SHARED_LIBRARIES := libc++ 49LOCAL_MODULE := libc++tests/$(test_name) 50LOCAL_SRC_FILES := $(test_src) 51include $(BUILD_HOST_EXECUTABLE) 52