summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/make_carbon.xml
blob: ec3a790d330c82751b6888598470c738ab904273 (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
<!-- ============================================================================= -->
<!-- Copyright (c) 2000, 2002 IBM Corp.  All rights reserved.                      -->
<!-- This file is made available under the terms of the Common Public License v1.0 -->
<!-- which accompanies this distribution, and is available at                      -->
<!-- http://www.eclipse.org/legal/cpl-v10.html                                     -->
<!-- ============================================================================= --> 

<project default="build_lib" basedir=".">

	<target name="init">
		<tstamp/>
       	<property name="fragment_dir" value="../../../../org.eclipse.swt.carbon" />
        <property name="jar_destdir" value="${fragment_dir}/ws/carbon" />
        <property name="lib_destdir" value="${fragment_dir}/os/macosx/ppc" />
		<property name="plugin" value="org.eclipse.swt" />
		<property name="bin_dir" value="../../../bin" />
        <mkdir dir="${jar_destdir}" />
        <mkdir dir="${lib_destdir}" />
	</target>

	<target name="build" depends="init">
    	<eclipse.incrementalBuild project="${plugin}" kind="incr" />
	</target>
	
	<target name="build_lib" depends="build">
	
		<exec dir="${bin_dir}/library/" executable="csh">
  			<arg line='build.csh' />
		</exec>
		<copy todir="${lib_destdir}">
		    <fileset dir="${bin_dir}/library" includes="**/*.jnilib"/>
		</copy>
	</target>
		
    <target name="build_jar" depends="build">
        <jar
            jarfile="${jar_destdir}/swt.jar"
            basedir="${bin_dir}"
        />
    </target>
    
	<target name="clean" depends="init">
	
		<exec dir="${bin_dir}/library/" executable="csh">
  			<arg line='build.csh' />
  			<arg line='clean' />
		</exec>
	</target>

    <target name="export" depends="build_jar,build_lib">
    </target>
	
</project>