1## 2## Copyright (C) 2010 The Android Open Source Project 3## 4## Licensed under the Apache License, Version 2.0 (the "License"); 5## you may not use this file except in compliance with the License. 6## You may obtain a copy of the License at 7## 8## http://www.apache.org/licenses/LICENSE-2.0 9## 10## Unless required by applicable law or agreed to in writing, software 11## distributed under the License is distributed on an "AS IS" BASIS, 12## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13## See the License for the specific language governing permissions and 14## limitations under the License. 15## 16 17BASE_PATH := $(call my-dir) 18LOCAL_PATH:= $(call my-dir) 19 20############################################################# 21# build the harfbuzz library 22# 23 24include $(CLEAR_VARS) 25 26LOCAL_ARM_MODE := arm 27 28LOCAL_MODULE_TAGS := optional 29 30LOCAL_SRC_FILES:= \ 31 contrib/harfbuzz-freetype.c \ 32 contrib/harfbuzz-unicode-icu.c \ 33 contrib/harfbuzz-unicode.c \ 34 src/harfbuzz-buffer.c \ 35 src/harfbuzz-stream.c \ 36 src/harfbuzz-dump.c \ 37 src/harfbuzz-gdef.c \ 38 src/harfbuzz-gpos.c \ 39 src/harfbuzz-gsub.c \ 40 src/harfbuzz-impl.c \ 41 src/harfbuzz-open.c \ 42 src/harfbuzz-shaper.cpp \ 43 src/harfbuzz-tibetan.c \ 44 src/harfbuzz-khmer.c \ 45 src/harfbuzz-indic.cpp \ 46 src/harfbuzz-hebrew.c \ 47 src/harfbuzz-arabic.c \ 48 src/harfbuzz-hangul.c \ 49 src/harfbuzz-myanmar.c \ 50 src/harfbuzz-thai.c \ 51 src/harfbuzz-greek.c 52 53LOCAL_SHARED_LIBRARIES := \ 54 libcutils \ 55 libicuuc \ 56 libicui18n \ 57 libutils 58 59LOCAL_STATIC_LIBRARIES := \ 60 libft2 61 62LOCAL_C_INCLUDES += \ 63 $(LOCAL_PATH)/src \ 64 $(LOCAL_PATH)/src/contrib \ 65 external/icu4c/common \ 66 external/freetype/include 67 68ifeq ($(NO_FALLBACK_FONT),true) 69 LOCAL_CFLAGS += -DNO_FALLBACK_FONT 70endif 71 72LOCAL_LDLIBS += -lpthread 73 74LOCAL_MODULE:= libharfbuzz 75 76 77 78include $(BUILD_SHARED_LIBRARY) 79 80