view prism-sw/build-windows.xml @ 3784:582edfecdb04

imported patch gradle-builders
author kcr
date Sat, 01 Jun 2013 08:00:37 -0700
parents
children
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<project name="prism-sw" default="all" basedir=".">

  <import file="../../build-defs.xml"/>

  <property name="jfx.build.needs.visual.studio" value="true"/>
  <property name="jfx.build.needs.make.utility" value="true"/>

  <target name="compile-native" depends="needs-vs-properties">
    <exec executable="cygpath" dir="." outputproperty="short.platform.home" failonerror="true">
      <arg value="-m"/>
      <arg value="-a"/>
      <arg value="-s"/>
      <arg value="${platform.home}"/>
    </exec>
    <get-cygwin-path/>
    <property file="${vs.properties}"/>
    <!-- TODO: reuse do-make macro here -->
    <exec executable="${cmd.utility}" dir="../prism-sw-native" failonerror="true">
      <env key="JDK_HOME" value="${short.platform.home}"/>
      <env key="INCLUDE" value="${windows.vs.INCLUDE}"/>
      <env key="LIB" value="${windows.vs.LIB}"/>
      <env key="LIBPATH" value="${windows.vs.LIBPATH}"/>
      <env key="PATH" value="${windows.vs.PATH}"/>
      <env key="CONF" value="${build.conf}"/>
      <env key="DIST_DIR" value="${native.dist.dir}"/>
      <env key="BUILD_DIR" value="${native.build.dir}"/>
      <env key="PRISM-SW_CP" value="${prism-sw.classes.dir}"/>
      <arg value="/C"/>
      <arg value="${make.utility}"/>
      <arg value="-f"/>
      <arg value="${native.makefile}"/>
      <arg value="all"/>
    </exec>
  </target>

  <target name="clean-native">
    <get-cygwin-path/>
    <!-- TODO: reuse do-make macro here -->
    <exec executable="${cmd.utility}" dir="../prism-sw-native" failonerror="true">
      <env key="DIST_DIR" value="${native.dist.dir}"/>
      <env key="BUILD_DIR" value="${native.build.dir}"/>
      <arg value="/C"/>
      <arg value="${make.utility}"/>
      <arg value="-f"/>
      <arg value="${native.makefile}"/>
      <arg value="clean"/>
    </exec>
  </target>

</project>