summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-19 18:24:42 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-19 18:47:47 +0200
commit15da6ad2c6d61a8746e840b7a0d92b8b723fa788 (patch)
tree6c3292b7a3d106077a48185fd5f10b0c70a3da52 /etc
parentd35cc739eb5bff4c2374b705d86421270239e36d (diff)
downloadrules-cc-15da6ad2c6d61a8746e840b7a0d92b8b723fa788.tar.gz
bundled tools: bring own defaults
... instead of using the strict -Wall defaults that are used for just.
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/CC/TARGETS3
-rw-r--r--etc/defaults/CC/auto/TARGETS1
-rw-r--r--etc/defaults/CC/proto/TARGETS14
-rw-r--r--etc/defaults/CC/test/TARGETS1
-rw-r--r--etc/defaults/shell/test/TARGETS1
-rw-r--r--etc/repos.json4
-rw-r--r--etc/repos.template.json4
7 files changed, 24 insertions, 4 deletions
diff --git a/etc/defaults/CC/TARGETS b/etc/defaults/CC/TARGETS
new file mode 100644
index 0000000..6e095cc
--- /dev/null
+++ b/etc/defaults/CC/TARGETS
@@ -0,0 +1,3 @@
+{ "defaults":
+ {"type": ["CC", "defaults"], "base": [["@", "base", "CC", "defaults"]]}
+}
diff --git a/etc/defaults/CC/auto/TARGETS b/etc/defaults/CC/auto/TARGETS
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/etc/defaults/CC/auto/TARGETS
@@ -0,0 +1 @@
+{}
diff --git a/etc/defaults/CC/proto/TARGETS b/etc/defaults/CC/proto/TARGETS
new file mode 100644
index 0000000..95ae1b0
--- /dev/null
+++ b/etc/defaults/CC/proto/TARGETS
@@ -0,0 +1,14 @@
+{ "defaults":
+ { "type": ["CC/proto", "defaults"]
+ , "PROTOC": ["bin/protoc"]
+ , "deps": [["@", "protoc", "", "libprotobuf"]]
+ , "toolchain": [["@", "protoc", "", "toolchain"]]
+ }
+, "service defaults":
+ { "type": ["CC/proto", "defaults"]
+ , "base": ["defaults"]
+ , "GRPC_PLUGIN": ["grpc_cpp_plugin"]
+ , "deps": [["@", "grpc", "", "grpc++"]]
+ , "toolchain": [["@", "grpc", "", "grpc_cpp_plugin"]]
+ }
+}
diff --git a/etc/defaults/CC/test/TARGETS b/etc/defaults/CC/test/TARGETS
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/etc/defaults/CC/test/TARGETS
@@ -0,0 +1 @@
+{}
diff --git a/etc/defaults/shell/test/TARGETS b/etc/defaults/shell/test/TARGETS
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/etc/defaults/shell/test/TARGETS
@@ -0,0 +1 @@
+{}
diff --git a/etc/repos.json b/etc/repos.json
index 636c63c..e7205f3 100644
--- a/etc/repos.json
+++ b/etc/repos.json
@@ -3,8 +3,7 @@
{ "rules": {"repository": {"type": "file", "path": "rules"}}
, "rules with bundled tools":
{ "repository": "rules"
- , "target_root": "just/defaults"
- , "target_file_name": "TARGETS.just"
+ , "target_root": "defaults"
, "rule_root": "rules"
, "bindings":
{ "base": "just/rules"
@@ -12,6 +11,7 @@
, "grpc": "just/com_github_grpc_grpc"
}
}
+ , "defaults": {"repository": {"type": "file", "path": "etc/defaults"}}
, "tests":
{ "repository": {"type": "file", "path": "tests"}
, "bindings":
diff --git a/etc/repos.template.json b/etc/repos.template.json
index c14780b..b18b665 100644
--- a/etc/repos.template.json
+++ b/etc/repos.template.json
@@ -3,8 +3,7 @@
{ "rules": {"repository": {"type": "file", "path": "rules"}}
, "rules with bundled tools":
{ "repository": "rules"
- , "target_root": "just/defaults"
- , "target_file_name": "TARGETS.just"
+ , "target_root": "defaults"
, "rule_root": "rules"
, "bindings":
{ "base": "just/rules"
@@ -12,6 +11,7 @@
, "grpc": "just/com_github_grpc_grpc"
}
}
+ , "defaults": {"repository": {"type": "file", "path": "etc/defaults"}}
, "tests":
{ "repository": {"type": "file", "path": "tests"}
, "bindings":