xref: /aosp_15_r20/external/icu/icu4c/source/test/cintltst/Android.bp (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
1*0e209d39SAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
2*0e209d39SAndroid Build Coastguard Worker//
3*0e209d39SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*0e209d39SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*0e209d39SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*0e209d39SAndroid Build Coastguard Worker//
7*0e209d39SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*0e209d39SAndroid Build Coastguard Worker//
9*0e209d39SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*0e209d39SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*0e209d39SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*0e209d39SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*0e209d39SAndroid Build Coastguard Worker// limitations under the License.
14*0e209d39SAndroid Build Coastguard Worker
15*0e209d39SAndroid Build Coastguard Workerpackage {
16*0e209d39SAndroid Build Coastguard Worker    default_team: "trendy_team_java_core_libraries",
17*0e209d39SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
18*0e209d39SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
19*0e209d39SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_icu_icu4c_license"
20*0e209d39SAndroid Build Coastguard Worker    // to get the below license kinds:
21*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Unicode-DFS
22*0e209d39SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_icu_icu4c_license"],
23*0e209d39SAndroid Build Coastguard Worker}
24*0e209d39SAndroid Build Coastguard Worker
25*0e209d39SAndroid Build Coastguard Workercc_defaults {
26*0e209d39SAndroid Build Coastguard Worker    name: "cintltst_defaults",
27*0e209d39SAndroid Build Coastguard Worker    defaults: ["icu_test_defaults"],
28*0e209d39SAndroid Build Coastguard Worker    srcs: [
29*0e209d39SAndroid Build Coastguard Worker        "**/*.c",
30*0e209d39SAndroid Build Coastguard Worker        "**/*.cpp",
31*0e209d39SAndroid Build Coastguard Worker    ],
32*0e209d39SAndroid Build Coastguard Worker    cflags: [
33*0e209d39SAndroid Build Coastguard Worker        "-DZERO_EXIT_CODE_FOR_FAILURES",
34*0e209d39SAndroid Build Coastguard Worker    ],
35*0e209d39SAndroid Build Coastguard Worker    exclude_srcs: [
36*0e209d39SAndroid Build Coastguard Worker        // Not built directly, but #included from other sources.
37*0e209d39SAndroid Build Coastguard Worker        "usrchdat.c",
38*0e209d39SAndroid Build Coastguard Worker    ],
39*0e209d39SAndroid Build Coastguard Worker}
40*0e209d39SAndroid Build Coastguard Worker
41*0e209d39SAndroid Build Coastguard Worker// Build exactly one variant even for 32-bit / 64-bit only target, because
42*0e209d39SAndroid Build Coastguard Worker// CtsIcu4cTestCases depends on this module from the "data:" property which allows single-variant
43*0e209d39SAndroid Build Coastguard Worker// dependency only.
44*0e209d39SAndroid Build Coastguard Worker// Soong selects the first variant where 32-bit is prioritized on "cintltst32" and 64-bit is
45*0e209d39SAndroid Build Coastguard Worker// prioritized on "cintltst64".
46*0e209d39SAndroid Build Coastguard Workercc_test {
47*0e209d39SAndroid Build Coastguard Worker    name: "cintltst32",
48*0e209d39SAndroid Build Coastguard Worker    defaults: ["cintltst_defaults"],
49*0e209d39SAndroid Build Coastguard Worker    multilib: {
50*0e209d39SAndroid Build Coastguard Worker        // On 64-bit platform, this binary is compiled, but not used.
51*0e209d39SAndroid Build Coastguard Worker        lib64: {
52*0e209d39SAndroid Build Coastguard Worker            suffix: "_fake",
53*0e209d39SAndroid Build Coastguard Worker        },
54*0e209d39SAndroid Build Coastguard Worker    },
55*0e209d39SAndroid Build Coastguard Worker    compile_multilib: "first_prefer32",
56*0e209d39SAndroid Build Coastguard Worker}
57*0e209d39SAndroid Build Coastguard Worker
58*0e209d39SAndroid Build Coastguard Workercc_test {
59*0e209d39SAndroid Build Coastguard Worker    name: "cintltst64",
60*0e209d39SAndroid Build Coastguard Worker    defaults: ["cintltst_defaults"],
61*0e209d39SAndroid Build Coastguard Worker    multilib: {
62*0e209d39SAndroid Build Coastguard Worker        // On 32-bit platform, this binary is compiled, but not used.
63*0e209d39SAndroid Build Coastguard Worker        lib32: {
64*0e209d39SAndroid Build Coastguard Worker            suffix: "_fake",
65*0e209d39SAndroid Build Coastguard Worker        },
66*0e209d39SAndroid Build Coastguard Worker    },
67*0e209d39SAndroid Build Coastguard Worker    compile_multilib: "first",
68*0e209d39SAndroid Build Coastguard Worker}
69