-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
63 lines (56 loc) · 2.4 KB
/
build.xml
File metadata and controls
63 lines (56 loc) · 2.4 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="tvguide" default="build_app_release">
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<!--<loadproperties srcFile="project.properties"/>-->
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true"/>
<!-- 编译release app -->
<target name="build_app_release" depends="pre-build">
<antcall target="clean_bin"/>
<ant antfile="build_common.xml" dir="temp"/>
</target>
<!-- 编译debug app -->
<target name="build_app_debug" depends="pre-build">
<antcall target="clean_bin"/>
<ant antfile="build_common.xml" dir="temp" target="build_debug"/>
</target>
<!-- clean并生成bin -->
<target name="clean_bin">
<delete dir="bin" />
<mkdir dir="bin" />
</target>
<!-- build前copy目录到temp -->
<target name="pre-build">
<delete dir="temp" />
<mkdir dir="temp" />
<copy todir="temp" filtering="true">
<fileset dir=".">
<exclude name="**/.svn/**" />
<exclude name="**/.settings/**" />
<exclude name="**/gen/**" />
<exclude name="**/.git/**" />
<exclude name="**/.idea/**" />
<exclude name="**/out/**" />
<exclude name="**/bin/**" />
<exclude name="**/temp/**" />
</fileset>
</copy>
</target>
</project>