1// Copyright (C) 2020 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
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_binary {
21    name: "noop",
22    srcs: ["noop.cc"],
23    shared_libs: [
24      "libsharedlibtest",
25    ],
26    multilib: {
27        lib32: {
28            suffix: "32",
29        },
30        lib64: {
31            suffix: "64",
32        },
33    },
34
35    compile_multilib: "both",
36
37    apex_available: [
38      "com.android.apex.test.sharedlibs_stub",
39      "com.android.apex.test.sharedlibs_secondary_stub",
40    ],
41}
42
43python_binary_host {
44    name: "shared_libs_repack",
45    srcs: [
46        "shared_libs_repack.py",
47    ],
48    version: {
49        py2: {
50            enabled: false,
51        },
52        py3: {
53            enabled: true,
54            embedded_launcher: true,
55        },
56    },
57    libs: [
58        "apex_build_info_proto",
59        "apex_manifest_proto",
60    ],
61    required: [
62        "apexer",
63        "signapk",
64    ],
65}
66
67cc_library_shared {
68    name: "libsharedlibtest",
69    srcs: [ "sharedlibstest.cpp", ],
70
71    local_include_dirs: [
72        "include",
73    ],
74
75    export_include_dirs: [
76        "include",
77    ],
78    apex_available: [
79        "com.android.apex.test.bar",
80        "com.android.apex.test.baz",
81        "com.android.apex.test.foo",
82        "com.android.apex.test.pony",
83        "com.android.apex.test.sharedlibs_stub",
84        "com.android.apex.test.sharedlibs_secondary_stub",
85    ],
86}
87