llndk_library.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright 2017 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. package cc
  15. var (
  16. llndkLibrarySuffix = ".llndk"
  17. llndkHeadersSuffix = ".llndk"
  18. )
  19. // Holds properties to describe a stub shared library based on the provided version file.
  20. type llndkLibraryProperties struct {
  21. // Relative path to the symbol map.
  22. // An example file can be seen here: TODO(danalbert): Make an example.
  23. Symbol_file *string
  24. // Whether to export any headers as -isystem instead of -I. Mainly for use by
  25. // bionic/libc.
  26. Export_headers_as_system *bool
  27. // Which headers to process with versioner. This really only handles
  28. // bionic/libc/include right now.
  29. Export_preprocessed_headers []string
  30. // Whether the system library uses symbol versions.
  31. Unversioned *bool
  32. // list of llndk headers to re-export include directories from.
  33. Export_llndk_headers []string
  34. // list of directories relative to the Blueprints file that willbe added to the include path
  35. // (using -I) for any module that links against the LLNDK variant of this module, replacing
  36. // any that were listed outside the llndk clause.
  37. Override_export_include_dirs []string
  38. // whether this module can be directly depended upon by libs that are installed
  39. // to /vendor and /product.
  40. // When set to true, this module can only be depended on by VNDK libraries, not
  41. // vendor nor product libraries. This effectively hides this module from
  42. // non-system modules. Default value is false.
  43. Private *bool
  44. // if true, make this module available to provide headers to other modules that set
  45. // llndk.symbol_file.
  46. Llndk_headers *bool
  47. }