2017-03-20 04:44:32 +08:00
|
|
|
// Copyright 2017 Google Inc. All rights reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package cc
|
|
|
|
|
|
|
|
var (
|
|
|
|
llndkLibrarySuffix = ".llndk"
|
2017-10-19 14:59:33 +08:00
|
|
|
llndkHeadersSuffix = ".llndk"
|
2017-03-20 04:44:32 +08:00
|
|
|
)
|
|
|
|
|
2020-12-17 08:46:01 +08:00
|
|
|
// Holds properties to describe a stub shared library based on the provided version file.
|
2017-03-20 04:44:32 +08:00
|
|
|
type llndkLibraryProperties struct {
|
|
|
|
// Relative path to the symbol map.
|
|
|
|
// An example file can be seen here: TODO(danalbert): Make an example.
|
2017-11-08 02:57:05 +08:00
|
|
|
Symbol_file *string
|
2017-03-20 04:44:32 +08:00
|
|
|
|
|
|
|
// Whether to export any headers as -isystem instead of -I. Mainly for use by
|
|
|
|
// bionic/libc.
|
2017-11-08 02:57:05 +08:00
|
|
|
Export_headers_as_system *bool
|
2017-03-20 04:44:32 +08:00
|
|
|
|
|
|
|
// Which headers to process with versioner. This really only handles
|
|
|
|
// bionic/libc/include right now.
|
|
|
|
Export_preprocessed_headers []string
|
|
|
|
|
|
|
|
// Whether the system library uses symbol versions.
|
2017-11-08 02:57:05 +08:00
|
|
|
Unversioned *bool
|
2017-08-16 13:05:54 +08:00
|
|
|
|
2017-10-19 14:59:33 +08:00
|
|
|
// list of llndk headers to re-export include directories from.
|
2021-03-03 03:00:07 +08:00
|
|
|
Export_llndk_headers []string
|
|
|
|
|
|
|
|
// list of directories relative to the Blueprints file that willbe added to the include path
|
|
|
|
// (using -I) for any module that links against the LLNDK variant of this module, replacing
|
|
|
|
// any that were listed outside the llndk clause.
|
|
|
|
Override_export_include_dirs []string
|
2020-12-17 08:46:01 +08:00
|
|
|
|
|
|
|
// whether this module can be directly depended upon by libs that are installed
|
|
|
|
// to /vendor and /product.
|
|
|
|
// When set to true, this module can only be depended on by VNDK libraries, not
|
|
|
|
// vendor nor product libraries. This effectively hides this module from
|
|
|
|
// non-system modules. Default value is false.
|
|
|
|
Private *bool
|
2021-04-27 09:37:44 +08:00
|
|
|
|
|
|
|
// if true, make this module available to provide headers to other modules that set
|
|
|
|
// llndk.symbol_file.
|
|
|
|
Llndk_headers *bool
|
2017-03-20 04:44:32 +08:00
|
|
|
}
|