1LOCAL_PATH:= $(call my-dir) 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. 6libstdc++_cflags := -Ibionic/libc/ 7ifeq ($(TARGET_CPU_SMP),true) 8 libstdc++_cflags += -DANDROID_SMP=1 9else 10 libstdc++_cflags += -DANDROID_SMP=0 11endif 12 13include $(CLEAR_VARS) 14 15LOCAL_SRC_FILES:= \ 16 src/one_time_construction.cpp \ 17 src/new.cpp \ 18 src/pure_virtual.cpp \ 19 src/typeinfo.cpp 20 21LOCAL_MODULE:= libstdc++ 22LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 23 24LOCAL_CFLAGS := $(libstdc++_cflags) 25 26LOCAL_SYSTEM_SHARED_LIBRARIES := libc 27 28include $(BUILD_SHARED_LIBRARY) 29 30include $(CLEAR_VARS) 31 32LOCAL_SRC_FILES:= \ 33 src/one_time_construction.cpp \ 34 src/new.cpp \ 35 src/pure_virtual.cpp \ 36 src/typeinfo.cpp 37 38LOCAL_CFLAGS := $(libstdc++_cflags) 39 40LOCAL_MODULE:= libstdc++ 41LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 42 43LOCAL_SYSTEM_SHARED_LIBRARIES := libc 44 45include $(BUILD_STATIC_LIBRARY) 46