• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        py3: {
50            embedded_launcher: true,
51        },
52    },
53    libs: [
54        "apex_build_info_proto",
55        "apex_manifest_proto",
56    ],
57    required: [
58        "apexer",
59        "signapk",
60    ],
61}
62
63cc_library_shared {
64    name: "libsharedlibtest",
65    srcs: [ "sharedlibstest.cpp", ],
66
67    local_include_dirs: [
68        "include",
69    ],
70
71    export_include_dirs: [
72        "include",
73    ],
74    apex_available: [
75        "com.android.apex.test.bar",
76        "com.android.apex.test.baz",
77        "com.android.apex.test.foo",
78        "com.android.apex.test.pony",
79        "com.android.apex.test.sharedlibs_stub",
80        "com.android.apex.test.sharedlibs_secondary_stub",
81    ],
82}
83