sf-tools/run-qmake.ant.xml.ftl
author Johan Groth <johang@symbian.org>
Thu, 07 Oct 2010 10:47:56 +0100
changeset 1291 d1eb3865f97d
child 1293 5450d9b3723a
permissions -rw-r--r--
Added file to configure Orbit
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1291
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0"?>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     2
<project name="run-qmake" default="all">
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     3
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     4
    <target name="all" depends="sd-qmake-all-profiles"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     5
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     6
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     7
    <target name="sf-configure-orbit">
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     8
        <sequential>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
     9
  <#list data["//unit[@proFile = 'hb.pro']"] as unit>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    10
            <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    11
            <if>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    12
                <available file="${r'$'}{build.drive}${unit.@bldFile}" type="dir"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    13
                <then>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    14
                    <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    15
                        <arg value="/C"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    16
                        <arg value="python"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    17
                        <arg line ="configure.py --host-make-bin=mingw32-make.exe --host-qmake-bin=qmake.exe --qmake-spec=win32-g++ --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN CONFIG+=sgimagelite_support DEFINES+=HB_EFFECTS_OPENVG DEFINES+=HB_FILTER_EFFECTS"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    18
                    </exec>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    19
                        
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    20
                    <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    21
                    <echo>INFO: Running Orbit theme installer, make install step</echo>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    22
                    <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_install_hb_configure.log">
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    23
                        <arg value="/C"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    24
                        <arg value="make install"/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    25
                    </exec>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    26
                </then>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    27
                <else>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    28
                    <echo message="ERROR: Directory ${r'$'}{build.drive}${unit.@bldFile} doesn't exist."/>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    29
                </else>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    30
            </if>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    31
  </#list>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    32
        </sequential>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    33
    </target>
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    34
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    35
    
d1eb3865f97d Added file to configure Orbit
Johan Groth <johang@symbian.org>
parents:
diff changeset
    36
</project>