|
8 | 8 |
|
9 | 9 | from __future__ import print_function |
10 | 10 | from pythonforandroid import __version__ |
| 11 | +from pythonforandroid.build import DEFAULT_NDK_API, DEFAULT_ANDROID_API |
11 | 12 |
|
12 | 13 |
|
13 | 14 | def check_python_dependencies(): |
@@ -252,16 +253,22 @@ def __init__(self): |
252 | 253 | '--ndk-dir', '--ndk_dir', dest='ndk_dir', default='', |
253 | 254 | help='The filepath where the Android NDK is installed') |
254 | 255 | generic_parser.add_argument( |
255 | | - '--android-api', '--android_api', dest='android_api', default=0, |
256 | | - type=int, help='The Android API level to build against.') |
| 256 | + '--android-api', |
| 257 | + '--android_api', |
| 258 | + dest='android_api', |
| 259 | + default=0, |
| 260 | + type=int, |
| 261 | + help=('The Android API level to build against defaults to {} if ' |
| 262 | + 'not specified.').format(DEFAULT_ANDROID_API)) |
257 | 263 | generic_parser.add_argument( |
258 | 264 | '--ndk-version', '--ndk_version', dest='ndk_version', default='', |
259 | 265 | help=('The version of the Android NDK. This is optional: ' |
260 | 266 | 'we try to work it out automatically from the ndk_dir.')) |
261 | 267 | generic_parser.add_argument( |
262 | 268 | '--ndk-api', type=int, default=0, |
263 | 269 | help=('The Android API level to compile against. This should be your ' |
264 | | - '*minimal supported* API, not normally the same as your --android-api.')) |
| 270 | + '*minimal supported* API, not normally the same as your --android-api. ' |
| 271 | + 'Defaults to min(ANDROID_API, {}) if not specified.').format(DEFAULT_NDK_API)) |
265 | 272 | generic_parser.add_argument( |
266 | 273 | '--symlink-java-src', '--symlink_java_src', |
267 | 274 | action='store_true', |
|
0 commit comments