240f1e2940
Change-Id: Ie71a2fdf227e7a5fc9a446bb1be110da9b3a4280
46 lines
1,014 B
Makefile
46 lines
1,014 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# Common C++ flags to build this library.
|
|
# Note that we need to access private Bionic headers
|
|
# and define ANDROID_SMP accordingly.
|
|
libstdc++_cflags := -Ibionic/libc/
|
|
ifeq ($(TARGET_CPU_SMP),true)
|
|
libstdc++_cflags += -DANDROID_SMP=1
|
|
else
|
|
libstdc++_cflags += -DANDROID_SMP=0
|
|
endif
|
|
libstdc++_cflags += -Wall -Wextra -Werror
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
src/one_time_construction.cpp \
|
|
src/new.cpp \
|
|
src/pure_virtual.cpp \
|
|
src/typeinfo.cpp
|
|
|
|
LOCAL_MODULE:= libstdc++
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
|
|
LOCAL_CFLAGS := $(libstdc++_cflags)
|
|
|
|
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
|
|
|
|
LOCAL_CFLAGS := $(libstdc++_cflags)
|
|
|
|
LOCAL_MODULE:= libstdc++
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|