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 17cc_test { 18 name: "minikin_tests", 19 test_suites: ["device-tests"], 20 data: [":minikin-test-data"], 21 22 header_libs: ["libminikin-headers-for-tests"], 23 24 static_libs: [ 25 "libminikin-tests-util", 26 "libminikin", 27 "libxml2", 28 ], 29 30 // Shared libraries which are dependencies of minikin; these are not automatically 31 // pulled in by the build system (and thus sadly must be repeated). 32 shared_libs: [ 33 "libft2", 34 "libharfbuzz_ng", 35 "libandroidicu", 36 "liblog", 37 "libutils", 38 "libz", 39 ], 40 41 srcs: [ 42 "AndroidLineBreakerHelperTest.cpp", 43 "BidiUtilsTest.cpp", 44 "CmapCoverageTest.cpp", 45 "EmojiTest.cpp", 46 "FontTest.cpp", 47 "FontCollectionTest.cpp", 48 "FontCollectionItemizeTest.cpp", 49 "FontFamilyTest.cpp", 50 "FontLanguageListCacheTest.cpp", 51 "FontUtilsTest.cpp", 52 "HasherTest.cpp", 53 "HyphenatorMapTest.cpp", 54 "HyphenatorTest.cpp", 55 "GraphemeBreakTests.cpp", 56 "GreedyLineBreakerTest.cpp", 57 "LayoutCacheTest.cpp", 58 "LayoutCoreTest.cpp", 59 "LayoutSplitterTest.cpp", 60 "LayoutTest.cpp", 61 "LayoutUtilsTest.cpp", 62 "LocaleListTest.cpp", 63 "MeasuredTextTest.cpp", 64 "MeasurementTests.cpp", 65 "OptimalLineBreakerTest.cpp", 66 "SparseBitSetTest.cpp", 67 "StringPieceTest.cpp", 68 "SystemFontsTest.cpp", 69 "TestMain.cpp", 70 "UnicodeUtilsTest.cpp", 71 "WordBreakerTests.cpp", 72 ], 73 74 cflags: [ 75 "-Werror", 76 "-Wall", 77 "-Wextra", 78 ], 79} 80