summaryrefslogtreecommitdiffstats
path: root/cpp/sca/runtime/core/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/sca/runtime/core/build.xml')
-rw-r--r--cpp/sca/runtime/core/build.xml360
1 files changed, 0 insertions, 360 deletions
diff --git a/cpp/sca/runtime/core/build.xml b/cpp/sca/runtime/core/build.xml
deleted file mode 100644
index 5ce67e35b6..0000000000
--- a/cpp/sca/runtime/core/build.xml
+++ /dev/null
@@ -1,360 +0,0 @@
-<?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="TuscanyScaNative_core" 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 TuscanySCA root dir
- This makes path setting in system.xml much simpler, but we'll just have to
- set a property here to this directory.
- -->
- <property name="this.dir" location="${basedir}/runtime/core"/>
- <property name="src.dir" location="${basedir}/runtime/core/src"/>
- <property name="core.dir" value="tuscany/sca/core"/>
- <property name="extension.dir" value="tuscany/sca/extension"/>
- <property name="model.dir" value="tuscany/sca/model"/>
- <property name="util.dir" value="tuscany/sca/util"/>
-
- <property name="core.abs.dir" location="${src.dir}/${core.dir}"/>
- <property name="extension.abs.dir" location="${src.dir}/${extension.dir}"/>
- <property name="model.abs.dir" location="${src.dir}/${model.dir}"/>
- <property name="util.abs.dir" location="${src.dir}/${util.dir}"/>
- <property name="xsd.abs.dir" location="${this.dir}/xsd"/>
- <property name="lib.dir" location="${src.dir}/.libs"/>
- <property name="tuscany.core.lib" value="tuscany_sca"/>
-
- <!--
- All the cpp and header files per subdirectory
- New classes should be added to these properties
- -->
-
- <property
- name="core.cpp.files"
- value="Exceptions.cpp
- Operation.cpp
- SCARuntime.cpp
- ServiceProxy.cpp
- ServiceWrapper.cpp"/>
- <property
- name="core.h.files"
- value="Exceptions.h
- Operation.h
- SCARuntime.h
- ServiceProxy.h
- ServiceWrapper.h"/>
-
- <property
- name="extension.cpp.files"
- value="ImplementationExtension.cpp
- InterfaceExtension.cpp
- ReferenceBindingExtension.cpp
- ServiceBindingExtension.cpp"/>
- <property
- name="extension.h.files"
- value="ImplementationExtension.h
- InterfaceExtension.h
- ReferenceBindingExtension.h
- ServiceBindingExtension.h"/>
-
- <property
- name="model.cpp.files"
- value="Binding.cpp
- Component.cpp
- ComponentType.cpp
- Composite.cpp
- CompositeReferenceBinding.cpp
- CompositeReference.cpp
- CompositeService.cpp
- Contract.cpp
- Interface.cpp
- ModelLoader.cpp
- ReferenceBinding.cpp
- Reference.cpp
- ReferenceType.cpp
- ServiceBinding.cpp
- Service.cpp
- ServiceType.cpp
- Wire.cpp
- WSDLDefinition.cpp
- WSDLInterface.cpp
- WSDLMessagePart.cpp
- WSDLOperation.cpp"/>
- <property
- name="model.h.files"
- value="Binding.h
- Component.h
- ComponentType.h
- Composite.h
- CompositeReferenceBinding.h
- CompositeReference.h
- CompositeService.h
- Contract.h
- Interface.h
- ModelLoader.h
- ReferenceBinding.h
- Reference.h
- ReferenceType.h
- ServiceBinding.h
- Service.h
- ServiceType.h
- Wire.h
- WSDLDefinition.h
- WSDLInterface.h
- WSDLMessagePart.h
- WSDLOperation.h"/>
-
- <property
- name="util.cpp.files"
- value="DefaultLogWriter.cpp
- File.cpp
- FileLogWriter.cpp
- Library.cpp
- Logger.cpp
- LogWriter.cpp
- Mutex.cpp
- Queue.cpp
- SDOUtils.cpp
- Thread.cpp
- ThreadLocal.cpp
- Utils.cpp"/>
-
- <property
- name="util.h.files"
- value="DefaultLogWriter.h
- File.h
- FileLogWriter.h
- Library.h
- Logger.h
- Logging.h
- LogWriter.h
- Mutex.h
- Queue.h
- SDOUtils.h
- Thread.h
- ThreadLocal.h
- Utils.h"/>
-
- <!--
- All the xsd schema files
- New schema should be added to this property
- -->
- <property
- name="xsd.files"
- value="sca.xsd
- sca-core.xsd
- sca-implementation-composite.xsd
- sca-implementation-java.xsd
- sca-interface-java.xsd
- sca-interface-wsdl.xsd
- tuscany.xsd
- wsdl_11_http.xsd
- wsdl_11_mime.xsd
- wsdl_11_soap12.xsd
- wsdl_11_soap.xsd
- wsdl_11.xsd"/>
-
- <!--
- Public targets
- -->
- <target name="all" description="compile, link, and install all TuscanyScaNative core source code">
- <antcall target="compile"/>
- <antcall target="link"/>
- <antcall target="install"/>
- </target>
-
- <target name="build" description="compile and link all TuscanyScaNative core source code">
- <antcall target="compile"/>
- <antcall target="link"/>
- </target>
-
- <target name="compile" description="Compile all TuscanyScaNative core source code">
- <antcall target="compile.core"/>
- <antcall target="compile.extension"/>
- <antcall target="compile.model"/>
- <antcall target="compile.util"/>
- </target>
-
- <target name="link" description="Link all TuscanyScaNative core source code">
- <cpp-link-core
- outfile="${tuscany.core.lib}"
- outdir="${lib.dir}"
- indir="${lib.dir}"
- infiles="*${object.ext}"/>
- </target>
-
- <target name="install" description="Install TuscanyScaNative core libraries and headers">
- <antcall target="install.core"/>
- <antcall target="install.extension"/>
- <antcall target="install.model"/>
- <antcall target="install.util"/>
- <antcall target="install.xsd"/>
- <cpp-install-files
- srcdir="${src.dir}/tuscany/sca"
- files="export.h"
- destdir="${tuscanySCA.install.dir}/include/tuscany/sca"/>
- <cpp-install-lib
- lib="${tuscany.core.lib}"
- srcdir="${lib.dir}"
- destrootdir="${tuscanySCA.install.dir}"/>
- <cpp-symlink
- linkdir="${tuscanySCA.install.dir}/lib"
- link="${lib.prefix}${tuscany.core.lib}${lib.ext}"
- resource="${lib.prefix}${tuscany.core.lib}${lib.ext}${tuscanySCA.library.version}"/>
- </target>
-
- <target name="clean" description="Clean all TuscanyScaNative core compiled source code">
- <antcall target="clean.core"/>
- <antcall target="clean.extension"/>
- <antcall target="clean.model"/>
- <antcall target="clean.util"/>
- <antcall target="clean.xsd"/>
- <delete dir="${lib.dir}" quiet="true"/>
- <cpp-clean-files
- dir="${tuscanySCA.install.dir}/include/tuscany/sca"
- files="export.h"
- rmdir="true"/>
- <cpp-clean-lib
- lib="${tuscany.core.lib}"
- librootdir="${tuscanySCA.install.dir}"/>
- </target>
-
- <!--
- Internal targets
- They can still be called, they're just not described, so wont show up in "ant -p"
- -->
-
- <!-- compile -->
-
- <target name="compile.core">
- <cpp-compile
- srcdir="${core.abs.dir}"
- objdir="${lib.dir}"
- infiles="${core.cpp.files}">
- <custom-cc-elements>
- <defineset if="windows" define="SCA_EXPORTS"/>
- </custom-cc-elements>
- </cpp-compile>
- </target>
-
- <target name="compile.extension">
- <cpp-compile
- srcdir="${extension.abs.dir}"
- objdir="${lib.dir}"
- infiles="${extension.cpp.files}">
- <custom-cc-elements>
- <defineset if="windows" define="SCA_EXPORTS"/>
- </custom-cc-elements>
- </cpp-compile>
- </target>
-
- <target name="compile.model">
- <cpp-compile
- srcdir="${model.abs.dir}"
- objdir="${lib.dir}"
- infiles="${model.cpp.files}">
- <custom-cc-elements>
- <defineset if="windows" define="SCA_EXPORTS"/>
- </custom-cc-elements>
- </cpp-compile>
- </target>
-
- <target name="compile.util">
- <cpp-compile
- srcdir="${util.abs.dir}"
- objdir="${lib.dir}"
- infiles="${util.cpp.files}">
- <custom-cc-elements>
- <defineset if="windows" define="SCA_EXPORTS"/>
- </custom-cc-elements>
- </cpp-compile>
- </target>
-
- <!-- install -->
-
- <target name="install.core">
- <cpp-install-files
- srcdir="${core.abs.dir}"
- files="${core.h.files}"
- destdir="${tuscanySCA.install.dir}/include/${core.dir}"/>
- </target>
-
- <target name="install.extension">
- <cpp-install-files
- srcdir="${extension.abs.dir}"
- files="${extension.h.files}"
- destdir="${tuscanySCA.install.dir}/include/${extension.dir}"/>
- </target>
-
- <target name="install.model">
- <cpp-install-files
- srcdir="${model.abs.dir}"
- files="${model.h.files}"
- destdir="${tuscanySCA.install.dir}/include/${model.dir}"/>
- </target>
-
- <target name="install.util">
- <cpp-install-files
- srcdir="${util.abs.dir}"
- files="${util.h.files}"
- destdir="${tuscanySCA.install.dir}/include/${util.dir}"/>
- </target>
-
- <target name="install.xsd">
- <cpp-install-files
- srcdir="${xsd.abs.dir}"
- files="${xsd.files}"
- destdir="${tuscanySCA.install.dir}/xsd"/>
- </target>
-
- <!-- clean -->
-
- <target name="clean.core">
- <cpp-clean-files
- dir="${tuscanySCA.install.dir}/include/${core.dir}"
- rmdir="true"/>
- </target>
-
- <target name="clean.extension">
- <cpp-clean-files
- dir="${tuscanySCA.install.dir}/include/${extension.dir}"
- rmdir="true"/>
- </target>
-
- <target name="clean.model">
- <cpp-clean-files
- dir="${tuscanySCA.install.dir}/include/${model.dir}"
- rmdir="true"/>
- </target>
-
- <target name="clean.util">
- <cpp-clean-files
- dir="${tuscanySCA.install.dir}/include/${util.dir}"
- rmdir="true"/>
- </target>
-
- <target name="clean.xsd">
- <cpp-clean-files
- dir="${tuscanySCA.install.dir}/xsd"
- rmdir="true"/>
- </target>
-
-</project>