vendor_public_library.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. package cc
  15. var (
  16. vendorPublicLibrarySuffix = ".vendorpublic"
  17. )
  18. // Creates a stub shared library for a vendor public library. Vendor public libraries
  19. // are vendor libraries (owned by them and installed to /vendor partition) that are
  20. // exposed to Android apps via JNI. The libraries are made public by being listed in
  21. // /vendor/etc/public.libraries.txt.
  22. //
  23. // This stub library is a build-time only artifact that provides symbols that are
  24. // exposed from a vendor public library.
  25. //
  26. // Example:
  27. //
  28. // vendor_public_library {
  29. // name: "libfoo",
  30. // symbol_file: "libfoo.map.txt",
  31. // export_public_headers: ["libfoo_headers"],
  32. // }
  33. //
  34. // cc_headers {
  35. // name: "libfoo_headers",
  36. // export_include_dirs: ["include"],
  37. // }
  38. type vendorPublicLibraryProperties struct {
  39. // Relative path to the symbol map.
  40. Symbol_file *string
  41. // Whether the system library uses symbol versions.
  42. Unversioned *bool
  43. // list of header libs to re-export include directories from.
  44. Export_public_headers []string `android:"arch_variant"`
  45. // list of directories relative to the Blueprints file that willbe added to the include path
  46. // (using -I) for any module that links against the LLNDK variant of this module, replacing
  47. // any that were listed outside the llndk clause.
  48. Override_export_include_dirs []string
  49. }