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/private 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++ 22 23LOCAL_CFLAGS := $(libstdc++_cflags) 24 25LOCAL_SYSTEM_SHARED_LIBRARIES := libc 26 27include $(BUILD_SHARED_LIBRARY) 28 29include $(CLEAR_VARS) 30 31LOCAL_SRC_FILES:= \ 32 src/one_time_construction.cpp \ 33 src/new.cpp \ 34 src/pure_virtual.cpp \ 35 src/typeinfo.cpp 36 37LOCAL_CFLAGS := $(libstdc++_cflags) 38 39LOCAL_MODULE:= libstdc++ 40 41LOCAL_SYSTEM_SHARED_LIBRARIES := libc 42 43include $(BUILD_STATIC_LIBRARY) 44