summaryrefslogtreecommitdiff
path: root/rules/CC/foreign/make/RULES
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:38:40 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-05-30 15:38:40 +0200
commit14300d3768522b1a201c30c94b6e54e096520b20 (patch)
treeeaa057fd88ddba1a94c48585fcfcbb71628fcbe7 /rules/CC/foreign/make/RULES
parent2d7051782625966857286aace6ff18760114ecc7 (diff)
parent9f535dadf06c6c6554bac632069777cf1b63ebf5 (diff)
downloadrules-cc-14300d3768522b1a201c30c94b6e54e096520b20.tar.gz
Merge commit '9f535dadf06c6c6554bac632069777cf1b63ebf5' into rules/rules-cc
Diffstat (limited to 'rules/CC/foreign/make/RULES')
-rw-r--r--rules/CC/foreign/make/RULES52
1 files changed, 42 insertions, 10 deletions
diff --git a/rules/CC/foreign/make/RULES b/rules/CC/foreign/make/RULES
index 9c8c738..8278e3f 100644
--- a/rules/CC/foreign/make/RULES
+++ b/rules/CC/foreign/make/RULES
@@ -1,8 +1,11 @@
{ "data":
- { "doc": ["Data produced by Make build and install."]
+ { "doc": ["Data produced by Configure and Make build and install."]
, "target_fields": ["project"]
, "string_fields":
- [ "target"
+ [ "subdir"
+ , "configure"
+ , "configure_options"
+ , "targets"
, "prefix"
, "options"
, "jobs"
@@ -37,7 +40,17 @@
, "field_doc":
{ "project":
["The Make project directory. It should contain a single tree artifact"]
- , "target": ["The Make target to build (default: [\"install\"])."]
+ , "subdir":
+ [ "The subdirectory that contains the configure and Makefile. Individual"
+ , "directory components are joined with \"/\"."
+ ]
+ , "configure": ["Run ./configure if non-empty."]
+ , "configure_options":
+ ["The configure options (the \"--prefix\" option is automatically set."]
+ , "targets":
+ [ "The Make targets to build in the specified order"
+ , "(default: [\"install\"])."
+ ]
, "prefix":
[ "The prefix used for the Make target. The path will be made absolute"
, "and individual directory components are joined with \"/\". If no"
@@ -195,7 +208,10 @@
}
}
]
- , ["make_target", {"type": "FIELD", "name": "target"}]
+ , ["subdir", {"type": "FIELD", "name": "subdir"}]
+ , ["configure", {"type": "FIELD", "name": "configure"}]
+ , ["configure_options", {"type": "FIELD", "name": "configure_options"}]
+ , ["make_targets", {"type": "FIELD", "name": "targets"}]
, ["make_prefix", {"type": "FIELD", "name": "prefix"}]
, ["make_options", {"type": "FIELD", "name": "options"}]
, ["make_jobs", {"type": "FIELD", "name": "jobs"}]
@@ -255,13 +271,16 @@
}
}
, "library":
- { "doc": ["Library produced by Make build and install."]
+ { "doc": ["Library produced by Configure and Make build and install."]
, "target_fields": ["project", "deps"]
, "string_fields":
- [ "name"
+ [ "subdir"
+ , "name"
, "version"
, "stage"
- , "target"
+ , "configure"
+ , "configure_options"
+ , "targets"
, "prefix"
, "options"
, "jobs"
@@ -306,6 +325,10 @@
, "field_doc":
{ "project":
["The Make project directory. It should contain a single tree artifact"]
+ , "subdir":
+ [ "The subdirectory that contains the configure and Makefile. Individual"
+ , "directory components are joined with \"/\"."
+ ]
, "name":
[ "The name of the library (without leading \"lib\" or trailing file name"
, "extension), also used as name for pkg-config files."
@@ -314,7 +337,13 @@
[ "The library version, used for pkg-config files. Individual version"
, "components are joined with \".\"."
]
- , "target": ["The Make target to build (default: [\"install\"])."]
+ , "configure": ["Run ./configure if non-empty."]
+ , "configure_options":
+ ["The configure options (the \"--prefix\" option is automatically set."]
+ , "targets":
+ [ "The Make targets to build in the specified order"
+ , "(default: [\"install\"])."
+ ]
, "prefix":
[ "The prefix used for the Make target. The path will be made absolute"
, "and individual directory components are joined with \"/\". If no"
@@ -581,7 +610,10 @@
]
}
]
- , ["make_target", {"type": "FIELD", "name": "target"}]
+ , ["subdir", {"type": "FIELD", "name": "subdir"}]
+ , ["configure", {"type": "FIELD", "name": "configure"}]
+ , ["configure_options", {"type": "FIELD", "name": "configure_options"}]
+ , ["make_targets", {"type": "FIELD", "name": "targets"}]
, ["make_prefix", {"type": "FIELD", "name": "prefix"}]
, ["make_options", {"type": "FIELD", "name": "options"}]
, ["make_jobs", {"type": "FIELD", "name": "jobs"}]
@@ -668,7 +700,7 @@
, "$1": {"type": "FIELD", "name": "stage"}
}
]
- , ["deps-fieldnames", ["deps"]]
+ , ["deps-fieldnames", ["deps", "defaults"]]
]
, "body": {"type": "CALL_EXPRESSION", "name": "prebuilt result"}
}