blob: e8f23f9f16bd4f97987b514eb40c379b6d02ec27 (
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
|
<!-- ============================================================================= -->
<!-- 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 -->
<!-- -->
<!-- Andre Weinand, OTI - Initial version -->
<!-- ============================================================================= -->
<project default="build_dll" 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="dll_destdir" value="${fragment_dir}/os/macosx/ppc" />
<property name="plugin" value="org.eclipse.swt" />
<property name="bin_dir" value="../../../bin" />
<property name="common_library" value="../../../Eclipse SWT/common/library" />
<mkdir dir="${jar_destdir}" />
<mkdir dir="${dll_destdir}" />
</target>
<target name="build" depends="init">
<eclipse.incrementalBuild project="${plugin}" kind="incr" />
</target>
<target name="build_header" depends="build">
<javah
destdir="."
force="yes"
classpath="${bin_dir}"
class= "org.eclipse.swt.internal.carbon.OS"
/>
</target>
<target name="build_dll" depends="build_header">
<property file="${common_library}/make_common.mak" />
<property name="SWT_VERSION" value="${maj_ver}${min_ver}" />
<property name="SWT_PREFIX" value="swt" />
<property name="WS_PREFIX" value="carbon" />
<property name="SWT_DLL" value="lib${SWT_PREFIX}-${WS_PREFIX}-${SWT_VERSION}.jnilib" />
<exec executable="cc">
<arg line="-bundle" />
<arg value='-DPLATFORM="carbon"' />
<arg value="-DREDUCED_CALLBACKS=1" />
<arg line="-I /System/Library/Frameworks/JavaVM.framework/Headers" />
<arg line="-o ${dll_destdir}/${SWT_DLL}" />
<arg line="-framework JavaVM" />
<arg line="-framework Carbon" />
<arg line="swt.c" />
<arg value="${common_library}/callback.c" />
</exec>
</target>
<target name="build_jar" depends="build">
<jar
jarfile="${jar_destdir}/swt.jar"
basedir="${bin_dir}"
/>
</target>
<target name="export" depends="build_jar,build_dll">
</target>
</project>
|