blob: f2c8545bc3b6f5ec768a4e0296f512c08353ff89 [file] [log] [blame]
Jiyong Park374510b2018-03-19 18:23:01 +09001// Copyright 2018 Google Inc. All rights reserved.
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 cc
16
Jiyong Park374510b2018-03-19 18:23:01 +090017var (
18 vendorPublicLibrarySuffix = ".vendorpublic"
Jiyong Park374510b2018-03-19 18:23:01 +090019)
20
21// Creates a stub shared library for a vendor public library. Vendor public libraries
22// are vendor libraries (owned by them and installed to /vendor partition) that are
23// exposed to Android apps via JNI. The libraries are made public by being listed in
24// /vendor/etc/public.libraries.txt.
25//
26// This stub library is a build-time only artifact that provides symbols that are
27// exposed from a vendor public library.
28//
29// Example:
30//
Colin Crossd079e0b2022-08-16 10:27:33 -070031// vendor_public_library {
32// name: "libfoo",
33// symbol_file: "libfoo.map.txt",
34// export_public_headers: ["libfoo_headers"],
35// }
Jiyong Park374510b2018-03-19 18:23:01 +090036//
Colin Crossd079e0b2022-08-16 10:27:33 -070037// cc_headers {
38// name: "libfoo_headers",
39// export_include_dirs: ["include"],
40// }
Jiyong Park374510b2018-03-19 18:23:01 +090041type vendorPublicLibraryProperties struct {
42 // Relative path to the symbol map.
43 Symbol_file *string
44
45 // Whether the system library uses symbol versions.
46 Unversioned *bool
47
48 // list of header libs to re-export include directories from.
49 Export_public_headers []string `android:"arch_variant"`
Jiyong Park374510b2018-03-19 18:23:01 +090050
Colin Cross5271fea2021-04-27 13:06:04 -070051 // list of directories relative to the Blueprints file that willbe added to the include path
52 // (using -I) for any module that links against the LLNDK variant of this module, replacing
53 // any that were listed outside the llndk clause.
54 Override_export_include_dirs []string
Jiyong Park374510b2018-03-19 18:23:01 +090055}