• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_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
6common_SRC_FILES := \
7	hyphen.c \
8	hnjalloc.c
9
10common_C_INCLUDES += $(LOCAL_PATH)
11
12# For the device
13# =====================================================
14
15include $(CLEAR_VARS)
16
17LOCAL_SRC_FILES := $(common_SRC_FILES)
18LOCAL_C_INCLUDES += $(common_C_INCLUDES)
19LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
20LOCAL_CFLAGS += -fvisibility=hidden
21
22LOCAL_MODULE:= libhyphenation
23
24include $(BUILD_STATIC_LIBRARY)
25
26
27# For the host
28# ========================================================
29
30include $(CLEAR_VARS)
31LOCAL_SRC_FILES := $(common_SRC_FILES)
32LOCAL_C_INCLUDES += $(common_C_INCLUDES)
33LOCAL_SHARED_LIBRARIES += $(common_SHARED_LIBRARIES)
34LOCAL_MODULE:= libhyphenation
35include $(BUILD_HOST_STATIC_LIBRARY)
36