forked from BeaEngine/beaengine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
103 lines (81 loc) · 3.21 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<project name="BeaEngine" default="help">
<property environment="env" />
<!-- 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">
</target>
<target name="install-linux">
<exec dir="build" executable="make" failonerror="true">
<arg line="install" />
</exec>
</target>
<!-- MacOS -->
<target name="configure-mac">
<mkdir dir="build" />
<exec dir="build" executable="cmake" failonerror="true">
<arg line="../" />
</exec>
</target>
<target name="compile-mac">
<exec dir="build" executable="make" failonerror="true">
<arg line="-j8" />
</exec>
</target>
<target name="test-mac">
</target>
<target name="install-mac">
<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-mac - Configures the MacOS build" />
<echo message="compile-mac - Compiles the ChickenHook static library for MacOS" />
<echo message="test-mac - Tests ChickenHook for MacOs" />
<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>