summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-28 23:16:33 +0800
committerruki <[email protected]>2019-03-28 13:39:21 +0800
commit880e002552b6dfe69fe3e5d105275f0aabf82195 (patch)
treebba9fa725d522fd8d627b181f1401a1531b81db7 /xmake/modules
parentca1668be5f36ddbb082ea52d77585645b9739f48 (diff)
fix configurations for conan
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/package/manager/conan/install_package.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/conan/install_package.lua b/xmake/modules/package/manager/conan/install_package.lua
index 4fdb66ffa..740c00558 100644
--- a/xmake/modules/package/manager/conan/install_package.lua
+++ b/xmake/modules/package/manager/conan/install_package.lua
@@ -58,6 +58,19 @@ xmake
]]):format(name, table.concat(options, "\n"), table.concat(imports, "\n"), table.concat(build_requires, "\n")))
end
+-- get configurations
+function configurations(package)
+ return
+ {
+ build = {description = "use it to choose if you want to build from sources.", default = "all", values = {"all", "never", "missing", "outdated"}},
+ remote = {description = "Set the conan remote server."},
+ options = {description = "Set the options values, e.g. OpenSSL:shared=True"},
+ imports = {description = "Set the imports for conan."},
+ settings = {description = "Set the build settings for conan."},
+ build_requires = {description = "Set the build requires for conan."}
+ }
+end
+
-- install package
--
-- @param name the package name, e.g. conan::OpenSSL/1.0.2n@conan/stable