linker_config.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2020 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // This format file defines configuration file for linkerconfig. Details on this
  17. // format can be found from
  18. // https://android.googlesource.com/platform/system/linkerconfig/+/master/README.md
  19. syntax = "proto3";
  20. package android.linkerconfig.proto;
  21. message LinkerConfig {
  22. // Extra permitted paths
  23. repeated string permittedPaths = 1;
  24. // Force APEX namespace visible
  25. bool visible = 2;
  26. // Providing libs from the module
  27. repeated string provideLibs = 3;
  28. // Required libs from the module
  29. repeated string requireLibs = 4;
  30. message Contribution {
  31. // Target namespace where this module contributes the search paths.
  32. string namespace = 1;
  33. // Search paths (inc. permitted paths) that this module contributes.
  34. // Paths should be related to the current module and can use "${LIB}" variable which is
  35. // expanded to "lib" or "lib64".
  36. // e.g. ${LIB}/subdir
  37. repeated string paths = 2;
  38. }
  39. // APEX can contribute search paths to specified namespaces.
  40. repeated Contribution contributions = 5;
  41. }