You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2007/07/27 20:38:40 UTC

svn commit: r560347 - in /incubator/tuscany/cpp/sca: build.xml runtime/core/build.xml runtime/core/src/build.xml

Author: robbinspg
Date: Fri Jul 27 11:38:39 2007
New Revision: 560347

URL: http://svn.apache.org/viewvc?view=rev&rev=560347
Log:
TUSCANY-1438 move core build.xml up one level

Added:
    incubator/tuscany/cpp/sca/runtime/core/build.xml   (with props)
Removed:
    incubator/tuscany/cpp/sca/runtime/core/src/build.xml
Modified:
    incubator/tuscany/cpp/sca/build.xml

Modified: incubator/tuscany/cpp/sca/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/build.xml?view=diff&rev=560347&r1=560346&r2=560347
==============================================================================
--- incubator/tuscany/cpp/sca/build.xml (original)
+++ incubator/tuscany/cpp/sca/build.xml Fri Jul 27 11:38:39 2007
@@ -27,7 +27,7 @@
     found in the ant subdirectory.
   -->
 
-  <property name="src.dir" value="runtime/core/src"/>
+  <property name="core.dir" value="runtime/core"/>
   <property name="extensions.dir" value="runtime/extensions"/>
  	
   <!--
@@ -63,7 +63,7 @@
   -->
 
   <target name="build.core">
-    <ant target="build" antfile="${src.dir}/build.xml" inheritAll="false"/>
+    <ant target="build" antfile="${core.dir}/build.xml" inheritAll="false"/>
   </target>
 
   <target name="build.extensions">
@@ -71,7 +71,7 @@
   </target>
 
   <target name="install.core">
-    <ant target="install" antfile="${src.dir}/build.xml" inheritAll="false"/>
+    <ant target="install" antfile="${core.dir}/build.xml" inheritAll="false"/>
   </target>
 
   <target name="install.extensions">
@@ -79,7 +79,7 @@
   </target>
 
   <target name="clean.core">
-    <ant target="clean" antfile="${src.dir}/build.xml" inheritAll="false"/>
+    <ant target="clean" antfile="${core.dir}/build.xml" inheritAll="false"/>
   </target>
 
   <target name="clean.extensions">

Added: incubator/tuscany/cpp/sca/runtime/core/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/build.xml?view=auto&rev=560347
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/build.xml (added)
+++ incubator/tuscany/cpp/sca/runtime/core/build.xml Fri Jul 27 11:38:39 2007
@@ -0,0 +1,355 @@
+<?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/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="xsd.dir"            value="${basedir}/xsd"/>
+
+  <property name="core.abs.dir"       location="${this.dir}/${core.dir}"/>
+  <property name="extension.abs.dir"  location="${this.dir}/${extension.dir}"/>
+  <property name="model.abs.dir"      location="${this.dir}/${model.dir}"/>
+  <property name="util.abs.dir"       location="${this.dir}/${util.dir}"/>
+  <property name="xsd.abs.dir"        location="${xsd.dir}"/>
+  <property name="lib.dir"            location="${this.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"/>
+
+  <!--
+    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="${this.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-files
+        dir="${tuscanySCA.install.dir}/lib"
+        rmdir="true"/>
+  </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>

Propchange: incubator/tuscany/cpp/sca/runtime/core/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/cpp/sca/runtime/core/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org