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