aboutsummaryrefslogtreecommitdiffstats
path: root/native/Android.mk
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-12-12 20:53:22 +0900
committersatok <satok@google.com>2011-12-13 16:32:52 +0900
commit16379df633feaefb118257096956869edfd25a2c (patch)
tree4e8f1b4e1aea98d50b916592b703f3eb3d0c25e4 /native/Android.mk
parentdc52e7c646bafb00898c3f2ebec064a5920e58fc (diff)
downloadlatinime-16379df633feaefb118257096956869edfd25a2c.tar.gz
latinime-16379df633feaefb118257096956869edfd25a2c.tar.xz
latinime-16379df633feaefb118257096956869edfd25a2c.zip
Use priority queue for native string buffer
+1 2 -6 2 Performance before ==== test finished, terminate logcat ===== (0) 100.34 (0.26%) (1) 37149.26 (95.30%) (2) 8.43 (0.02%) (3) 11.18 (0.03%) (4) 9.92 (0.03%) (5) 1330.60 (3.41%) (6) 250.46 (0.64%) (20) 12.41 (0.03%) Total 38982.50 (sum of others 38872.59) after ==== test finished, terminate logcat ===== (0) 97.65 (0.26%) (1) 35427.43 (95.32%) (2) 10.30 (0.03%) (3) 8.95 (0.02%) (4) 11.01 (0.03%) (5) 1224.67 (3.30%) (6) 243.76 (0.66%) (20) 40.91 (0.11%) Total 37167.04 (sum of others 37064.68) Change-Id: Id4d3b88a9cdef765affc52973aeac951ecc6a8ca
Diffstat (limited to 'native/Android.mk')
-rw-r--r--native/Android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/native/Android.mk b/native/Android.mk
index d2537f055..5dcc1e578 100644
--- a/native/Android.mk
+++ b/native/Android.mk
@@ -46,15 +46,19 @@ LOCAL_MODULE := libjni_latinime
LOCAL_MODULE_TAGS := user
+# For STL
+LOCAL_C_INCLUDES += external/stlport/stlport bionic
+LOCAL_SHARED_LIBRARIES += libstlport
+
ifeq ($(FLAG_DO_PROFILE), true)
$(warning Making profiling version of native library)
LOCAL_CFLAGS += -DFLAG_DO_PROFILE
- LOCAL_SHARED_LIBRARIES := libcutils libutils
+ LOCAL_SHARED_LIBRARIES += libcutils libutils
else # FLAG_DO_PROFILE
ifeq ($(FLAG_DBG), true)
$(warning Making debug version of native library)
LOCAL_CFLAGS += -DFLAG_DBG
- LOCAL_SHARED_LIBRARIES := libcutils libutils
+ LOCAL_SHARED_LIBRARIES += libcutils libutils
endif # FLAG_DBG
endif # FLAG_DO_PROFILE