The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
David 'Digit' Turner | d466780 | 2010-06-11 13:18:41 -0700 | [diff] [blame] | 2 | |
| 3 | # Common C++ flags to build this library. |
| 4 | # Note that we need to access private Bionic headers |
| 5 | # and define ANDROID_SMP accordingly. |
Elliott Hughes | 52d6233 | 2012-07-27 17:40:29 -0700 | [diff] [blame] | 6 | libstdc++_cflags := -Ibionic/libc/ |
David 'Digit' Turner | d466780 | 2010-06-11 13:18:41 -0700 | [diff] [blame] | 7 | ifeq ($(TARGET_CPU_SMP),true) |
| 8 | libstdc++_cflags += -DANDROID_SMP=1 |
| 9 | else |
| 10 | libstdc++_cflags += -DANDROID_SMP=0 |
| 11 | endif |
Elliott Hughes | 240f1e2 | 2014-02-18 12:02:37 -0800 | [diff] [blame] | 12 | libstdc++_cflags += -Wall -Wextra -Werror |
David 'Digit' Turner | d466780 | 2010-06-11 13:18:41 -0700 | [diff] [blame] | 13 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 14 | include $(CLEAR_VARS) |
| 15 | |
| 16 | LOCAL_SRC_FILES:= \ |
| 17 | src/one_time_construction.cpp \ |
| 18 | src/new.cpp \ |
| 19 | src/pure_virtual.cpp \ |
| 20 | src/typeinfo.cpp |
| 21 | |
| 22 | LOCAL_MODULE:= libstdc++ |
Elliott Hughes | ae5c644 | 2012-08-13 14:06:05 -0700 | [diff] [blame] | 23 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 24 | |
David 'Digit' Turner | d466780 | 2010-06-11 13:18:41 -0700 | [diff] [blame] | 25 | LOCAL_CFLAGS := $(libstdc++_cflags) |
| 26 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 27 | LOCAL_SYSTEM_SHARED_LIBRARIES := libc |
| 28 | |
| 29 | include $(BUILD_SHARED_LIBRARY) |
| 30 | |
| 31 | include $(CLEAR_VARS) |
| 32 | |
| 33 | LOCAL_SRC_FILES:= \ |
| 34 | src/one_time_construction.cpp \ |
| 35 | src/new.cpp \ |
| 36 | src/pure_virtual.cpp \ |
| 37 | src/typeinfo.cpp |
| 38 | |
David 'Digit' Turner | d466780 | 2010-06-11 13:18:41 -0700 | [diff] [blame] | 39 | LOCAL_CFLAGS := $(libstdc++_cflags) |
| 40 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 41 | LOCAL_MODULE:= libstdc++ |
Elliott Hughes | ae5c644 | 2012-08-13 14:06:05 -0700 | [diff] [blame] | 42 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 43 | |
| 44 | LOCAL_SYSTEM_SHARED_LIBRARIES := libc |
| 45 | |
| 46 | include $(BUILD_STATIC_LIBRARY) |