Android.mk 2.3 KB
Newer Older
R
Raph Levien 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Copyright (C) 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

R
Raph Levien 已提交
19
minikin_src_files := \
R
Raph Levien 已提交
20 21 22 23
    AnalyzeStyle.cpp \
    CmapCoverage.cpp \
    FontCollection.cpp \
    FontFamily.cpp \
S
Seigo Nonaka 已提交
24
    FontLanguageListCache.cpp \
25
    GraphemeBreak.cpp \
26
    HbFaceCache.cpp \
27
    Hyphenator.cpp \
R
Raph Levien 已提交
28
    Layout.cpp \
29
    LayoutUtils.cpp \
R
Raph Levien 已提交
30
    LineBreaker.cpp \
31
    Measurement.cpp \
R
Raph Levien 已提交
32 33
    MinikinInternal.cpp \
    MinikinRefCounted.cpp \
R
Raph Levien 已提交
34
    MinikinFontFreeType.cpp \
R
Raph Levien 已提交
35 36
    SparseBitSet.cpp

R
Raph Levien 已提交
37
minikin_c_includes := \
R
Raph Levien 已提交
38 39 40 41
    external/harfbuzz_ng/src \
    external/freetype/include \
    frameworks/minikin/include

R
Raph Levien 已提交
42
minikin_shared_libraries := \
R
Raph Levien 已提交
43
    libharfbuzz_ng \
44
    libft2 \
45
    liblog \
46
    libz \
47 48
    libicuuc \
    libutils
R
Raph Levien 已提交
49

R
Raph Levien 已提交
50 51 52 53
LOCAL_MODULE := libminikin
LOCAL_EXPORT_C_INCLUDE_DIRS := frameworks/minikin/include
LOCAL_SRC_FILES := $(minikin_src_files)
LOCAL_C_INCLUDES := $(minikin_c_includes)
54
LOCAL_CPPFLAGS += -Werror -Wall -Wextra
R
Raph Levien 已提交
55 56
LOCAL_SHARED_LIBRARIES := $(minikin_shared_libraries)

57
include $(BUILD_SHARED_LIBRARY)
R
Raph Levien 已提交
58 59 60 61 62 63 64 65

include $(CLEAR_VARS)

LOCAL_MODULE := libminikin
LOCAL_MODULE_TAGS := optional
LOCAL_EXPORT_C_INCLUDE_DIRS := frameworks/minikin/include
LOCAL_SRC_FILES := $(minikin_src_files)
LOCAL_C_INCLUDES := $(minikin_c_includes)
66
LOCAL_CPPFLAGS += -Werror -Wall -Wextra
R
Raph Levien 已提交
67 68 69
LOCAL_SHARED_LIBRARIES := $(minikin_shared_libraries)

include $(BUILD_STATIC_LIBRARY)
70 71 72 73 74 75 76 77 78

include $(CLEAR_VARS)

# Reduced library (currently just hyphenation) for host

LOCAL_MODULE := libminikin_host
LOCAL_MODULE_TAGS := optional
LOCAL_EXPORT_C_INCLUDE_DIRS := frameworks/minikin/include
LOCAL_C_INCLUDES := $(minikin_c_includes)
79
LOCAL_CPPFLAGS += -Werror -Wall -Wextra
80 81 82 83 84
LOCAL_SHARED_LIBRARIES := liblog libicuuc-host

LOCAL_SRC_FILES := Hyphenator.cpp

include $(BUILD_HOST_STATIC_LIBRARY)