File:  [mozdev] / fasterfox / build.xml
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Sep 24 21:50:22 2005 UTC (14 years, 5 months ago) by gentilac
Branches: MAIN
CVS tags: HEAD
Version 0.6.3, Initial check-in to CVS.

    1: <?xml version="1.0" ?>
    2: <project name="fasterfox" default="createDistributionXPI">
    3: <!-- Tool directories : *** Make sure you fix these to match your own environment *** -->
    4: <property name="gecko_sdk_path" location="C:\software\gecko-sdk" />
    5: <property name="buildtools_path" location="C:\software\buildtools" />
    6: 
    7: <!-- Derived tool directories -->
    8: <property name="xpidl_exe" location="${gecko_sdk_path}/bin/xpidl.exe" />
    9: <property name="IDLs_path" location="${gecko_sdk_path}/idl" />
   10: <property name="libIDL_path" location="${buildtools_path}/windows/bin/x86" />
   11: 
   12: <!-- Project directories -->
   13: <property name="src_dir" location="./src" />
   14: <property name="build_dir" location="./build" />
   15: <property name="dist_dir" location="./dist" />
   16: <property name="components_dir" location="${src_dir}/components" />
   17: 
   18: <!-- Custom tasks -->
   19: <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
   20: 
   21: <!-- Targets -->
   22: <target name="createChromeJAR">
   23: <zip destfile="${build_dir}/${ant.project.name}.jar" update="true"
   24: basedir="${src_dir}/chrome"
   25: includes="content/**, locale/**, skin/**"
   26: />
   27: </target>
   28: 
   29: <target name="createComponentInterfaceXPTs">
   30: <foreach target="compileIDL" param="idl_file">
   31: <path>
   32: <fileset dir="${src_dir}/components" includes="*.idl" />
   33: </path>
   34: </foreach>
   35: </target>
   36: 
   37: <target name="compileIDL">
   38: <exec executable="${xpidl_exe}" dir="${build_dir}">
   39: <env key="Path" path="${env.Path};${libIDL_path}" />
   40: <arg line="-m typelib -w -v -I ${IDLs_path} -I ${components_dir} ${idl_file}" />
   41: </exec>
   42: </target>
   43: 
   44: <target name="createDistributionXPI" depends="createChromeJAR, createComponentInterfaceXPTs">
   45: <zip destfile="./dist/${ant.project.name}.xpi" update="true">
   46: <zipfileset dir="${build_dir}" includes="${ant.project.name}.jar" prefix="chrome" />
   47: <zipfileset dir="${src_dir}/components" includes="*.js" prefix="components" />
   48: <zipfileset dir="${build_dir}" includes="*.xpt" prefix="components" />
   49: <zipfileset dir="${src_dir}/defaults" includes="**" prefix="defaults" />
   50: <zipfileset dir="${src_dir}" includes="install.rdf" />
   51: <zipfileset dir="${src_dir}" includes="readme.txt" />
   52: </zip>
   53: <copy file="${dist_dir}/${ant.project.name}.xpi" tofile="${dist_dir}/${ant.project.name}.xpi.zip" />
   54: </target>
   55: </project>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>