summaryrefslogtreecommitdiffstats
path: root/cpp/sca/build.xml
blob: 9acb18ca4e56ec6f816767b7b953d79cb9678208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?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" default="all" basedir=".">

  <!--
    This is the root level ant build.xml file for TuscanySCA Native
    Nothing is actually performed here, it just delegates to subdirectory
    build.xml files. Common scripts used by all ant build files can be
    found in the ant subdirectory.
  --> 
    
  <import file="antscripts/system.xml"/>

  <property name="runtime.core.dir"  location="runtime/core"/>
  <property name="extensions.dir"    location="runtime/extensions"/>
  <property name="test.dir"          location="runtime/core/test"/>
  <property name="samples.dir"       location="samples"/>
  <property name="tools.dir"         location="tools"/>
 	
  <!--
    Public targets
  -->

  <target name="all" description="build and install all TuscanyScaNative source code">
    <antcall target="build.core"/>
    <antcall target="install.core"/>
    <antcall target="build.extensions"/>
    <antcall target="install.extensions"/>
  </target>

  <target name="build" description="Build all TuscanyScaNative source code">
    <antcall target="build.core"/>
    <antcall target="build.extensions"/>
  </target>

  <target name="install" description="Install TuscanyScaNative libraries and headers">
    <antcall target="install.core"/>
    <antcall target="install.extensions"/>
  </target>

  <target name="samples" description="Build and Install all TuscanyScaNative samples">
    <antcall target="build.samples"/>
  </target>

  <target name="tools" description="Build and Install all TuscanyScaNative tools">
    <antcall target="build.tools"/>
  </target>

  <target name="tests" description="Build and run all TuscanyScaNative tests">
    <ant target="all" antfile="${test.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="clean" description="Clean all TuscanyScaNative source code, samples, and tools">
    <antcall target="clean.core"/>
    <antcall target="clean.extensions"/>
    <antcall target="clean.samples"/>
    <antcall target="clean.tests"/>
    <antcall target="clean.tools"/>
  </target>

  <!--
    Internal targets
    They can still be called, they're just not described, so wont show up in "ant -p"
    Using antfile and inheritAll="false" to maintain the subdir build.xml basedir settings
  -->

  <target name="build.core">
    <ant target="build" antfile="${runtime.core.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="build.extensions">
    <ant target="build" antfile="${extensions.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="install.core">
    <ant target="install" antfile="${runtime.core.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="install.extensions">
    <ant target="install" antfile="${extensions.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="build.samples">
    <ant target="all" antfile="${samples.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="build.tools">
    <ant target="all" antfile="${tools.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="clean.core">
    <ant target="clean" antfile="${runtime.core.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="clean.extensions">
    <ant target="clean" antfile="${extensions.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="clean.tests">
    <ant target="clean" antfile="${test.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="clean.tools">
    <ant target="clean" antfile="${tools.dir}/build.xml" inheritAll="false"/>
  </target>

  <target name="clean.samples">
    <ant target="clean" antfile="${samples.dir}/build.xml" inheritAll="false"/>
  </target>

</project>