diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/helium/target-create-canonical-sysdef-file.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/helium/target-create-canonical-sysdef-file.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,231 @@ + + + + + + +
+ + + + + + + + + +
+
+
|
++Helium API + + | +||||||
+ prev + next | ++ frames + no frames + + + + + + | +
Location
+D:\maintools\sf-config\sf-platform\build.xml:69: +
+ +Conditional execution
+No conditions on target execution.
++
This target is effectively a callback, called from compile-main. Its responsibility is to convert the set of peices in ref "system.definition.files" into one sys def with absolute paths
However, in our builds, we know that there will only be one sysdef peice passed in, so that makes things a lot simpler
+ ++
Name | Edit status | +
---|---|
User editable properties | +|
Internal properties | +|
canonical.sysdef.file | never | +
+ + +
++ <target name="create-canonical-sysdef-file"> + <fail message="Symbian builds create a canonical system definition from exactly one peice"> + <condition> + <resourcecount refid="system.definition.files" when="ne" count="1"/> + </condition> + </fail> + + <!-- Locate the first/only item referenced --> + <for param="file"> + <resources refid="system.definition.files"/> + <sequential> + <echo message="@{file}"/> + <!-- Once a property is set, it stays set - bingo! --> + <property name="sf.first.system.definition" value="@{file}"/> + </sequential> + </for> + + <!-- Having located the file, copy it to the final desired location, absoluting tha paths as we go --> + <copy tofile="${canonical.sysdef.file}" file="${sf.first.system.definition}" overwrite="true" verbose="true"> + <filterchain> + <replaceregex pattern="bldFile="os" replace="bldFile="/sf/os" flags="gi"/> + <replaceregex pattern="mrp="os" replace="mrp="/sf/os" flags="gi"/> + <replaceregex pattern="bldFile="mw" replace="bldFile="/sf/mw" flags="gi"/> + <replaceregex pattern="mrp="mw" replace="mrp="/sf/mw" flags="gi"/> + <replaceregex pattern="bldFile="app" replace="bldFile="/sf/app" flags="gi"/> + <replaceregex pattern="mrp="app" replace="mrp="/sf/app" flags="gi"/> + <replaceregex pattern="bldFile="tools" replace="bldFile="/sf/tools" flags="gi"/> + <replaceregex pattern="mrp="tools" replace="mrp="/sf/tools" flags="gi"/> + <replaceregex pattern="bldFile="adaptation" replace="bldFile="/sf/adaptation" flags="gi"/> + <replaceregex pattern="mrp="adaptation" replace="mrp="/sf/adaptation" flags="gi"/> + <expandproperties/> + </filterchain> + </copy> + + </target> ++ + +
+
+
|
++Helium API + + | +||||||
+ prev + next | ++ frames + no frames + + + + + + | +