diff options
author | Ying Wang <wangying@google.com> | 2014-10-07 23:23:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-07 23:23:15 +0000 |
commit | 230afab744d13f6abfc4c939343821e9b4b8814c (patch) | |
tree | 88bdfff9d5452ca14491e5c1f3dfa2d4b9133de5 /core/binary.mk | |
parent | 179362ea0bef23511e7e03b1aad4f52df2a975c5 (diff) | |
parent | e4e50f9bb4ae8af11aaddf9825a09ff33241b204 (diff) | |
download | build-230afab744d13f6abfc4c939343821e9b4b8814c.zip build-230afab744d13f6abfc4c939343821e9b4b8814c.tar.gz build-230afab744d13f6abfc4c939343821e9b4b8814c.tar.bz2 |
am e4e50f9b: am 8330c4c5: Merge "Apply LOCAL_CXX_STL to also prebuilts."
* commit 'e4e50f9bb4ae8af11aaddf9825a09ff33241b204':
Apply LOCAL_CXX_STL to also prebuilts.
Diffstat (limited to 'core/binary.mk')
-rw-r--r-- | core/binary.mk | 62 |
1 files changed, 1 insertions, 61 deletions
diff --git a/core/binary.mk b/core/binary.mk index ce81762..86dccac 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -166,67 +166,7 @@ my_whole_static_libraries := $(LOCAL_WHOLE_STATIC_LIBRARIES_$($(my_prefix)$(LOCA my_cflags := $(filter-out $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)GLOBAL_UNSUPPORTED_CFLAGS),$(my_cflags)) -# Only around for development purposes. Will be removed soon. -my_libcxx_is_default := false - -# Select the appropriate C++ STL -ifeq ($(strip $(LOCAL_CXX_STL)),default) - ifndef LOCAL_SDK_VERSION - ifeq ($(strip $(my_libcxx_is_default)),true) - # Platform code. Select the appropriate STL. - my_cxx_stl := libc++ - else - my_cxx_stl := bionic - endif - else - my_cxx_stl := ndk - endif -else - my_cxx_stl := $(strip $(LOCAL_CXX_STL)) -endif - -ifneq ($(filter $(my_cxx_stl),libc++ libc++_static),) - my_cflags += -D_USING_LIBCXX - my_c_includes += external/libcxx/include - ifeq ($(my_cxx_stl),libc++) - my_shared_libraries += libc++ - else - my_static_libraries += libc++_static - endif - - ifdef LOCAL_IS_HOST_MODULE - my_cppflags += -nostdinc++ - my_ldflags += -nodefaultlibs - my_ldlibs += -lc -lm - endif -else ifneq ($(filter $(my_cxx_stl),stlport stlport_static),) - my_c_includes += external/stlport/stlport bionic/libstdc++/include bionic - ifeq ($(my_cxx_stl),stlport) - my_shared_libraries += libstdc++ libstlport - else - my_static_libraries += libstdc++ libstlport_static - endif -else ifeq ($(my_cxx_stl),ndk) - # Using an NDK STL. Handled farther up in this file. - ifndef LOCAL_IS_HOST_MODULE - my_system_shared_libraries += libstdc++ - endif -else ifeq ($(my_cxx_stl),bionic) - # Using bionic's basic libstdc++. Not actually an STL. Only around until the - # tree is in good enough shape to not need it. - ifndef LOCAL_IS_HOST_MODULE - my_c_includes += bionic/libstdc++/include - my_system_shared_libraries += libstdc++ - endif - # Host builds will use GNU libstdc++. -else ifeq ($(my_cxx_stl),none) - ifdef LOCAL_IS_HOST_MODULE - my_cppflags += -nostdinc++ - my_ldflags += -nodefaultlibs -lc -lm - endif -else - $(error $(my_cxx_stl) is not a supported STL.) -endif +include $(BUILD_SYSTEM)/cxx_stl_setup.mk # Add static HAL libraries ifdef LOCAL_HAL_STATIC_LIBRARIES |