xref: /aosp_15_r20/external/gturri-aXMLRPC/Android.bp (revision 1b3e0c610889c330a4f530b7731f3b672f65ccad)
1// Copyright (C) 2024 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_applicable_licenses: [
17        "gturri_axmlrpc_LICENSE",
18    ],
19}
20
21license {
22    name: "gturri_axmlrpc_LICENSE",
23    visibility: [":__subpackages__"],
24    license_kinds: [
25        "SPDX-license-identifier-MIT",
26    ],
27    license_text: [
28        "LICENSE",
29    ],
30}
31
32java_library_host {
33    name: "gturri_axmlrpc",
34    srcs: ["src/main/**/*.java"],
35    static_libs: [
36        "gturri_jiso8601",
37    ],
38    visibility: [
39        ":__subpackages__",
40        "//test/dts/libs/hostside/servo",
41    ],
42}
43
44// The tests depend on wiremock, which is not available in Android.
45// But if it was, here is the rule to build the tests:
46// java_test_host {
47//     name: "gturri_axmlrpc-tests",
48//     srcs: ["src/test/java/**/*.java"],
49//     static_libs: [
50//         "gturri_axmlrpc",
51//         "junit",
52//         "wiremock",
53//     ],
54// }
55