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 src/harfbuzz-debug.c 53 54 LOCAL_SHARED_LIBRARIES := \ 55 libcutils \ 56 libft2 \ 57 libicuuc \ 58 libicui18n \ 59 libpng \ 60 libutils \ 61 liblog \ 62 libz 63 64 LOCAL_C_INCLUDES += \ 65 $(LOCAL_PATH)/src \ 66 $(LOCAL_PATH)/src/contrib \ 67 external/icu4c/common \ 68 external/freetype/include 69 70 ifeq ($(NO_FALLBACK_FONT),true) 71 LOCAL_CFLAGS += -DNO_FALLBACK_FONT 72 endif 73 74 LOCAL_LDLIBS += -lpthread 75 76 LOCAL_MODULE:= libharfbuzz 77 78 79 80 include $(BUILD_SHARED_LIBRARY) 81