diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:23:09 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:24:09 +0200 |
commit | c7da892cb23d50d4d85746c9a0b6b14bf570989d (patch) | |
tree | e7136073f386d6156f51766c498c52c30c8df85f /features/org.yocto.bc.headless.build/customTargets.xml | |
download | eclipse-poky-kepler-c7da892cb23d50d4d85746c9a0b6b14bf570989d.tar.gz |
initial commit for Enea Linux 4.0daisy
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'features/org.yocto.bc.headless.build/customTargets.xml')
-rw-r--r-- | features/org.yocto.bc.headless.build/customTargets.xml | 212 |
1 files changed, 212 insertions, 0 deletions
diff --git a/features/org.yocto.bc.headless.build/customTargets.xml b/features/org.yocto.bc.headless.build/customTargets.xml new file mode 100644 index 0000000..52e460e --- /dev/null +++ b/features/org.yocto.bc.headless.build/customTargets.xml | |||
@@ -0,0 +1,212 @@ | |||
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"> | ||
67 | <delete dir="${buildDirectory}/plugins"/> | ||
68 | <mkdir dir="${buildDirectory}/plugins"/> | ||
69 | <copy todir="${buildDirectory}/plugins" failonerror="true"> | ||
70 | <fileset dir="${otherSrcDirectory}/plugins"/> | ||
71 | </copy> | ||
72 | <delete dir="${buildDirectory}/features"/> | ||
73 | <copy todir="${buildDirectory}/features" failonerror="true" > | ||
74 | <fileset dir="${otherSrcDirectory}/features"/> | ||
75 | </copy> | ||
76 | <antcall target="prepareForP2" /> | ||
77 | </target> | ||
78 | |||
79 | <target name="prepareForP2" if="p2.gathering"> | ||
80 | <copy file="${otherSrcDirectory}/features/org.yocto.sdk.site/site.xml" todir="${buildDirectory}" /> | ||
81 | <copy file="${otherSrcDirectory}/features/org.yocto.sdk.site/category.xml" todir="${buildDirectory}" /> | ||
82 | <xmlproperty file="${otherSrcDirectory}/features/org.yocto.bc/feature.xml" /> | ||
83 | <replace file="${buildDirectory}/category.xml"> | ||
84 | <replacefilter token="@bcfeatureVersion@" value="${feature(version)}"/> | ||
85 | </replace> | ||
86 | </target> | ||
87 | |||
88 | <!-- ===================================================================== --> | ||
89 | <!-- Steps to do after setup but before starting the build proper --> | ||
90 | <!-- ===================================================================== --> | ||
91 | <target name="postSetup"> | ||
92 | <antcall target="getBaseComponents" /> | ||
93 | </target> | ||
94 | |||
95 | <!-- ===================================================================== --> | ||
96 | <!-- Steps to do before fetching the build elements --> | ||
97 | <!-- ===================================================================== --> | ||
98 | <target name="preFetch"> | ||
99 | </target> | ||
100 | |||
101 | <!-- ===================================================================== --> | ||
102 | <!-- Steps to do after fetching the build elements --> | ||
103 | <!-- ===================================================================== --> | ||
104 | <target name="postFetch"> | ||
105 | </target> | ||
106 | |||
107 | <!-- ===================================================================== --> | ||
108 | <!-- Steps to do before the repositories are being processed --> | ||
109 | <!-- ===================================================================== --> | ||
110 | <target name="preProcessRepos"> | ||
111 | </target> | ||
112 | |||
113 | <!-- ===================================================================== --> | ||
114 | <!-- Steps to do after the repositories have been processed --> | ||
115 | <!-- ===================================================================== --> | ||
116 | <target name="postProcessRepos"> | ||
117 | </target> | ||
118 | |||
119 | <!-- ===================================================================== --> | ||
120 | <!-- Steps to do before generating the build scripts. --> | ||
121 | <!-- ===================================================================== --> | ||
122 | <target name="preGenerate"> | ||
123 | </target> | ||
124 | |||
125 | <!-- ===================================================================== --> | ||
126 | <!-- Steps to do after generating the build scripts. --> | ||
127 | <!-- ===================================================================== --> | ||
128 | <target name="postGenerate"> | ||
129 | <antcall target="clean" /> | ||
130 | </target> | ||
131 | |||
132 | <!-- ===================================================================== --> | ||
133 | <!-- Steps to do before running the build.xmls for the elements being built. --> | ||
134 | <!-- ===================================================================== --> | ||
135 | <target name="preProcess"> | ||
136 | </target> | ||
137 | |||
138 | <!-- ===================================================================== --> | ||
139 | <!-- Steps to do after running the build.xmls for the elements being built. --> | ||
140 | <!-- ===================================================================== --> | ||
141 | <target name="postProcess"> | ||
142 | </target> | ||
143 | |||
144 | <!-- ===================================================================== --> | ||
145 | <!-- Steps to do before running assemble. --> | ||
146 | <!-- ===================================================================== --> | ||
147 | <target name="preAssemble"> | ||
148 | </target> | ||
149 | |||
150 | <!-- ===================================================================== --> | ||
151 | <!-- Steps to do after running assemble. --> | ||
152 | <!-- ===================================================================== --> | ||
153 | <target name="postAssemble"> | ||
154 | </target> | ||
155 | |||
156 | <!-- ===================================================================== --> | ||
157 | <!-- Steps to do before running package. --> | ||
158 | <!-- ===================================================================== --> | ||
159 | <target name="prePackage"> | ||
160 | </target> | ||
161 | |||
162 | <!-- ===================================================================== --> | ||
163 | <!-- Steps to do after running package. --> | ||
164 | <!-- ===================================================================== --> | ||
165 | <target name="postPackage"> | ||
166 | </target> | ||
167 | |||
168 | <!-- ===================================================================== --> | ||
169 | <!-- Steps to do after the build is done. --> | ||
170 | <!-- ===================================================================== --> | ||
171 | <target name="postBuild"> | ||
172 | <antcall target="gatherLogs" /> | ||
173 | <antcall target="updateSiteContent" /> | ||
174 | </target> | ||
175 | |||
176 | <target name="updateSiteContent" if="p2.gathering"> | ||
177 | <property file="${buildDirectory}/finalFeaturesVersions.properties" /> | ||
178 | <copy file="${otherSrcDirectory}/features/org.yocto.sdk.site/site.xml" todir="${buildDirectory}" /> | ||
179 | <replace file="${buildDirectory}/site.xml"> | ||
180 | <replacefilter token="@bcGenVersion@" value="${org.yocto.bc}"/> | ||
181 | </replace> | ||
182 | <zip destfile="${buildDirectory}/${buildLabel}/org.yocto.bc-${buildId}-group.group.group.zip" update="true"> | ||
183 | <zipfileset dir="${buildDirectory}"> | ||
184 | <include name="site.xml"/> | ||
185 | </zipfileset> | ||
186 | <zipfileset dir="${otherSrcDirectory}/features/org.yocto.sdk.site"> | ||
187 | <include name="index.html"/> | ||
188 | </zipfileset> | ||
189 | <zipfileset dir="${otherSrcDirectory}/features/org.yocto.sdk.site/web" prefix="web"/> | ||
190 | </zip> | ||
191 | </target> | ||
192 | |||
193 | <!-- ===================================================================== --> | ||
194 | <!-- Steps to do to test the build results --> | ||
195 | <!-- ===================================================================== --> | ||
196 | <target name="test"> | ||
197 | </target> | ||
198 | |||
199 | <!-- ===================================================================== --> | ||
200 | <!-- Steps to do to publish the build results --> | ||
201 | <!-- ===================================================================== --> | ||
202 | <target name="publish"> | ||
203 | </target> | ||
204 | |||
205 | <!-- ===================================================================== --> | ||
206 | <!-- Default target --> | ||
207 | <!-- ===================================================================== --> | ||
208 | <target name="noDefault"> | ||
209 | <echo message="You must specify a target when invoking this file" /> | ||
210 | </target> | ||
211 | |||
212 | </project> | ||