xref: /aosp_15_r20/external/cronet/android/tools/license/Android.bp (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Worker// Copyright (C) 2024 The Android Open Source Project
2*6777b538SAndroid Build Coastguard Worker//
3*6777b538SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*6777b538SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*6777b538SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*6777b538SAndroid Build Coastguard Worker//
7*6777b538SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*6777b538SAndroid Build Coastguard Worker//
9*6777b538SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*6777b538SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*6777b538SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*6777b538SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*6777b538SAndroid Build Coastguard Worker// limitations under the License.
14*6777b538SAndroid Build Coastguard Worker
15*6777b538SAndroid Build Coastguard Workerpython_library_host {
16*6777b538SAndroid Build Coastguard Worker    name: "license_converter",
17*6777b538SAndroid Build Coastguard Worker    srcs: [
18*6777b538SAndroid Build Coastguard Worker        "*.py",
19*6777b538SAndroid Build Coastguard Worker    ],
20*6777b538SAndroid Build Coastguard Worker}
21*6777b538SAndroid Build Coastguard Worker
22*6777b538SAndroid Build Coastguard Workerpython_test_host {
23*6777b538SAndroid Build Coastguard Worker    name: "license_converter_test",
24*6777b538SAndroid Build Coastguard Worker    srcs: [
25*6777b538SAndroid Build Coastguard Worker        "tests/*.py",
26*6777b538SAndroid Build Coastguard Worker    ],
27*6777b538SAndroid Build Coastguard Worker    test_config: "tests/AndroidTest.xml",
28*6777b538SAndroid Build Coastguard Worker    main: "tests/license_converter_test.py",
29*6777b538SAndroid Build Coastguard Worker    libs: [
30*6777b538SAndroid Build Coastguard Worker        "license_converter",
31*6777b538SAndroid Build Coastguard Worker    ],
32*6777b538SAndroid Build Coastguard Worker    test_suites: ["general-tests"],
33*6777b538SAndroid Build Coastguard Worker    // Uncomment the `data` field once b/372449684 is fixed and enable
34*6777b538SAndroid Build Coastguard Worker    // the corresponding test in license_converter_test.py
35*6777b538SAndroid Build Coastguard Worker    // data: [":license_data"],
36*6777b538SAndroid Build Coastguard Worker    test_options: {
37*6777b538SAndroid Build Coastguard Worker        unit_test: true,
38*6777b538SAndroid Build Coastguard Worker    },
39*6777b538SAndroid Build Coastguard Worker    team: "trendy_team_fwk_core_networking",
40*6777b538SAndroid Build Coastguard Worker}
41