Make LatinIME's native Makefile NDK-friendly
Change-Id: I55d430756b3a8251c9ff49dfabfcecb047d979a4
This commit is contained in:
parent
f24d1102ac
commit
0c1a3ec629
1 changed files with 13 additions and 0 deletions
|
@ -87,7 +87,12 @@ endif # FLAG_DO_PROFILE
|
|||
LOCAL_MODULE := libjni_latinime_static
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
ifdef HISTORICAL_NDK_VERSIONS_ROOT # In the platform build system
|
||||
include external/stlport/libstlport.mk
|
||||
else # In the NDK build system
|
||||
LOCAL_C_INCLUDES += external/stlport/stlport bionic
|
||||
endif
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
######################################
|
||||
|
@ -95,7 +100,12 @@ include $(CLEAR_VARS)
|
|||
|
||||
# All code in LOCAL_WHOLE_STATIC_LIBRARIES will be built into this shared library.
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := libjni_latinime_static
|
||||
|
||||
ifdef HISTORICAL_NDK_VERSIONS_ROOT # In the platform build system
|
||||
LOCAL_SHARED_LIBRARIES := libstlport
|
||||
else # In the NDK build system
|
||||
LOCAL_SHARED_LIBRARIES := libstlport_static
|
||||
endif
|
||||
|
||||
ifeq ($(FLAG_DO_PROFILE), true)
|
||||
$(warning Making profiling version of native library)
|
||||
|
@ -115,7 +125,10 @@ endif
|
|||
LOCAL_MODULE := libjni_latinime
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
ifdef HISTORICAL_NDK_VERSIONS_ROOT # In the platform build system
|
||||
include external/stlport/libstlport.mk
|
||||
endif
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
#################### Clean up the tmp vars
|
||||
|
|
Loading…
Reference in a new issue