xref: /aosp_15_r20/tools/asuite/atest/logstorage/httplib2/Android.bp (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1*c2e18aaaSAndroid Build Coastguard Worker// Copyright 2024 The Android Open Source Project
2*c2e18aaaSAndroid Build Coastguard Worker//
3*c2e18aaaSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*c2e18aaaSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*c2e18aaaSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*c2e18aaaSAndroid Build Coastguard Worker//
7*c2e18aaaSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*c2e18aaaSAndroid Build Coastguard Worker//
9*c2e18aaaSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*c2e18aaaSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*c2e18aaaSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*c2e18aaaSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*c2e18aaaSAndroid Build Coastguard Worker// limitations under the License.
14*c2e18aaaSAndroid Build Coastguard Worker
15*c2e18aaaSAndroid Build Coastguard Workerpackage {
16*c2e18aaaSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
17*c2e18aaaSAndroid Build Coastguard Worker}
18*c2e18aaaSAndroid Build Coastguard Worker
19*c2e18aaaSAndroid Build Coastguard Worker// Helps httplib2 find ca certs in python targets with embedded launcher.
20*c2e18aaaSAndroid Build Coastguard Workerpython_library_host {
21*c2e18aaaSAndroid Build Coastguard Worker    name: "ca_certs_locater",
22*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
23*c2e18aaaSAndroid Build Coastguard Worker        "ca_certs_locater.py",
24*c2e18aaaSAndroid Build Coastguard Worker    ],
25*c2e18aaaSAndroid Build Coastguard Worker}
26*c2e18aaaSAndroid Build Coastguard Worker
27*c2e18aaaSAndroid Build Coastguard Workerpython_defaults {
28*c2e18aaaSAndroid Build Coastguard Worker    name: "ca_certs_locater_unittest_default",
29*c2e18aaaSAndroid Build Coastguard Worker    srcs: [
30*c2e18aaaSAndroid Build Coastguard Worker        "ca_certs_locater_unittest.py",
31*c2e18aaaSAndroid Build Coastguard Worker    ],
32*c2e18aaaSAndroid Build Coastguard Worker    main: "ca_certs_locater_unittest.py",
33*c2e18aaaSAndroid Build Coastguard Worker    libs: [
34*c2e18aaaSAndroid Build Coastguard Worker        "py-httplib2",
35*c2e18aaaSAndroid Build Coastguard Worker        "ca_certs_locater",
36*c2e18aaaSAndroid Build Coastguard Worker    ],
37*c2e18aaaSAndroid Build Coastguard Worker}
38*c2e18aaaSAndroid Build Coastguard Worker
39*c2e18aaaSAndroid Build Coastguard Workerpython_test_host {
40*c2e18aaaSAndroid Build Coastguard Worker    name: "ca_certs_locater_unittest",
41*c2e18aaaSAndroid Build Coastguard Worker    defaults: ["ca_certs_locater_unittest_default"],
42*c2e18aaaSAndroid Build Coastguard Worker    test_options: {
43*c2e18aaaSAndroid Build Coastguard Worker        unit_test: true,
44*c2e18aaaSAndroid Build Coastguard Worker    },
45*c2e18aaaSAndroid Build Coastguard Worker    version: {
46*c2e18aaaSAndroid Build Coastguard Worker        py3: {
47*c2e18aaaSAndroid Build Coastguard Worker            embedded_launcher: true,
48*c2e18aaaSAndroid Build Coastguard Worker        },
49*c2e18aaaSAndroid Build Coastguard Worker    },
50*c2e18aaaSAndroid Build Coastguard Worker}
51*c2e18aaaSAndroid Build Coastguard Worker
52*c2e18aaaSAndroid Build Coastguard Workerpython_test_host {
53*c2e18aaaSAndroid Build Coastguard Worker    name: "ca_certs_locater_non_embedded_unittest",
54*c2e18aaaSAndroid Build Coastguard Worker    defaults: ["ca_certs_locater_unittest_default"],
55*c2e18aaaSAndroid Build Coastguard Worker    test_options: {
56*c2e18aaaSAndroid Build Coastguard Worker        unit_test: true,
57*c2e18aaaSAndroid Build Coastguard Worker    },
58*c2e18aaaSAndroid Build Coastguard Worker    version: {
59*c2e18aaaSAndroid Build Coastguard Worker        py3: {
60*c2e18aaaSAndroid Build Coastguard Worker            embedded_launcher: false,
61*c2e18aaaSAndroid Build Coastguard Worker        },
62*c2e18aaaSAndroid Build Coastguard Worker    },
63*c2e18aaaSAndroid Build Coastguard Worker}
64