summaryrefslogtreecommitdiffstats
path: root/sdo-cpp/trunk/samples/misc/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sdo-cpp/trunk/samples/misc/build.xml')
-rw-r--r--sdo-cpp/trunk/samples/misc/build.xml133
1 files changed, 133 insertions, 0 deletions
diff --git a/sdo-cpp/trunk/samples/misc/build.xml b/sdo-cpp/trunk/samples/misc/build.xml
new file mode 100644
index 0000000000..d4720fdb57
--- /dev/null
+++ b/sdo-cpp/trunk/samples/misc/build.xml
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project name="TuscanySDONative_Sample_misc" default="all" basedir="../..">
+
+ <import file="${basedir}/antscripts/system.xml"/>
+ <import file="${basedir}/antscripts/compile-targets.xml"/>
+
+ <!--
+ Notice that the basedir for this project is set to the TuscanySDO root dir
+ This makes path setting in system.xml much simpler, but we'll just have to
+ set a property here to this directory.
+ -->
+
+ <target name="init">
+ <tstamp/>
+ <property name="this.dir" location="${basedir}/samples/misc"/>
+ <property name="sample.misc.dir" location="${this.dir}/build"/>
+ <property name="sample.misc.src.dir" location="${this.dir}"/>
+ <property name="sample.misc.build.dir" location="${sample.misc.dir}/build"/>
+ <property name="misc.install.dir"
+ location="${tuscanySDO.install.dir}/samples/misc/bin"/>
+
+
+ </target>
+
+ <!--
+ Public targets
+ -->
+ <target name="all"
+ description="build and install the TuscanySDONative misc sample">
+ <antcall target="build"/>
+ <antcall target="install"/>
+ </target>
+
+ <target name="build"
+ description="build the TuscanySDONative misc sample">
+ <antcall target="build.sample.misc"/>
+ </target>
+
+ <target name="install"
+ description="Install the TuscanySDONative misc sample">
+ <antcall target="install.sample.misc"/>
+ </target>
+
+ <target name="clean"
+ description="Clean the TuscanySDONative misc sample">
+ <antcall target="clean.sample.misc"/>
+
+ </target>
+
+ <target name="distribution" description="Generate the necessary distribution files of misc sample and copy it to the distribution dir">
+ <antcall target="sample.misc.distribution"/>
+ </target>
+
+ <!--
+ Internal targets
+ They can still be called, they're just not described, so wont show up in "ant -p"
+ -->
+
+ <!-- build -->
+
+ <target name="build.sample.misc" depends="init,check.ws">
+ <mkdir dir="${sample.misc.build.dir}"/>
+
+ <copy todir="${sample.misc.build.dir}">
+ <fileset dir="${sample.misc.dir}" includes="*.h"/>
+ <fileset dir="${sample.misc.dir}" includes="*.cpp"/>
+ </copy>
+ <!-- build the library -->
+ <cpp-build
+ srcdir="${sample.misc.src.dir}"
+ infiles="*.cpp"
+ outdir="${sample.misc.build.dir}/.libs"
+ outtype="executable"
+ outfile="misc">
+ <custom-build-elements>
+ <includepath path="${tuscanySDO.install.dir}/include"/>
+ <includepath path="${libxml2.include.dir}"/>
+ <includepath if="windows" path="${iconv.home.dir}/include"/>
+ <libset if="windows" dir="${libxml2.lib.dir}" libs="libxml2"/>
+ <libset unless="windows" dir="${libxml2.lib.dir}" libs="xml2"/>
+
+<libset dir="${tuscanySDO.install.dir}/lib" libs="tuscany_sdo"/>
+ </custom-build-elements>
+ </cpp-build>
+ </target>
+
+
+ <!-- install -->
+
+ <target name="install.sample.misc" depends="init">
+ <cpp-install-files
+ files="*.exe*"
+ srcdir="${sample.misc.dir}/build/.libs/"
+ destdir="${misc.install.dir}"/>
+ <copy todir="${misc.install.dir}" overwrite="true">
+ <fileset dir="${this.dir}" includes="*.xsd, *.xml" excludes="build.xml"/>
+ </copy>
+
+ </target>
+
+ <!-- clean -->
+
+ <target name="clean.sample.misc" depends="init">
+ <delete dir="${sample.misc.dir}" quiet="true"/>
+ </target>
+
+ <target name="sample.misc.distribution">
+ <copy todir="${distribution.bin.dir}/samples/misc" overwrite="true">
+ <fileset dir="${this.dir}/misc" excludes="build/ rsc/ VSExpress/"/>
+ </copy>
+
+
+ </target>
+
+</project>