Skip to content

Commit

Permalink
am 45c4b17: Build static libstlport.
Browse files Browse the repository at this point in the history
Merge commit '45c4b1710d150a1adbf9d5d405f143164c0011b0' into gingerbread

* commit '45c4b1710d150a1adbf9d5d405f143164c0011b0':
  Build static libstlport.
  • Loading branch information
Ying Wang authored and Android Git Automerger committed Aug 4, 2010
2 parents 0ec050a + 45c4b17 commit 72c6dc3
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions Android.mk
Expand Up @@ -4,9 +4,7 @@
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES += \
libstlport_src_files := \
src/dll_main.cpp \
src/fstream.cpp \
src/strstream.cpp \
Expand Down Expand Up @@ -40,15 +38,39 @@ LOCAL_SRC_FILES += \
src/c_locale.c \
src/cxa.c \

libstlport_cflags := -D_GNU_SOURCE
libstlport_cppflags := -fuse-cxa-atexit

##########################################
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(libstlport_src_files)

LOCAL_MODULE := libstlport

LOCAL_CFLAGS := -D_GNU_SOURCE
LOCAL_CPPFLAGS := -fuse-cxa-atexit
LOCAL_CFLAGS := $(libstlport_cflags)
LOCAL_CPPFLAGS := $(libstlport_cppflags)

LOCAL_NDK_VERSION := 4
LOCAL_SDK_VERSION := 8

include $(LOCAL_PATH)/libstlport.mk

include $(BUILD_SHARED_LIBRARY)

##########################################
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(libstlport_src_files)

LOCAL_MODULE := libstlport_static

LOCAL_CFLAGS := $(libstlport_cflags)
LOCAL_CPPFLAGS := $(libstlport_cppflags)

LOCAL_NDK_VERSION := 4
LOCAL_SDK_VERSION := 8

include $(LOCAL_PATH)/libstlport.mk
include $(BUILD_STATIC_LIBRARY)

endif

0 comments on commit 72c6dc3

Please sign in to comment.