generated from ChickenHook/AndroidHackingTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
84 lines (66 loc) · 2.89 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<project name="AndroidHackingTemplate" default="help">
<property environment="env" />
<target name="artifacts">
<mkdir dir="artifacts"/>
<get src="https://dev.azure.com/sascharoth/67828063-71d7-422c-9358-edfaf94b911e/_apis/build/builds/101/artifacts?artifactName=ChickenHook&api-version=5.1&%24format=zip" dest="artifacts/ChickenHook.zip"/>
<unzip src="artifacts/ChickenHook.zip" dest="artifacts/"/>
</target>
<!-- LINUX -->
<target name="configure-linux">
<mkdir dir="build" />
<exec dir="build" executable="cmake" failonerror="true">
<arg line="../" />
</exec>
</target>
<target name="compile-linux">
<exec dir="build" executable="make" failonerror="true">
<arg line="-j8" />
</exec>
</target>
<target name="test-linux">
<exec dir="build" executable="./linuxTest/linuxTest" failonerror="true">
</exec>
</target>
<target name="install-linux">
<exec dir="build" executable="make" failonerror="true">
<arg line="install" />
</exec>
</target>
<!-- ANDROID -->
<target name="configure-android">
</target>
<target name="compile-android">
<exec dir="." executable="gradle" failonerror="true">
<arg line="assembleDebug" />
</exec>
</target>
<target name="test-android">
<exec dir="." executable="gradle" failonerror="true">
<arg line="connectedAndroidTest" />
</exec>
</target>
<target name="install-android">
<dirset id="dist.contents" dir="${env.ANDROID_HOME}/cmake/"/>
<property name="prop.dist.contents" refid="dist.contents"/>
<echo>${prop.dist.contents}</echo>
<exec dir="androidTest/.cxx/cmake/debug/x86" executable="${env.ANDROID_HOME}/cmake/3.6.4111459/bin/ninja" failonerror="true">
<arg line="install" />
</exec>
<exec dir="androidTest/.cxx/cmake/debug/x86_64" executable="${env.ANDROID_HOME}/cmake/3.6.4111459/bin/ninja" failonerror="true">
<arg line="install" />
</exec>
<exec dir="androidTest/.cxx/cmake/debug/arm64-v8a" executable="${env.ANDROID_HOME}/cmake/3.6.4111459/bin/ninja" failonerror="true">
<arg line="install" />
</exec>
</target>
<target name="help">
<echo message="Usage:" />
<echo message="configure-linux - Configures the linux build" />
<echo message="compile-linux - Compiles the chickenhook static library for linux" />
<echo message="test-linux - Tests chickenhook for linux" />
<echo message="configure-android - Configures the android build" />
<echo message="compile-android - Compiles the chickenhook static library for android" />
<echo message="test-android - Tests chickenhook for android" />
</target>
</project>