Bulding an multi-platform SWT application using Ant
Posted
by
Mridang Agarwalla
on Stack Overflow
See other posts from Stack Overflow
or by Mridang Agarwalla
Published on 2012-06-05T09:07:14Z
Indexed on
2012/06/05
10:40 UTC
Read the original article
Hit count: 272
I'm writing an SWT application which can be used on Windows (32/64 bit) and Mac OSX (32/64 bit).
Apart from the JRE I rely on the SWT library found here. I can find four versions of the SWT library depending upon my target platforms (as mentioned above).
When building my application, how can I compile using the correct SWT Jar? If possible, I'd like to try and avoid hard-coding the Jar version, platform and architecture. The SWT Jars are named like this:
- swt-win32-x86_64.jar
- swt-win32-x86_32.jar
- swt-macosx-x86_32.jar
- swt-macosx-x86_64.jar
(My project will be an open source project. I'd like people to be able to download the source and build it and therefore I've thought of including all the four versions of the SWT Jars in the source distribution. I hope this is the correct approach of publishing code relying on third-part libraries.)
Thanks everyone.
© Stack Overflow or respective owner