• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2018 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
15package {
16    default_team: "trendy_team_java_core_libraries",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "external_icu_icu4c_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-MIT
22    //   SPDX-license-identifier-Unicode-DFS
23    //   legacy_unencumbered
24    default_applicable_licenses: ["external_icu_icu4c_license"],
25}
26
27subdirs = [
28    "cintltst",
29    "intltest",
30]
31
32cc_defaults {
33    name: "icu_test_defaults",
34    gtest: false,
35    rtti: true,
36    cflags: [
37        "-Wno-deprecated-declarations",
38        "-Wno-missing-field-initializers",
39        "-Wno-tautological-undefined-compare",
40        "-Wno-unused-function",
41        "-Wno-unused-parameter",
42        "-Wno-unused-variable",
43        "-DUCONFIG_USE_ML_PHRASE_BREAKING=1",
44    ],
45    shared_libs: [
46        "libicu_cts_stub",
47        "libicuuc_cts_stub",
48        "libicui18n_cts_stub",
49        "libbase",
50        "liblog",
51    ],
52
53    static_libs: [
54        "libicuctest",
55        "libicuio",
56        "libicutoolutil",
57    ],
58    target: {
59        android: {
60            cflags: [
61                // Required to link libicuuc_cts_stub
62                "-DANDROID_LINK_SHARED_ICU4C",
63                // Do not set the data directory explicitly on Android because libicuuc has set it.
64                "-DANDROID_USE_ICU_REG",
65                // Used by loadSourceTestData() to find the testdata.
66                "-DU_TOPSRCDIR=\"/data/local/tmp\"",
67            ],
68        },
69    },
70}
71