|
@@ -8,6 +8,7 @@ local options =
|
|
, {'D', "diagnosis", "k", nil, "Enable diagnosis information." }
|
|
, {'D', "diagnosis", "k", nil, "Enable diagnosis information." }
|
|
, {'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." }
|
|
|
|
+, {nil, "ndk", "kv", nil, "Set the android NDK directory."}
|
|
, {nil, "packages", "vs", nil, "The package list." }
|
|
, {nil, "packages", "vs", nil, "The package list." }
|
|
}
|
|
}
|
|
|
|
|
|
@@ -54,6 +55,9 @@ function main(...)
|
|
if argv.arch then
|
|
if argv.arch then
|
|
table.insert(config_argv, "--arch=" .. argv.arch)
|
|
table.insert(config_argv, "--arch=" .. argv.arch)
|
|
end
|
|
end
|
|
|
|
+ if argv.ndk then
|
|
|
|
+ table.insert(config_argv, "--ndk=" .. argv.ndk)
|
|
|
|
+ end
|
|
os.execv("xmake", config_argv)
|
|
os.execv("xmake", config_argv)
|
|
os.exec("xmake repo --add local-repo %s", repodir)
|
|
os.exec("xmake repo --add local-repo %s", repodir)
|
|
os.exec("xmake repo -l")
|
|
os.exec("xmake repo -l")
|