File: build.xml

package info (click to toggle)
swt-gtk 3.5.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,744 kB
  • ctags: 23,317
  • sloc: java: 109,142; ansic: 30,160; cpp: 8,948; sh: 125; makefile: 55; xml: 42
file content (65 lines) | stat: -rw-r--r-- 2,189 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8"?>

<!--
    Copyright (c) 2009 IBM Corporation and others.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html
   
    Contributors:
        IBM Corporation - initial API and implementation
 -->

<project default="build_gtk_lib" basedir="../../..">

<target name="init">
	<eclipse.refreshLocal resource="org.eclipse.swt" depth="infinite" />
	<eclipse.refreshLocal resource="org.eclipse.swt.tools" depth="infinite" />	
   	<eclipse.incrementalBuild project="org.eclipse.swt" kind="incr" />
</target>
	
<!-- Build swt.so for GTK -->
<target name="build_gtk_lib" depends="init">
	<exec dir="./bin/library" executable="sh">
		<arg line="${basedir}/bin/library/build.sh"/>
		<arg line="install"/>
	</exec>
	<eclipse.refreshLocal resource="org.eclipse.swt.gtk.linux.x86" depth="infinite" />
</target>

<!-- Build swt.so for PowerPC 32 bit GTK (no Mozilla)-->
<target name="build_ppc_gtk_lib" depends="init">
	<exec dir="./bin/library" executable="sh">
		<env key="MODEL" value="ppc"/>
		<arg line="${basedir}/bin/library/build.sh"/>
		<arg line="install"/>
	</exec>
	<eclipse.refreshLocal resource="org.eclipse.swt.gtk.linux.ppc" depth="infinite" />
</target>

<!-- Build swt.so for Solaris GTK (no Mozilla) -->
<target name="build_solaris_gtk_lib" depends="init">
	<exec dir="./bin/library" executable="sh">
		<arg line="${basedir}/bin/library/build.sh"/>
		<arg line="install"/>
	</exec>
	<eclipse.refreshLocal resource="org.eclipse.swt.gtk.solaris.sparc" depth="infinite" />
</target>
	
<!-- Build swt.so for GTK 64 -->
<target name="build_gtk64_lib" depends="init">
	<exec dir="./bin/library" executable="sh">
		<arg line="${basedir}/bin/library/build.sh"/>
		<arg line="install"/>
	</exec>
	<eclipse.refreshLocal resource="org.eclipse.swt.gtk.linux.x86_64" depth="infinite" />	
</target>

<target name="clean">
	<exec dir="./bin/library" executable="sh">
		<arg line="${basedir}/bin/library/build.sh"/>
		<arg line="clean"/>
	</exec>
</target>

</project>