2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
2010-06-11 22:18:41 +02:00
|
|
|
|
|
|
|
# Common C++ flags to build this library.
|
|
|
|
# Note that we need to access private Bionic headers
|
|
|
|
# and define ANDROID_SMP accordingly.
|
2012-07-28 02:40:29 +02:00
|
|
|
libstdc++_cflags := -Ibionic/libc/
|
2010-06-11 22:18:41 +02:00
|
|
|
ifeq ($(TARGET_CPU_SMP),true)
|
|
|
|
libstdc++_cflags += -DANDROID_SMP=1
|
|
|
|
else
|
|
|
|
libstdc++_cflags += -DANDROID_SMP=0
|
|
|
|
endif
|
2014-02-18 21:02:37 +01:00
|
|
|
libstdc++_cflags += -Wall -Wextra -Werror
|
2010-06-11 22:18:41 +02:00
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
src/one_time_construction.cpp \
|
|
|
|
src/new.cpp \
|
|
|
|
src/pure_virtual.cpp \
|
|
|
|
src/typeinfo.cpp
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libstdc++
|
2012-08-13 23:06:05 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2009-03-04 04:28:35 +01:00
|
|
|
|
2010-06-11 22:18:41 +02:00
|
|
|
LOCAL_CFLAGS := $(libstdc++_cflags)
|
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
src/one_time_construction.cpp \
|
|
|
|
src/new.cpp \
|
|
|
|
src/pure_virtual.cpp \
|
|
|
|
src/typeinfo.cpp
|
|
|
|
|
2010-06-11 22:18:41 +02:00
|
|
|
LOCAL_CFLAGS := $(libstdc++_cflags)
|
|
|
|
|
2009-03-04 04:28:35 +01:00
|
|
|
LOCAL_MODULE:= libstdc++
|
2012-08-13 23:06:05 +02:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2009-03-04 04:28:35 +01:00
|
|
|
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|