[Harfbuzz-indic] Building harfbuzz-ng using Android NDK
Shiva Kumar H R
shivahr at gmail.com
Fri Sep 16 04:35:06 PDT 2011
I have used a simple Android.mk as below and got the HarfBuzz to build on
Android NDK. I got below warnings though.
harfbuzz-ng/src/hb-object-private.hh:74:2: warning: #warning "Could not find
any system to define atomic_int macros, library will NOT be thread-safe"
Android.mk:
------Begin of Android.mk-------
BASE_PATH := $(call my-dir)
LOCAL_PATH:= $(call my-dir)
#############################################################
# build the harfbuzz library
#
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES:= \
src/hb-blob.cc \
src/hb-buffer.cc \
src/hb-common.cc \
src/hb-fallback-shape.cc \
src/hb-font.cc \
src/hb-ot-tag.cc \
src/hb-shape.cc \
src/hb-tt-font.cc \
src/hb-unicode.cc \
src/hb-ot-layout.cc \
src/hb-ot-map.cc \
src/hb-ot-shape.cc \
src/hb-ot-shape-complex-arabic.cc \
src/hb-ot-shape-complex-indic.cc \
src/hb-ot-shape-complex-misc.cc \
src/hb-ot-shape-normalize.cc \
src/hb-ft.cc \
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/src $(LOCAL_PATH)/../freetype/include
LOCAL_MODULE:= libharfbuzz
LOCAL_STATIC_LIBRARIES := ft2
include $(BUILD_SHARED_LIBRARY)
------End of Android.mk-------
Yet to write a sample program and see if it is actually working.
--
Thanks & Regards,
Shiva Kumar H R
On Fri, Sep 16, 2011 at 3:26 PM, Shiva Kumar H R <shivahr at gmail.com> wrote:
> Hi,
> Is it possible to build harfbuzz-ng using Android-NDK. If yes, are there
> any instructions that I can look at?
>
> I came across Android.mk in
> http://tools.impjq.net/android/external/harfbuzz/ , but this seems to be
> the old Harfbuzz tree and has a dependency on ICU4C.
>
> --
> Thanks & Regards,
> Shiva Kumar H R
> http://people.apache.org/~shivahr/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz-indic/attachments/20110916/16434e97/attachment.htm>
More information about the HarfBuzz-Indic
mailing list