1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="SF-COMMON-CONFIG"> |
2 <project name="SF-COMMON-CONFIG"> |
3 <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/> |
|
4 |
3 |
5 <!-- import default properties file config --> |
4 <dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/> |
6 <import file="${sf.common.config.dir}/properties.default.ant.xml"/> |
5 |
7 |
6 <!-- import default properties file config --> |
8 <!-- import all core HELIUM targets --> |
7 <import file="${sf.common.config.dir}/properties.default.ant.xml"/> |
9 <import file="${helium.dir}/helium.ant.xml" /> |
8 |
|
9 <!-- import all core HELIUM targets --> |
|
10 <import file="${helium.dir}/helium.ant.xml" /> |
|
11 |
|
12 <!-- conditional import of generated source spec if available --> |
|
13 <if><available file="${sf.common.config.dir}/generated/source-spec.ant.xml" /> |
|
14 <then> |
|
15 <echo message="Generated source spec found, importing..." /> |
|
16 <import file="${sf.common.config.dir}/generated/source-spec.ant.xml"/> |
|
17 </then> |
|
18 </if> |
|
19 |
|
20 <!-- |
|
21 ** TARGET DEFINITIONS |
|
22 --> |
|
23 |
|
24 <target name="sf-parse-project-config"> |
|
25 <!-- TODO: Parse the project config and generate properties and csv file to be |
|
26 used by the builds. --> |
|
27 <echo message="Parse the project configuration" /> |
|
28 </target> |
|
29 |
|
30 <target name="sf-generate-source-spec" depends="sf-parse-project-config"> |
|
31 <!-- TODO: 1. Same file name souce-spec.ant.xml is used for all packages |
|
32 for multiple package builds, this needs to be linked with package name. --> |
|
33 <!-- TODO: 2. Change fmpp data to be a full property rather than relative path --> |
10 |
34 |
11 <!-- import sysdef file location config --> |
35 <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl" |
12 <import file="${sf.common.config.dir}/../../build/hg-pkg-build.ant.xml"/> |
36 outputFile="${sf.common.config.dir}/generated/source-spec.ant.xml"> |
|
37 <data expandProperties="yes"> |
|
38 ant: antProperties() |
|
39 data: csv(${sf.common.config.dir}/../../build/config/${sf.spec.sourcesync.sourcespecfile}, {separator:','}) |
|
40 </data> |
|
41 </fmpp> |
|
42 </target> |
|
43 |
|
44 <target name="sf-build" depends="sf-prep,sf-prebuild,sf-get-source,sf-build-run,sf-postbuild"> |
|
45 <echo>[SF-BUILD]</echo> |
|
46 </target> |
|
47 |
|
48 <target name="sf-build-noprep"> |
|
49 <echo>[SF-BUILD-NO-PREP]</echo> |
|
50 </target> |
|
51 |
|
52 <target name="sf-prep" depends="sf-generate-source-spec, prep-drive,init-build-area,check-tool-dependencies,create-bom,log-build-env"> |
|
53 <echo>[SF-PREP]</echo> |
|
54 <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/> |
|
55 </target> |
|
56 |
|
57 <target name="sf-prebuild"> |
|
58 <echo>[SF-PREBUILD]</echo> |
13 |
59 |
14 <!-- |
60 <if> |
15 ** TARGET DEFINITIONS |
61 <istrue value="${sf.spec.baseline.enable}" /> |
16 --> |
62 <then> |
|
63 <runtarget target="preparation-getenv"/> |
|
64 </then> |
|
65 </if> |
17 |
66 |
18 <target name="sf-build" depends="sf-prep,sf-prebuild,sf-get-source,sf-build-run,sf-postbuild"> |
67 <if> |
19 <echo>[SF-BUILD]</echo> |
68 <istrue value="${sf.spec.sourcesync.enable}" /> |
20 </target> |
69 <then> |
21 |
70 <runtarget target="sf-get-source"/> |
22 <target name="sf-build-noprep"> |
71 </then> |
23 <echo>[SF-BUILD-NO-PREP]</echo> |
72 </if> |
24 </target> |
73 </target> |
25 |
74 |
26 <target name="sf-prep" depends="prep-drive,init-build-area,check-tool-dependencies,create-bom,log-build-env"> |
75 <target name="sf-postbuild"> |
27 <echo>[SF-PREP]</echo> |
76 <echo>[SF-POSTBUILD]</echo> |
28 <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/> |
77 </target> |
29 </target> |
78 |
30 |
79 <target name="sf-build-run" depends="sf-compile"> |
31 <target name="sf-prebuild"> |
80 <echo>[SF-BUILD-RUN]</echo> |
32 <echo>[SF-PREBUILD]</echo> |
81 </target> |
33 |
82 |
34 <if> |
83 <target name="sf-compile"> |
35 <istrue value="${sf.prebuild.getenv}" /> |
84 <!-- target name="compile-main-prebuild" --> |
36 <then> |
85 <antcall target="compile-main" inheritAll="false"> |
37 <runtarget target="preparation-getenv"/> |
86 <param name="build.system" value="sbs" /> |
38 </then> |
87 <param name="sysdef.configurations.list" value="s60_build_clean,s60_build" /> |
39 </if> |
88 <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />--> |
40 |
89 </antcall> |
41 <if> |
90 </target> |
42 <istrue value="${sf.prebuild.getsrc}" /> |
91 |
43 <then> |
92 |
44 <runtarget target="sf-get-source"/> |
93 <target name="sf-get-source" depends="sf-generate-source-spec"> |
45 </then> |
94 <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" /> |
46 </if> |
95 </target> |
47 |
96 |
48 |
97 |
49 </target> |
|
50 |
|
51 <target name="sf-postbuild"> |
|
52 <echo>[SF-POSTBUILD]</echo> |
|
53 </target> |
|
54 |
|
55 <target name="sf-build-run" depends="sf-compile"> |
|
56 <echo>[SF-BUILD-RUN]</echo> |
|
57 </target> |
|
58 |
|
59 <target name="sf-compile"> |
|
60 |
|
61 <!--<path id="sf.system.definition.files"> |
|
62 <fileset dir="${sf.common.config.dir}/sysdefs" includes="*.sysdef.xml"/> |
|
63 <fileset dir="${build.drive}/sf/app/camera" includes="*.sysdef.xml"/> |
|
64 </path> |
|
65 --> |
|
66 |
|
67 <!-- target name="compile-main-prebuild" --> |
|
68 <antcall target="compile-main" inheritAll="false"> |
|
69 <param name="build.system" value="sbs" /> |
|
70 <param name="sysdef.configurations.list" value="s60_build_clean,s60_build" /> |
|
71 <!--<reference refid="sf.system.definition.files" torefid="system.definition.files" />--> |
|
72 </antcall> |
|
73 |
|
74 </target> |
|
75 |
|
76 |
|
77 <target name="sf-get-source"> |
|
78 <ant antfile="${sf.common.config.dir}/../../build/hg-pkg-build.ant.xml" /> |
|
79 </target> |
|
80 </project> |
98 </project> |
81 |
99 |
82 |
100 |