summaryrefslogtreecommitdiff
path: root/CC/proto
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-05-09 15:18:39 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:33:18 +0200
commitc17dea46b8cb0fe3fcef3ee97a3b703b70bb4f98 (patch)
treecb86269049aa821e0ca64412550d4c357395fbb6 /CC/proto
parent52f36d3c99c0327ccba50dede36645432af798df (diff)
downloadrules-cc-c17dea46b8cb0fe3fcef3ee97a3b703b70bb4f98.tar.gz
rules-cc: Support run-libs in CC/proto libraries
Diffstat (limited to 'CC/proto')
-rw-r--r--CC/proto/RULES16
1 files changed, 12 insertions, 4 deletions
diff --git a/CC/proto/RULES b/CC/proto/RULES
index 6d2e725..ac7a371 100644
--- a/CC/proto/RULES
+++ b/CC/proto/RULES
@@ -61,6 +61,8 @@
, "compile-args-deps": ["CC", "compile-args-deps"]
, "link-deps": ["CC", "link-deps"]
, "link-args-deps": ["CC", "link-args-deps"]
+ , "run-libs-deps": ["CC", "run-libs-deps"]
+ , "run-libs-args-deps": ["CC", "run-libs-args-deps"]
, "cflags-files-deps": ["CC", "cflags-files-deps"]
, "ldflags-files-deps": ["CC", "ldflags-files-deps"]
, "for host": ["transitions", "for host"]
@@ -193,6 +195,10 @@
]
, ["link-deps", {"type": "CALL_EXPRESSION", "name": "link-deps"}]
, ["link-args", {"type": "CALL_EXPRESSION", "name": "link-args-deps"}]
+ , ["run-libs", {"type": "CALL_EXPRESSION", "name": "run-libs-deps"}]
+ , [ "run-libs-args"
+ , {"type": "CALL_EXPRESSION", "name": "run-libs-args-deps"}
+ ]
, [ "cflags-files"
, {"type": "CALL_EXPRESSION", "name": "cflags-files-deps"}
]
@@ -216,6 +222,8 @@
, "compile-args"
, "link-deps"
, "link-args"
+ , "run-libs"
+ , "run-libs-args"
, "package"
]
}
@@ -245,8 +253,8 @@
, "$1": {"type": "FIELD", "name": "stage"}
}
]
- , ["public-fieldnames", ["deps", "proto-defaults"]]
- , ["private-fieldnames", ["deps", "proto-defaults"]]
+ , ["public-fieldnames", ["deps", "proto-defaults", "defaults"]]
+ , ["private-fieldnames", ["deps", "proto-defaults", "defaults"]]
]
, "body": {"type": "CALL_EXPRESSION", "name": "protoc-compile"}
}
@@ -277,8 +285,8 @@
, "$1": {"type": "FIELD", "name": "stage"}
}
]
- , ["public-fieldnames", ["deps", "proto-defaults"]]
- , ["private-fieldnames", ["deps", "proto-defaults"]]
+ , ["public-fieldnames", ["deps", "proto-defaults", "defaults"]]
+ , ["private-fieldnames", ["deps", "proto-defaults", "defaults"]]
]
, "body": {"type": "CALL_EXPRESSION", "name": "protoc-compile"}
}