383
|
1 |
<project name="Build specific targets and properties" default="noDefault">
|
|
2 |
|
|
3 |
<!-- ===================================================================== -->
|
|
4 |
<!-- Run a given ${target} on all elements being built -->
|
|
5 |
<!-- Add on <ant> task for each top level element being built. -->
|
|
6 |
<!-- ===================================================================== -->
|
|
7 |
<available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml"/>
|
|
8 |
<property name="allElementsFile" location="${eclipse.pdebuild.templates}/headless-build/allElements.xml"/>
|
|
9 |
|
|
10 |
<import file="${allElementsFile}" />
|
|
11 |
<target name="allElements">
|
|
12 |
<antcall target="allElementsDelegator" />
|
|
13 |
</target>
|
|
14 |
|
|
15 |
<!-- ===================================================================== -->
|
|
16 |
<!-- ===================================================================== -->
|
|
17 |
<target name="getBaseComponents" depends="checkLocalBase" unless="skipBase">
|
|
18 |
<get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" />
|
|
19 |
<unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" />
|
|
20 |
</target>
|
|
21 |
|
|
22 |
<target name="checkLocalBase">
|
|
23 |
<available file="${base}" property="skipBase" />
|
|
24 |
</target>
|
|
25 |
|
|
26 |
<!-- ===================================================================== -->
|
|
27 |
<!-- Check out map files from correct repository -->
|
|
28 |
<!-- Replace values for mapsCheckoutTag as desired. -->
|
|
29 |
<!-- ===================================================================== -->
|
|
30 |
<target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
|
|
31 |
<property name="mapsCheckoutTag" value="HEAD" />
|
|
32 |
<cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
|
|
33 |
</target>
|
|
34 |
|
|
35 |
<target name="checkLocalMaps">
|
|
36 |
<available property="skipMaps" file="${buildDirectory}/maps" />
|
|
37 |
</target>
|
|
38 |
|
|
39 |
<target name="tagMapFiles" if="tagMaps">
|
|
40 |
<cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
|
|
41 |
</target>
|
|
42 |
|
|
43 |
<!-- ===================================================================== -->
|
|
44 |
|
|
45 |
<target name="clean" unless="noclean">
|
|
46 |
<antcall target="allElements">
|
|
47 |
<param name="target" value="cleanElement" />
|
|
48 |
</antcall>
|
|
49 |
</target>
|
|
50 |
|
|
51 |
<target name="gatherLogs">
|
|
52 |
<mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
|
|
53 |
<antcall target="allElements">
|
|
54 |
<param name="target" value="gatherLogs" />
|
|
55 |
</antcall>
|
|
56 |
<unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
|
|
57 |
<fileset dir="${buildDirectory}/features">
|
|
58 |
<include name="**/*.log.zip" />
|
|
59 |
</fileset>
|
|
60 |
</unzip>
|
|
61 |
</target>
|
|
62 |
|
|
63 |
<!-- ===================================================================== -->
|
|
64 |
<!-- Steps to do before setup -->
|
|
65 |
<!-- ===================================================================== -->
|
|
66 |
<target name="preSetup">
|
461
|
67 |
<echo message="java.home is ${java.home}" />
|
383
|
68 |
</target>
|
|
69 |
|
|
70 |
<!-- ===================================================================== -->
|
|
71 |
<!-- Steps to do after setup but before starting the build proper -->
|
|
72 |
<!-- ===================================================================== -->
|
|
73 |
<target name="postSetup">
|
|
74 |
<antcall target="getBaseComponents" />
|
|
75 |
</target>
|
|
76 |
|
|
77 |
<!-- ===================================================================== -->
|
|
78 |
<!-- Steps to do before fetching the build elements -->
|
|
79 |
<!-- ===================================================================== -->
|
|
80 |
<target name="preFetch">
|
|
81 |
</target>
|
|
82 |
|
|
83 |
<!-- ===================================================================== -->
|
|
84 |
<!-- Steps to do after fetching the build elements -->
|
|
85 |
<!-- ===================================================================== -->
|
|
86 |
<target name="postFetch">
|
|
87 |
</target>
|
|
88 |
|
|
89 |
<!-- ===================================================================== -->
|
|
90 |
<!-- Steps to do before generating the build scripts. -->
|
|
91 |
<!-- ===================================================================== -->
|
|
92 |
<target name="preGenerate">
|
|
93 |
<antcall target="buildAPIdocumentation" />
|
|
94 |
<antcall target="addBuildNumber" />
|
|
95 |
</target>
|
|
96 |
|
|
97 |
<target name="buildAPIdocumentation">
|
|
98 |
<ant antfile="buildDoc.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.sdk.doc.user/" target="all" />
|
|
99 |
</target>
|
|
100 |
|
|
101 |
<target name="addBuildNumber" if="buildNumber">
|
|
102 |
<replace dir="${buildDirectory}/plugins" value="${buildNumber}" token="@buildNumber@">
|
|
103 |
<include name="com.nokia.carbide.cpp/about.mappings" />
|
|
104 |
</replace>
|
|
105 |
</target>
|
|
106 |
|
|
107 |
<!-- ===================================================================== -->
|
|
108 |
<!-- Steps to do after generating the build scripts. -->
|
|
109 |
<!-- ===================================================================== -->
|
|
110 |
<target name="postGenerate">
|
|
111 |
<antcall target="clean" />
|
|
112 |
</target>
|
|
113 |
|
|
114 |
<!-- ===================================================================== -->
|
|
115 |
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
|
116 |
<!-- ===================================================================== -->
|
|
117 |
<target name="preProcess">
|
|
118 |
</target>
|
|
119 |
|
|
120 |
<!-- ===================================================================== -->
|
|
121 |
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
|
122 |
<!-- ===================================================================== -->
|
|
123 |
<target name="postProcess">
|
|
124 |
</target>
|
|
125 |
|
|
126 |
<!-- ===================================================================== -->
|
|
127 |
<!-- Steps to do before running assemble. -->
|
|
128 |
<!-- ===================================================================== -->
|
|
129 |
<target name="preAssemble">
|
|
130 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.capabilityScanner" />
|
|
131 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.compiler.doc.user" />
|
|
132 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.codescanner" />
|
|
133 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.sdk.doc.user" />
|
|
134 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.uiq.doc.user" />
|
|
135 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.pi.doc.user" />
|
|
136 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.debug.crashdebugger" />
|
|
137 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.uidesigner.doc.user" />
|
|
138 |
<ant antfile="build_index.xml" dir="${buildDirectory}/plugins/com.nokia.carbide.cpp.doc.user" />
|
|
139 |
</target>
|
|
140 |
|
|
141 |
<!-- ===================================================================== -->
|
|
142 |
<!-- Steps to do after running assemble. -->
|
|
143 |
<!-- ===================================================================== -->
|
|
144 |
<target name="postAssemble">
|
|
145 |
</target>
|
|
146 |
|
|
147 |
<!-- ===================================================================== -->
|
|
148 |
<!-- Steps to do before running package. -->
|
|
149 |
<!-- ===================================================================== -->
|
|
150 |
<target name="prePackage">
|
|
151 |
</target>
|
|
152 |
|
|
153 |
<!-- ===================================================================== -->
|
|
154 |
<!-- Steps to do after running package. -->
|
|
155 |
<!-- ===================================================================== -->
|
|
156 |
<target name="postPackage">
|
|
157 |
</target>
|
|
158 |
|
|
159 |
<!-- ===================================================================== -->
|
|
160 |
<!-- Steps to do after the build is done. -->
|
|
161 |
<!-- ===================================================================== -->
|
|
162 |
<target name="postBuild">
|
|
163 |
<antcall target="gatherLogs" />
|
|
164 |
</target>
|
|
165 |
|
|
166 |
<!-- ===================================================================== -->
|
|
167 |
<!-- Steps to do to test the build results -->
|
|
168 |
<!-- ===================================================================== -->
|
|
169 |
<target name="test">
|
|
170 |
</target>
|
|
171 |
|
|
172 |
<!-- ===================================================================== -->
|
|
173 |
<!-- Steps to do to publish the build results -->
|
|
174 |
<!-- ===================================================================== -->
|
|
175 |
<target name="publish">
|
|
176 |
</target>
|
|
177 |
|
|
178 |
<!-- ===================================================================== -->
|
|
179 |
<!-- Default target -->
|
|
180 |
<!-- ===================================================================== -->
|
|
181 |
<target name="noDefault">
|
|
182 |
<echo message="You must specify a target when invoking this file" />
|
|
183 |
</target>
|
|
184 |
|
|
185 |
</project>
|