summaryrefslogtreecommitdiffstats
path: root/make/build-common.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-02 04:39:06 +0100
committerSven Gothel <[email protected]>2011-02-02 04:39:06 +0100
commite93ee652a80dd8f4f1f4d1f6a1075388856e2e5c (patch)
tree7cd35076b25a99ac1b359d150bf86ffda131f1c6 /make/build-common.xml
parent3b72f696a0c46eb1a781066eed5513393ce0a25e (diff)
parent4e29ab96c2e5f934b7441f0df5bc976accac7c59 (diff)
Merge branch 'swt_tests' into pulled
Diffstat (limited to 'make/build-common.xml')
-rw-r--r--make/build-common.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/make/build-common.xml b/make/build-common.xml
index 7459a8836..876aa27ce 100644
--- a/make/build-common.xml
+++ b/make/build-common.xml
@@ -90,6 +90,40 @@
<echo message="antlr.jar=${antlr.jar}" />
<echo message="junit.jar=${junit.jar}" />
+ <!-- Set swt.jar to the correct file for this platform. We point to the debug JARs to allow
+ stepping into SWT calls using the accompanying source code zip archives. -->
+ <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86_64/swt-debug.jar">
+ <istrue value="${isWindowsAMD64}" />
+ </condition>
+ <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86/swt-debug.jar">
+ <istrue value="${isWindowsX86}" />
+ </condition>
+ <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-linux-x86_64/swt-debug.jar">
+ <istrue value="${isLinuxAMD64}" />
+ </condition>
+ <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-linux-x86/swt-debug.jar">
+ <istrue value="${isLinuxX86}" />
+ </condition>
+ <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx-x86_64/swt-debug.jar">
+ <and>
+ <istrue value="${isOSX}" />
+ <or>
+ <os arch="AMD64" />
+ <os arch="x86_64" />
+ </or>
+ </and>
+ </condition>
+ <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx/swt-debug.jar">
+ <and>
+ <istrue value="${isOSX}" />
+ <or>
+ <os arch="i386" />
+ <os arch="x86" />
+ </or>
+ </and>
+ </condition>
+ <echo message="swt.jar=${swt.jar}" />
+
<property name="target.sourcelevel" value="1.4" />
<property name="host.sourcelevel" value="1.5" />
@@ -197,6 +231,7 @@
<pathelement location="${nativewindow.all.jar}" />
<pathelement location="${jogl.all.jar}" />
<pathelement location="${newt.all.jar}" />
+ <pathelement location="${swt.jar}" />
</path>
<path id="junit_jogl_awt.run.classpath">
@@ -210,6 +245,19 @@
<pathelement location="${jogl.test.jar}" />
</path>
+ <!-- classpath used when running SWT tests -->
+ <path id="junit_jogl_swt.run.classpath">
+ <pathelement location="${junit.jar}" />
+ <pathelement location="${ant.jar}" />
+ <pathelement location="${ant-junit.jar}" />
+ <pathelement location="${gluegen-rt.jar}" />
+ <pathelement location="${nativewindow.all.jar}" />
+ <pathelement location="${jogl.all.jar}" />
+ <pathelement location="${newt.event.jar}" />
+ <pathelement location="${jogl.test.jar}" />
+ <pathelement location="${swt.jar}" />
+ </path>
+
<path id="junit_jogl_newt.run.classpath">
<pathelement location="${junit.jar}" />
<pathelement location="${ant.jar}" />