mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 05:07:45 +02:00
Support building standalone resetprop
This commit is contained in:
5
build.py
5
build.py
@ -56,7 +56,7 @@ cpu_count = multiprocessing.cpu_count()
|
||||
gradlew = os.path.join('.', 'gradlew' + ('.bat' if is_windows else ''))
|
||||
archs = ['armeabi-v7a', 'x86']
|
||||
arch64 = ['arm64-v8a', 'x86_64']
|
||||
support_targets = ['magisk', 'magiskinit', 'magiskboot', 'magiskpolicy', 'busybox', 'test']
|
||||
support_targets = ['magisk', 'magiskinit', 'magiskboot', 'magiskpolicy', 'resetprop', 'busybox', 'test']
|
||||
default_targets = ['magisk', 'magiskinit', 'magiskboot', 'busybox']
|
||||
build_tools = os.path.join(os.environ['ANDROID_HOME'], 'build-tools', '29.0.2')
|
||||
|
||||
@ -286,6 +286,9 @@ def build_binary(args):
|
||||
if 'magiskpolicy' in args.target:
|
||||
run_ndk_build('B_POLICY=1')
|
||||
|
||||
if 'resetprop' in args.target:
|
||||
run_ndk_build('B_PROP=1')
|
||||
|
||||
if 'magiskboot' in args.target:
|
||||
run_ndk_build('B_BOOT=1')
|
||||
|
||||
|
Reference in New Issue
Block a user