832d55e475a78f4e967f87504b3ce9d767999620
[platform/upstream/harfbuzz.git] / Android.mk
1 ##
2 ## Copyright (C) 2012 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 LOCAL_PATH:= $(call my-dir)
18
19 #############################################################
20 #   build the harfbuzz library
21 #
22
23 include $(CLEAR_VARS)
24
25 LOCAL_ARM_MODE := arm
26
27 LOCAL_MODULE_TAGS := optional
28
29 LOCAL_SRC_FILES:= \
30         src/hb-blob.cc \
31         src/hb-buffer.cc \
32         src/hb-common.cc \
33         src/hb-fallback-shape.cc \
34         src/hb-font.cc \
35         src/hb-ot-tag.cc \
36         src/hb-set.cc \
37         src/hb-shape.cc \
38         src/hb-shape-plan.cc \
39         src/hb-shaper.cc \
40         src/hb-tt-font.cc \
41         src/hb-unicode.cc \
42         src/hb-warning.cc \
43         src/hb-ot-layout.cc \
44         src/hb-ot-map.cc \
45         src/hb-ot-shape.cc \
46         src/hb-ot-shape-complex-arabic.cc \
47         src/hb-ot-shape-complex-default.cc \
48         src/hb-ot-shape-complex-indic.cc \
49         src/hb-ot-shape-complex-thai.cc \
50         src/hb-ot-shape-normalize.cc \
51         src/hb-ot-shape-fallback.cc \
52         src/hb-icu.cc
53
54 LOCAL_CPP_EXTENSION := .cc
55
56 LOCAL_SHARED_LIBRARIES := \
57         libcutils \
58         libicuuc \
59         libicui18n \
60         libutils
61
62 LOCAL_C_INCLUDES += \
63         $(LOCAL_PATH)/src \
64         external/icu4c/common
65
66 LOCAL_CFLAGS += -DHB_NO_MT -DHAVE_OT -DHAVE_ICU
67
68 LOCAL_LDLIBS += -lpthread
69
70 LOCAL_MODULE:= libharfbuzz_ng
71
72 include $(BUILD_SHARED_LIBRARY)
73
74