1# Copyright (C) 2015 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 15# see how_to_run.txt for instructions on running these tests 16 17LOCAL_PATH := $(call my-dir) 18 19include $(CLEAR_VARS) 20 21LOCAL_TEST_DATA := \ 22 data/Bold.ttf \ 23 data/BoldItalic.ttf \ 24 data/ColorEmojiFont.ttf \ 25 data/ColorTextMixedEmojiFont.ttf \ 26 data/Emoji.ttf \ 27 data/Italic.ttf \ 28 data/Ja.ttf \ 29 data/Ko.ttf \ 30 data/MultiAxis.ttf \ 31 data/NoCmapFormat14.ttf \ 32 data/NoGlyphFont.ttf \ 33 data/Regular.ttf \ 34 data/TextEmojiFont.ttf \ 35 data/UnicodeBMPOnly.ttf \ 36 data/UnicodeBMPOnly2.ttf \ 37 data/UnicodeUCS4.ttf \ 38 data/VariationSelectorTest-Regular.ttf \ 39 data/ZhHans.ttf \ 40 data/ZhHant.ttf \ 41 data/emoji.xml \ 42 data/itemize.xml \ 43 44LOCAL_TEST_DATA := $(foreach f,$(LOCAL_TEST_DATA),frameworks/minikin/tests:$(f)) 45 46LOCAL_MODULE := minikin_tests 47LOCAL_MODULE_TAGS := tests 48LOCAL_MODULE_CLASS := NATIVE_TESTS 49 50LOCAL_STATIC_LIBRARIES := libminikin 51 52# Shared libraries which are dependencies of minikin; these are not automatically 53# pulled in by the build system (and thus sadly must be repeated). 54 55LOCAL_SHARED_LIBRARIES := \ 56 libskia \ 57 libft2 \ 58 libharfbuzz_ng \ 59 libicuuc \ 60 liblog \ 61 libutils \ 62 libz 63 64LOCAL_STATIC_LIBRARIES += \ 65 libxml2 66 67LOCAL_SRC_FILES += \ 68 ../util/FileUtils.cpp \ 69 ../util/FontTestUtils.cpp \ 70 ../util/MinikinFontForTest.cpp \ 71 ../util/UnicodeUtils.cpp \ 72 CmapCoverageTest.cpp \ 73 EmojiTest.cpp \ 74 FontCollectionTest.cpp \ 75 FontCollectionItemizeTest.cpp \ 76 FontFamilyTest.cpp \ 77 FontLanguageListCacheTest.cpp \ 78 HbFontCacheTest.cpp \ 79 HyphenatorTest.cpp \ 80 GraphemeBreakTests.cpp \ 81 LayoutTest.cpp \ 82 LayoutUtilsTest.cpp \ 83 MeasurementTests.cpp \ 84 SparseBitSetTest.cpp \ 85 UnicodeUtilsTest.cpp \ 86 WordBreakerTests.cpp 87 88LOCAL_C_INCLUDES := \ 89 $(LOCAL_PATH)/../../libs/minikin/ \ 90 $(LOCAL_PATH)/../util \ 91 external/harfbuzz_ng/src \ 92 external/libxml2/include \ 93 external/skia/src/core 94 95LOCAL_CPPFLAGS += -Werror -Wall -Wextra 96 97LOCAL_CPPFLAGS_32 += -DkTestFontDir="\"/data/nativetest/minikin_tests/data/\"" 98LOCAL_CPPFLAGS_64 += -DkTestFontDir="\"/data/nativetest64/minikin_tests/data/\"" 99 100include $(BUILD_NATIVE_TEST) 101