-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmodule_soomlaandroidcore.xml
118 lines (95 loc) · 4.95 KB
/
module_soomlaandroidcore.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_soomlaandroidcore" default="compile.module.soomlaandroidcore">
<dirname property="module.soomlaandroidcore.basedir" file="${ant.file.module_soomlaandroidcore}"/>
<property name="aidl" value="${jdk.home.android.platform.tools}aidl" />
<property name="framework-aidl" value="${jdk.home.android.platform}framework.aidl" />
<property name="module.jdk.home.soomlaandroidcore" value="${jdk.home.android}"/>
<property name="module.jdk.bin.soomlaandroidcore" value="${jdk.bin.android}"/>
<property name="module.jdk.classpath.soomlaandroidcore" value="jdk.classpath.android"/>
<property name="compiler.args.soomlaandroidcore" value="-encoding UTF-8 -source 1.6 ${compiler.args}"/>
<property name="soomlaandroidcore.output.dir" value="${module.soomlaandroidcore.basedir}/out/production/SoomlaAndroidCore"/>
<path id="soomlaandroidcore.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="soomlaandroidcore.module.production.classpath">
<path refid="${module.jdk.classpath.soomlaandroidcore}"/>
<pathelement location="${basedir}/build/square-otto-1.3.2.jar"/>
</path>
<path id="soomlaandroidcore.runtime.production.module.classpath">
<pathelement location="${soomlaandroidcore.output.dir}"/>
<pathelement location="${basedir}/build/square-otto-1.3.2.jar"/>
</path>
<path id="soomlaandroidcore.module.classpath">
<path refid="${module.jdk.classpath.soomlaandroidcore}"/>
<pathelement location="${soomlaandroidcore.output.dir}"/>
<pathelement location="${basedir}/build/square-otto-1.3.2.jar"/>
</path>
<path id="soomlaandroidcore.runtime.module.classpath">
<pathelement location="${soomlaandroidcore.output.dir}"/>
<pathelement location="${basedir}/build/square-otto-1.3.2.jar"/>
</path>
<patternset id="excluded.from.module.soomlaandroidcore">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.soomlaandroidcore">
<patternset refid="compiler.excluded"/>
<patternset refid="excluded.from.module.soomlaandroidcore"/>
</patternset>
<path id="soomlaandroidcore.module.sourcepath">
<dirset dir="${module.soomlaandroidcore.basedir}">
<include name="src"/>
<include name=".idea/gen/com/android"/>
</dirset>
</path>
<target name="config">
<property name="config-target-path" value="${basedir}/src/com/soomla/store/"/>
<!-- Copy the configuration file, replacing tokens in the file. -->
<copy file="config/StoreConfig.java" todir="${config-target-path}"
overwrite="true" encoding="utf-8">
<filterset>
<filter token="CONFIG.LOGGING" value="${logging}"/>
</filterset>
</copy>
<!-- Now set it to read-only, as we don't want people accidentally
editing the wrong one. NOTE: This step is unnecessary, but I do
it so the developers remember that this is not the original file. -->
<!-- <chmod file="${config-target-path}/StoreConfig.java" perm="-w"/> -->
<!-- <attrib file="${config-target-path}/StoreConfig.java" readonly="true"/> -->
</target>
<target name="aidl" >
<echo>Compiling .aidl into java files...</echo>
<apply executable="${aidl}" failonerror="true">
<!-- -->
<arg value="-p${framework-aidl}" />
<!-- aidl -->
<arg value="-Isrc" />
<!-- -->
<arg value="-o.idea/gen" />
<!-- -->
<fileset dir="src">
<include name="**/*.aidl" />
</fileset>
</apply>
</target>
<target name="compile.module.soomlaandroidcore" depends="compile.module.soomlaandroidcore.production" description="Compile module SoomlaAndroidCore"/>
<target name="compile.module.soomlaandroidcore.production" description="Compile module SoomlaAndroidCore; production classes" depends="aidl">
<mkdir dir="${soomlaandroidcore.output.dir}"/>
<javac destdir="${soomlaandroidcore.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.soomlaandroidcore}/javac">
<compilerarg line="${compiler.args.soomlaandroidcore}"/>
<bootclasspath refid="soomlaandroidcore.module.bootclasspath"/>
<classpath refid="soomlaandroidcore.module.production.classpath"/>
<src refid="soomlaandroidcore.module.sourcepath"/>
<patternset refid="excluded.from.compilation.soomlaandroidcore"/>
</javac>
<copy todir="${soomlaandroidcore.output.dir}">
<fileset dir="${module.soomlaandroidcore.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
<patternset refid="excluded.from.compilation.soomlaandroidcore"/>
</fileset>
</copy>
</target>
<target name="clean.module.soomlaandroidcore" description="cleanup module">
<delete dir="${soomlaandroidcore.output.dir}"/>
</target>
</project>