|
@@ -9,7 +9,7 @@ local options =
|
|
|
{'v', "verbose", "k", nil, "Enable verbose information." }
|
|
|
, {'D', "diagnosis", "k", nil, "Enable diagnosis information." }
|
|
|
, {nil, "shallow", "k", nil, "Only install the root packages." }
|
|
|
-, {nil, "shared", "k", nil, "Enable shared library." }
|
|
|
+, {'k', "kind", "kv", nil, "Enable static/shared library." }
|
|
|
, {'p', "plat", "kv", nil, "Set the given platform." }
|
|
|
, {'a', "arch", "kv", nil, "Set the given architecture." }
|
|
|
, {'m', "mode", "kv", nil, "Set the given mode." }
|
|
@@ -65,11 +65,11 @@ function _require_packages(argv, packages)
|
|
|
if argv.shallow then
|
|
|
table.insert(require_argv, "--shallow")
|
|
|
end
|
|
|
- if argv.mode == "debug" and argv.shared then
|
|
|
+ if argv.mode == "debug" and argv.kind == "shared" then
|
|
|
table.insert(require_argv, "--extra={debug=true,configs={shared=true}}")
|
|
|
elseif argv.mode == "debug" then
|
|
|
table.insert(require_argv, "--extra={debug=true}")
|
|
|
- elseif argv.shared then
|
|
|
+ elseif argv.kind == "shared" then
|
|
|
table.insert(require_argv, "--extra={configs={shared=true}}")
|
|
|
end
|
|
|
table.join2(require_argv, packages)
|