1// 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
17var (
18	vendorPublicLibrarySuffix = ".vendorpublic"
19)
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//
31// vendor_public_library {
32//     name: "libfoo",
33//     symbol_file: "libfoo.map.txt",
34//     export_public_headers: ["libfoo_headers"],
35// }
36//
37// cc_headers {
38//     name: "libfoo_headers",
39//     export_include_dirs: ["include"],
40// }
41//
42type vendorPublicLibraryProperties struct {
43	// Relative path to the symbol map.
44	Symbol_file *string
45
46	// Whether the system library uses symbol versions.
47	Unversioned *bool
48
49	// list of header libs to re-export include directories from.
50	Export_public_headers []string `android:"arch_variant"`
51
52	// list of directories relative to the Blueprints file that willbe added to the include path
53	// (using -I) for any module that links against the LLNDK variant of this module, replacing
54	// any that were listed outside the llndk clause.
55	Override_export_include_dirs []string
56}
57