From e5b0a0a4a00e2e356db5983989314a12cc13113b Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Tue, 25 Jan 2022 17:13:15 +0900 Subject: [PATCH] Linkerconfig with namespace contribution APEX can contribute search paths to linker namespaces. Bug: 216208308 Test: linkerconfig_diff_test Change-Id: I3f9b85d7a491b9ac841b0e454c707b4d6c150654 --- linkerconfig/proto/linker_config.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/linkerconfig/proto/linker_config.proto b/linkerconfig/proto/linker_config.proto index fec66c85e..dccf311bb 100644 --- a/linkerconfig/proto/linker_config.proto +++ b/linkerconfig/proto/linker_config.proto @@ -34,4 +34,16 @@ message LinkerConfig { // Required libs from the module repeated string requireLibs = 4; + + message Contribution { + // Target namespace where this module contributes the search paths. + string namespace = 1; + // Search paths (inc. permitted paths) that this module contributes. + // Paths should be related to the current module and can use "${LIB}" variable which is + // expanded to "lib" or "lib64". + // e.g. ${LIB}/subdir + repeated string paths = 2; + } + // APEX can contribute search paths to specified namespaces. + repeated Contribution contributions = 5; }