Android.mk revision fb0d396929e534a3686469b474d4f670864aa5ac
1# Copyright (C) 2013 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18
19minikin_src_files := \
20    AnalyzeStyle.cpp \
21    CmapCoverage.cpp \
22    FontCollection.cpp \
23    FontFamily.cpp \
24    GraphemeBreak.cpp \
25    HbFaceCache.cpp \
26    Hyphenator.cpp \
27    Layout.cpp \
28    LayoutUtils.cpp \
29    LineBreaker.cpp \
30    Measurement.cpp \
31    MinikinInternal.cpp \
32    MinikinRefCounted.cpp \
33    MinikinFontFreeType.cpp \
34    SparseBitSet.cpp
35
36minikin_c_includes := \
37    external/harfbuzz_ng/src \
38    external/freetype/include \
39    frameworks/minikin/include
40
41minikin_shared_libraries := \
42    libharfbuzz_ng \
43    libft2 \
44    liblog \
45    libz \
46    libicuuc \
47    libutils
48
49LOCAL_MODULE := libminikin
50LOCAL_EXPORT_C_INCLUDE_DIRS := frameworks/minikin/include
51LOCAL_SRC_FILES := $(minikin_src_files)
52LOCAL_C_INCLUDES := $(minikin_c_includes)
53LOCAL_SHARED_LIBRARIES := $(minikin_shared_libraries)
54
55include $(BUILD_SHARED_LIBRARY)
56
57include $(CLEAR_VARS)
58
59LOCAL_MODULE := libminikin
60LOCAL_MODULE_TAGS := optional
61LOCAL_EXPORT_C_INCLUDE_DIRS := frameworks/minikin/include
62LOCAL_SRC_FILES := $(minikin_src_files)
63LOCAL_C_INCLUDES := $(minikin_c_includes)
64LOCAL_SHARED_LIBRARIES := $(minikin_shared_libraries)
65
66include $(BUILD_STATIC_LIBRARY)
67