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