File tree Expand file tree Collapse file tree 2 files changed +7
-45
lines changed Expand file tree Collapse file tree 2 files changed +7
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
import sys
3
3
import os
4
4
5
- # TODO: In next version, it will be a JSON file listing all the patches, and then it will iterate through to apply them.
6
- def patch_android ():
7
- print ("- Patches List -" )
8
- print ("[1] [deps/v8/src/trap-handler/trap-handler.h] related to https://github.com/nodejs/node/issues/36287" )
9
- if platform .system () == "Linux" :
10
- os .system ('patch -f ./deps/v8/src/trap-handler/trap-handler.h < ./android-patches/trap-handler.h.patch' )
11
- print ("\033 [92mInfo: \033 [0m" + "Tried to patch." )
12
-
13
5
if platform .system () == "Windows" :
14
6
print ("android-configure is not supported on Windows yet." )
15
7
sys .exit (1 )
16
8
17
- if len (sys .argv ) == 2 and sys .argv [1 ] == "patch" :
18
- patch_android ()
19
- sys .exit (0 )
20
-
21
- if len (sys .argv ) != 4 :
22
- print ("Usage: ./android-configure [patch] <path to the Android NDK> <Android SDK version> <target architecture>" )
9
+ if len (sys .argv ) != 2 :
10
+ print ("Usage: ./android-configure <path to the Android NDK> <Android SDK version> <target architecture>" )
23
11
sys .exit (1 )
24
12
25
- if not os .path .exists (sys .argv [1 ]) or not os .listdir (sys .argv [1 ]):
13
+ if not os .path .exists (sys .argv [0 ]) or not os .listdir (sys .argv [0 ]):
26
14
print ("\033 [91mError: \033 [0m" + "Invalid path to the Android NDK" )
27
15
sys .exit (1 )
28
16
29
- if int (sys .argv [2 ]) < 24 :
17
+ if int (sys .argv [1 ]) < 24 :
30
18
print ("\033 [91mError: \033 [0m" + "Android SDK version must be at least 24 (Android 7.0)" )
31
19
sys .exit (1 )
32
20
33
- android_ndk_path = sys .argv [1 ]
34
- android_sdk_version = sys .argv [2 ]
35
- arch = sys .argv [3 ]
21
+ android_ndk_path = sys .argv [0 ]
22
+ android_sdk_version = sys .argv [1 ]
23
+ arch = sys .argv [2 ]
36
24
37
25
if arch == "arm" :
38
26
DEST_CPU = "arm"
You can’t perform that action at this time.
0 commit comments