Upgrade build_native.py to take variable number of arguments

This commit is contained in:
gin0606 2014-05-05 12:45:20 +09:00
parent aa74717c58
commit dd8d932c0a
1 changed files with 2 additions and 2 deletions

View File

@ -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",