We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package()
add_configs()
add_configs("bitwidth", {description = "Set the code unit width.", default = "8", values = {"8", "16", "32"}})
add_configs("bitwidth", {type = "number", values = {8, 16, 32}})
add_configs("bitwidth", {restrict = function(value) if tonumber(value) < 100 then return true end})
xmake require --info packagename
package("pcre2") set_homepage("https://www.pcre.org/") set_description("A Perl Compatible Regular Expressions Library") add_configs("bitwidth", {description = "Set the code unit width.", default = "8", values = {"8", "16", "32"}}) on_load(function (package) local bitwidth = package:config("bitwidth") or "8" package:add("links", "pcre2-" .. bitwidth) package:add("defines", "PCRE2_CODE_UNIT_WIDTH=" .. bitwidth) end)
$ xmake require --info pcre2 The package info of project: require(pcre2): -> description: A Perl Compatible Regular Expressions Library -> version: 10.31 ... -> configs: -> bitwidth: -> description: Set the code unit width. -> values: {"8","16","32"} -> default: 8
The text was updated successfully, but these errors were encountered:
#288
Sorry, something went wrong.
No branches or pull requests
Roadmap
add_configs()
for packageadd_configs("bitwidth", {description = "Set the code unit width.", default = "8", values = {"8", "16", "32"}})
add_configs("bitwidth", {type = "number", values = {8, 16, 32}})
add_configs("bitwidth", {restrict = function(value) if tonumber(value) < 100 then return true end})
xmake require --info packagename
Example
Show the configuration info
The text was updated successfully, but these errors were encountered: