Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c1a3ec6 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Make LatinIME's native Makefile NDK-friendly

Change-Id: I55d430756b3a8251c9ff49dfabfcecb047d979a4
parent f24d1102
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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