8000 improve custom_rules · githublucas420/RootCommands@b235f69 · GitHub
[go: up one dir, main page]

Skip to content

Commit b235f69

Browse files
author
Dominik
committed
improve custom_rules
1 parent a99695d commit b235f69

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

RootCommands-Demo/custom_rules.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
message="ndk.dir is missing. Edit local.properties and add ndk.dir variable or to inject it through an env var"
77
unless="ndk.dir"
88
/>
9-
10-
9+
1110
<!-- Build and move binaries before building Java -->
12-
<target name="-pre-build">
11+
<target name="ndk-build">
1312
<!-- Build binaries using NDK -->
1413
<exec executable="${ndk.dir}/ndk-build" failonerror="true"/>
1514

@@ -26,10 +25,15 @@
2625
</target>
2726

2827

28+
<!-- Extend build by adding ndk-build as dependency -->
29+
<target name="-pre-build" depends="ndk-build">
30+
</target>
31+
32+
2933
<target name="clean" depends="android_rules.clean">
3034
<exec executable="${ndk.dir}/ndk-build" failonerror="true">
3135
<arg value="clean"/>
3236
</exec>
33-
</target>
37+
</target>
3438

3539
</project>

0 commit comments

Comments
 (0)
0