Build swt-xulrunner.dll from source on Windows
Environments:
Windows 2003 Server 32 bit
Windows SDK: http://www.microsoft.com/en-us/download/details.aspx?id=15656 (Win SDK V7.0a/V7.1 does Not work)
Visual studio .net 2003 (VS 2005 works when building other SWT dlls but NOT swt-xulrunner.dll)
Gecko SDK: 1.8.0.4/1.9.2 (2.0 above has compilation error)
org.eclipse.swt.win32.win32.x86.source_3.100.1.v4234e.jar
JDK 1.6
build.bat changes:
:XULRUNNER set MSSDK=C:\MSSDK call "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vcvars32.bat" call %MSSDK%\setenv /XP32 /RETAIL IF x.%XULRUNNER_SDK%==x. set XULRUNNER_SDK=C:\gecko-sdk IF x.%1==x.x86 shift GOTO MAKE
Steps:
- Extract SWT source.jar
- Modify build.bat
- Run cmd.exe
- Navigate to SWT source fold
- Run command: set BUILD_XULRUNNER=true
- Run command: build.bat x86 make_xulrunner
References:
http://www.eclipse.org/swt/faq.php#howbuilddll
http://www.blogjava.net/lifesting/archive/2008/07/24/217236.html