mirror of https://github.com/axmolengine/axmol.git
Upgrade build_native.py to take variable number of arguments
This commit is contained in:
parent
aa74717c58
commit
dd8d932c0a
|
@ -156,7 +156,7 @@ def build(ndk_build_param,android_platform,build_mode):
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
parser.add_option("-n", "--ndk", dest="ndk_build_param", help='parameter for ndk-build')
|
parser.add_option("-n", "--ndk", dest="ndk_build_param", help='parameter for ndk-build', action="append")
|
||||||
parser.add_option("-p", "--platform", dest="android_platform",
|
parser.add_option("-p", "--platform", dest="android_platform",
|
||||||
help='parameter for android-update.Without the parameter,the script just build dynamic library for project. Valid android-platform are:[10|11|12|13|14|15|16|17|18|19]')
|
help='parameter for android-update.Without the parameter,the script just build dynamic library for project. Valid android-platform are:[10|11|12|13|14|15|16|17|18|19]')
|
||||||
parser.add_option("-b", "--build", dest="build_mode",
|
parser.add_option("-b", "--build", dest="build_mode",
|
||||||
|
|
Loading…
Reference in New Issue