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