|
|
@ -6,32 +6,35 @@ import("packages", {alias = "get_packages"}) |
|
|
|
-- the options |
|
|
|
-- the options |
|
|
|
local options = |
|
|
|
local options = |
|
|
|
{ |
|
|
|
{ |
|
|
|
{'v', "verbose", "k", nil, "Enable verbose information." } |
|
|
|
{'v', "verbose", "k", nil, "Enable verbose information." } |
|
|
|
, {'D', "diagnosis", "k", nil, "Enable diagnosis information." } |
|
|
|
, {'D', "diagnosis", "k", nil, "Enable diagnosis information." } |
|
|
|
, {nil, "shallow", "k", nil, "Only install the root packages." } |
|
|
|
, {nil, "shallow", "k", nil, "Only install the root packages." } |
|
|
|
, {'k', "kind", "kv", nil, "Enable static/shared library." } |
|
|
|
, {'k', "kind", "kv", nil, "Enable static/shared library." } |
|
|
|
, {'p', "plat", "kv", nil, "Set the given platform." } |
|
|
|
, {'p', "plat", "kv", nil, "Set the given platform." } |
|
|
|
, {'a', "arch", "kv", nil, "Set the given architecture." } |
|
|
|
, {'a', "arch", "kv", nil, "Set the given architecture." } |
|
|
|
, {'m', "mode", "kv", nil, "Set the given mode." } |
|
|
|
, {'m', "mode", "kv", nil, "Set the given mode." } |
|
|
|
, {'j', "jobs", "kv", nil, "Set the build jobs." } |
|
|
|
, {'j', "jobs", "kv", nil, "Set the build jobs." } |
|
|
|
, {'f', "configs", "kv", nil, "Set the configs." } |
|
|
|
, {'f', "configs", "kv", nil, "Set the configs." } |
|
|
|
, {'d', "debugdir", "kv", nil, "Set the debug source directory." } |
|
|
|
, {'d', "debugdir", "kv", nil, "Set the debug source directory." } |
|
|
|
, {nil, "fetch", "k", nil, "Fetch package only." } |
|
|
|
, {nil, "fetch", "k", nil, "Fetch package only." } |
|
|
|
, {nil, "precompiled","k", nil, "Attemp to install the precompiled package." } |
|
|
|
, {nil, "precompiled", "k", nil, "Attemp to install the precompiled package." } |
|
|
|
, {nil, "linkjobs", "kv", nil, "Set the link jobs." } |
|
|
|
, {nil, "linkjobs", "kv", nil, "Set the link jobs." } |
|
|
|
, {nil, "cflags", "kv", nil, "Set the cflags." } |
|
|
|
, {nil, "cflags", "kv", nil, "Set the cflags." } |
|
|
|
, {nil, "cxxflags", "kv", nil, "Set the cxxflags." } |
|
|
|
, {nil, "cxxflags", "kv", nil, "Set the cxxflags." } |
|
|
|
, {nil, "ldflags", "kv", nil, "Set the ldflags." } |
|
|
|
, {nil, "ldflags", "kv", nil, "Set the ldflags." } |
|
|
|
, {nil, "ndk", "kv", nil, "Set the Android NDK directory." } |
|
|
|
, {nil, "ndk", "kv", nil, "Set the Android NDK directory." } |
|
|
|
, {nil, "ndk_sdkver", "kv", nil, "Set the Android NDK platform sdk version." } |
|
|
|
, {nil, "ndk_sdkver", "kv", nil, "Set the Android NDK platform sdk version." } |
|
|
|
, {nil, "sdk", "kv", nil, "Set the SDK directory of cross toolchain." } |
|
|
|
, {nil, "sdk", "kv", nil, "Set the SDK directory of cross toolchain." } |
|
|
|
, {nil, "vs", "kv", nil, "Set the VS Compiler version." } |
|
|
|
, {nil, "vs", "kv", nil, "Set the VS Compiler version." } |
|
|
|
, {nil, "vs_sdkver", "kv", nil, "Set the Windows SDK version." } |
|
|
|
, {nil, "vs_sdkver", "kv", nil, "Set the Windows SDK version." } |
|
|
|
, {nil, "vs_toolset", "kv", nil, "Set the Windows Toolset version." } |
|
|
|
, {nil, "vs_toolset", "kv", nil, "Set the Windows Toolset version." } |
|
|
|
, {nil, "vs_runtime", "kv", nil, "Set the VS Runtime library." } |
|
|
|
, {nil, "vs_runtime", "kv", nil, "Set the VS Runtime library." } |
|
|
|
, {nil, "mingw", "kv", nil, "Set the MingW directory." } |
|
|
|
, {nil, "xcode_sdkver", "kv", nil, "The SDK Version for Xcode" } |
|
|
|
, {nil, "toolchain", "kv", nil, "Set the toolchain name." } |
|
|
|
, {nil, "target_minver", "kv", nil, "The Target Minimal Version" } |
|
|
|
, {nil, "packages", "vs", nil, "The package list." } |
|
|
|
, {nil, "appledev", "kv", nil, "The Apple Device Type" } |
|
|
|
|
|
|
|
, {nil, "mingw", "kv", nil, "Set the MingW directory." } |
|
|
|
|
|
|
|
, {nil, "toolchain", "kv", nil, "Set the toolchain name." } |
|
|
|
|
|
|
|
, {nil, "packages", "vs", nil, "The package list." } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|