• 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    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "external_icu_icu4c_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Unicode-DFS
21    //   legacy_unencumbered
22    default_applicable_licenses: ["external_icu_icu4c_license"],
23}
24
25cc_defaults {
26    name: "intltest_defaults",
27    defaults: ["icu_test_defaults"],
28    cflags: [
29        // Needed for char* shift calculation in the test.
30        "-Wno-string-plus-int",
31        "-DZERO_EXIT_CODE_FOR_FAILURES",
32    ],
33    srcs: [
34        "**/*.c",
35        "**/*.cpp",
36    ],
37}
38
39// Build exactly one variant even for 32-bit / 64-bit only target, because
40// CtsIcu4cTestCases depends on this module from the "data:" property which allows single-variant
41// dependency only.
42// Soong selects the first variant where 32-bit is prioritized on "intltest32" and 64-bit is
43// prioritized on "intltest64".
44cc_test {
45    name: "intltest32",
46    defaults: ["intltest_defaults"],
47    multilib: {
48        // On 64-bit platform, this binary is compiled, but not used.
49        lib64: {
50            suffix: "_fake",
51        },
52    },
53    compile_multilib: "first_prefer32",
54}
55
56cc_test {
57    name: "intltest64",
58    defaults: ["intltest_defaults"],
59    multilib: {
60        // On 32-bit platform, this binary is compiled, but not used.
61        lib32: {
62            suffix: "_fake",
63        },
64    },
65    compile_multilib: "first",
66}
67