Skip to content

Commit

Permalink
Re-added --sdk argument for sdl2 bootstrap, but with a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
inclement committed Oct 4, 2017
1 parent 393e60e commit 2169439
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pythonforandroid/bootstraps/sdl2/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,8 @@ def parse_args(args=None):
'(eg: com.android.support:appcompat-v7:19.0.1)'))
## The --sdk option has been removed, it is ignored in favour of
## --android-api handled by toolchain.py
# ap.add_argument('--sdk', dest='sdk_version', default=-1,
# type=int, help=('Android SDK version to use. Default to '
# 'the value of minsdk'))
ap.add_argument('--sdk', dest='sdk_version', default=-1,
type=int, help=('Deprecated argument, does nothing'))
ap.add_argument('--minsdk', dest='min_sdk_version',
default=default_android_api, type=int,
help=('Minimum Android SDK version to use. Default to '
Expand Down Expand Up @@ -522,6 +521,10 @@ def parse_args(args=None):
# if args.sdk_version == -1:
# args.sdk_version = args.min_sdk_version

if args.sdk_version != -1:
print('WARNING: Received a --sdk argument, but this argument is '
'deprecated and does nothing.')

if args.permissions is None:
args.permissions = []
elif args.permissions:
Expand Down

0 comments on commit 2169439

Please sign in to comment.