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 17 BASE_PATH := $(call my-dir) 18 LOCAL_PATH:= $(call my-dir) 19 20 ############################################################# 21 # build the harfbuzz library 22 # 23 24 include $(CLEAR_VARS) 25 26 LOCAL_ARM_MODE := arm 27 28 LOCAL_MODULE_TAGS := optional 29 30 LOCAL_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 53 LOCAL_SHARED_LIBRARIES := \ 54 libcutils \ 55 libicuuc \ 56 libicui18n \ 57 libutils 58 59 LOCAL_STATIC_LIBRARIES := \ 60 libft2 61 62 LOCAL_C_INCLUDES += \ 63 $(LOCAL_PATH)/src \ 64 $(LOCAL_PATH)/src/contrib \ 65 external/icu4c/common \ 66 external/freetype/include 67 68 ifeq ($(NO_FALLBACK_FONT),true) 69 LOCAL_CFLAGS += -DNO_FALLBACK_FONT 70 endif 71 72 LOCAL_LDLIBS += -lpthread 73 74 LOCAL_MODULE:= libharfbuzz 75 76 77 78 include $(BUILD_SHARED_LIBRARY) 79 80