• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2022 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 "system_tools_aidl_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["system_tools_aidl_license"],
22}
23
24aidl_interface {
25    name: "example-dep-aidl-interfaces",
26    local_include_dir: "src",
27    srcs: [
28        "src/a/b/AB.aidl",
29    ],
30    backend: {
31        java: {
32            min_sdk_version: "29",
33        },
34        ndk: {
35            enabled: false,
36        },
37        cpp: {
38            enabled: false,
39        },
40    },
41    versions: [
42        "1",
43    ],
44
45}
46
47aidl_interface {
48    name: "example-aidl-interfaces",
49    local_include_dir: "src",
50    srcs: [
51        "src/c/d/CD.aidl",
52        "src/c/d/CD2.aidl",
53    ],
54    backend: {
55        java: {
56            min_sdk_version: "29",
57        },
58        ndk: {
59            enabled: false,
60        },
61        cpp: {
62            enabled: false,
63        },
64    },
65    imports: ["example-dep-aidl-interfaces-V1"],
66    versions: [
67        "1",
68        "2",
69    ],
70}
71
72java_library {
73    name: "example-aidl-latest",
74    sdk_version: "system_current",
75    min_sdk_version: "29",
76    static_libs: [
77        "example-aidl-interfaces-V2-java",
78    ],
79}
80
81java_library {
82    name: "example-aidl-test",
83    sdk_version: "system_current",
84    min_sdk_version: "29",
85    srcs: ["src/android/Test.java"],
86    static_libs: ["example-aidl-latest"],
87}
88