• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Last Change
  • Annotate
  • Revision Log

root/trunk/components/tools/make.xml

Revision 2942, 3.0 kB (checked in by jmoore, 3 months ago)

ticket:1106 - Ice-based build & rewrite of OmeroCpp build to use http://scons.org

Includes:

  • Moving of some omero/*.ice files to subdirectories
  • Moving of OmeroCpp/test/boost* tests to subdirectories
  • Addition of overdue omero/templates.h
  • Change to all imports generated from combined.vm
  • Removal of ModelI.h and Model.h
  • Removal of no.ice|uses.ice|skip.ice
  • Renaming of products to omero_client
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="make" default="install" basedir=".">
3
4    <property name="env.DESTDIR"     value="${up-two}/target/"/>
5    <property name="env.LDFLAGS"     value="-fPIC"/>
6    <property name="env.CXXFLAGS"    value="-fPIC -O0 -g -D_REENTRANT -Wall"/>
7    <property name="env.J"           value="1"/>
8    <!-- Checking for ccache before making it the default. -->
9    <available property="env.CXX" filepath="${env.PATH}" file="ccache" value="ccache g++"/>
10    <property name="env.CXX"         value="g++"/>
11
12    <defineVariables/>
13
14    <condition property="env.MAC_UNIVERSAL" value="-arch i386 -arch ppc" else="">
15        <and><os family="mac"/><os family="unix"/></and>
16    </condition>
17
18    <condition property="env.MAC_TRACKING" value="--disable-dependency-tracking" else="">
19        <and><os family="mac"/><os family="unix"/></and>
20    </condition>
21
22    <macrodef name="autogen">
23        <attribute name="file" default="${basedir}/../autogen.sh"/>
24        <attribute name="icehome" default="${ice.home}"/>
25        <attribute name="ldflags" default="${env.LDFLAGS} ${env.MAC_UNIVERSAL}"/>
26        <attribute name="cxxflags" default="${env.CXXFLAGS} ${env.MAC_UNIVERSAL}"/>
27        <attribute name="other" default="${env.MAC_TRACKING}"/>
28        <sequential>
29        <exec executable="@{file}" failonerror="true">
30            <arg value="--with-ice=${ice.home}"/>
31            <arg value="--prefix=${env.DESTDIR}"/>
32            <arg value="CXX=${env.CXX}"/>
33            <arg value="CXXFLAGS=@{ldflags}"/>
34            <arg value="LDFLAGS=@{ldflags}"/>
35            <arg line="@{other}"/>
36        </exec>
37        </sequential>
38    </macrodef>
39
40    <macrodef name="make">
41        <attribute name="dir" default="${basedir}"/>
42        <attribute name="failonerror" default="true"/>
43        <element name="args" implicit="yes"/>
44        <sequential>
45        <exec executable="make" dir="@{dir}" failonerror="@{failonerror}">
46            <args/>
47        </exec>
48        </sequential>
49    </macrodef>
50
51    <target name="make-autogen" unless="env.NOMAKE">
52        <autogen/>
53    </target>
54
55    <target name="make-build" unless="env.NOMAKE">
56        <autogen/>
57        <make dir="src"> <arg value="slice"/> </make>
58        <make dir="src"> <arg value="-j${env.J}"/> </make>
59        <make dir="src"> <arg value="install"/> </make>
60    </target>
61
62    <target name="make-test" unless="env.NOMAKE">
63        <make dir="test"> <arg value="all"/> </make>
64    </target>
65
66    <target name="make-install" unless="env.NOMAKE">
67        <copy todir="../target/include">
68            <fileset dir="src"    includes="**/*.h"/>
69            <fileset dir="target" includes="**/*.h"/>
70        </copy>
71    </target>
72
73    <target name="make-clean" unless="env.NOMAKE">
74        <!-- Doesn't fail on error to permit calling the target twice -->
75        <make failonerror="false"> <arg value="clean-all"/> </make>
76        <delete dir="${basedir}/target"/>
77    </target>
78
79    <target name="findbugs">
80        <echo>Not yet implemented</echo>
81    </target>
82
83</project>
Note: See TracBrowser for help on using the browser.

Download in other formats:

  • Plain Text
  • Original Format

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/