2017-03-19 21:44:32 +01: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 08:59:33 +02:00
|
|
|
llndkHeadersSuffix = ".llndk"
|
2017-03-19 21:44:32 +01:00
|
|
|
)
|
|
|
|
|
2020-12-17 01:46:01 +01:00
|
|
|
// Holds properties to describe a stub shared library based on the provided version file.
|
2017-03-19 21:44:32 +01:00
|
|
|
type llndkLibraryProperties struct {
|
|
|
|
// Relative path to the symbol map.
|
|
|
|
// An example file can be seen here: TODO(danalbert): Make an example.
|
2017-11-07 19:57:05 +01:00
|
|
|
Symbol_file *string
|
2017-03-19 21:44:32 +01:00
|
|
|
|
|
|
|
// Whether to export any headers as -isystem instead of -I. Mainly for use by
|
|
|
|
// bionic/libc.
|
2017-11-07 19:57:05 +01:00
|
|
|
Export_headers_as_system *bool
|
2017-03-19 21:44:32 +01: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-07 19:57:05 +01:00
|
|
|
Unversioned *bool
|
2017-08-16 07:05:54 +02:00
|
|
|
|
2017-10-19 08:59:33 +02:00
|
|
|
// list of llndk headers to re-export include directories from.
|
2021-03-02 20:00:07 +01: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 01:46:01 +01: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 03:37:44 +02:00
|
|
|
|
|
|
|
// if true, make this module available to provide headers to other modules that set
|
|
|
|
// llndk.symbol_file.
|
|
|
|
Llndk_headers *bool
|
2017-03-19 21:44:32 +01:00
|
|
|
}
|