1 LOCAL_PATH:= $(call my-dir) 2 3 # We need to build this for both the device (as a shared library) 4 # and the host (as a static library for tools to use). 5 6 common_SRC_FILES := \ 7 hyphen.c \ 8 hnjalloc.c 9 10 common_C_INCLUDES += $(LOCAL_PATH) 11 12 # For the device 13 # ===================================================== 14 15 include $(CLEAR_VARS) 16 17 LOCAL_SRC_FILES := $(common_SRC_FILES) 18 LOCAL_C_INCLUDES += $(common_C_INCLUDES) 19 LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES) 20 LOCAL_CFLAGS += -fvisibility=hidden 21 22 LOCAL_MODULE:= libhyphenation 23 24 include $(BUILD_STATIC_LIBRARY) 25 26 27 # For the host 28 # ======================================================== 29 30 include $(CLEAR_VARS) 31 LOCAL_SRC_FILES := $(common_SRC_FILES) 32 LOCAL_C_INCLUDES += $(common_C_INCLUDES) 33 LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES) 34 LOCAL_MODULE:= libhyphenation 35 include $(BUILD_HOST_STATIC_LIBRARY) 36