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