Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,25 +160,19 @@ pipeline {
}
if (nativesChanged || params.forceNativeBuilds) {
NATIVES_CHANGED = true
def swtVersions = getSWTVersions()
withEnv(['swt_version='+swtVersions['swt_version'], 'new_version='+swtVersions['new_version'], 'rev='+swtVersions['rev'], 'new_rev='+swtVersions['new_rev'],
'comma_ver='+swtVersions['comma_ver'], "new_comma_ver=${swtVersions['maj_ver']},${swtVersions['min_ver']},${swtVersions['new_rev']},0" ]) {
sh '''
def versions = getSWTVersions()
sh """
# Delete native binaries to be replaced by subsequent binaries build
rm binaries/org.eclipse.swt.gtk.*/libswt-*.so
rm binaries/org.eclipse.swt.win32.*/swt-*.dll
rm binaries/org.eclipse.swt.cocoa.*/libswt-*.jnilib

echo "Incrementing version from ${swt_version} to ${new_version}; new comma_ver=${new_comma_ver}"

libraryFile='bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java'
sed -i -e "s/REVISION = ${rev}/REVISION = ${new_rev}/g" "$libraryFile"

commonMakeFile='bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak'
sed -i -e "s/rev=${rev}/rev=${new_rev}/g" "$commonMakeFile"
sed -i -e "s/comma_ver=${comma_ver}/comma_ver=${new_comma_ver}/g" "$commonMakeFile"
'''
}
echo "Incrementing version from ${versions.swt_version} to ${versions.new_version}"
sed -i -e "s/REVISION = ${versions.rev}/REVISION = ${versions.new_rev}/g" \
'bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java'
sed -i -e "s/rev=${versions.rev}/rev=${versions.new_rev}/g" \
'bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak'
"""
// Collect SWT-native's sources
dir('bundles/org.eclipse.swt') {
for (ws in ['cocoa', 'gtk', 'win32']) {
Expand Down Expand Up @@ -348,13 +342,11 @@ pipeline {
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.log,*/binaries/*/target/*.jar', excludes: '**/*-sources.jar'
discoverGitReferenceBuild referenceJob: 'eclipse.platform.swt/master'
// To accept unstable builds (test errors or new warnings introduced by third party changes) as reference using "ignoreQualityGate:true"
recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate:true,
tools: [
recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate: true, tools: [
eclipse(name: 'Compiler', pattern: '**/target/compilelogs/*.xml'),
issues(name: 'API Tools', id: 'apitools', pattern: '**/target/apianalysis/*.xml'),
javaDoc()
],
qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate:true, tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "windows.h"

VS_VERSION_INFO VERSIONINFO
FILEVERSION SWT_COMMA_VERSION
PRODUCTVERSION 0,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
Expand All @@ -33,9 +32,8 @@ BEGIN
BEGIN
VALUE "CompanyName", "Eclipse Foundation\0"
VALUE "FileDescription", "SWT for Windows native library\0"
VALUE "FileVersion", SWT_FILE_VERSION
VALUE "InternalName", "SWT\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2006 IBM Corp. All Rights Reserved.\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2025 IBM Corp. All Rights Reserved.\0"
VALUE "OriginalFilename", SWT_ORG_FILENAME
VALUE "ProductName", "Standard Widget Toolkit\0"
VALUE "ProductVersion", "0,0,0,0\0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "windows.h"

VS_VERSION_INFO VERSIONINFO
FILEVERSION SWT_COMMA_VERSION
PRODUCTVERSION 0,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
Expand All @@ -33,9 +32,8 @@ BEGIN
BEGIN
VALUE "CompanyName", "Eclipse Foundation\0"
VALUE "FileDescription", "SWT for Windows native library\0"
VALUE "FileVersion", SWT_FILE_VERSION
VALUE "InternalName", "SWT\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2006 IBM Corp. All Rights Reserved.\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2025 IBM Corp. All Rights Reserved.\0"
VALUE "OriginalFilename", SWT_ORG_FILENAME
VALUE "ProductName", "Standard Widget Toolkit\0"
VALUE "ProductVersion", "0,0,0,0\0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ AWT_LIB = lib$(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).jnilib
AWT_OBJECTS = swt_awt.o

#SWT_DEBUG = -g
CFLAGS = -c -xobjective-c -Wall $(ARCHS) -DSWT_VERSION=$(SWT_VERSION) $(SWT_DEBUG) -DUSE_ASSEMBLER -DCOCOA -DATOMIC \
CFLAGS = -c -xobjective-c -Wall $(ARCHS) $(SWT_DEBUG) -DUSE_ASSEMBLER -DCOCOA -DATOMIC \
-I $(SWT_JAVA_HOME)/include \
-I $(SWT_JAVA_HOME)/include/darwin \
-I /System/Library/Frameworks/Cocoa.framework/Headers \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ WEBKIT_OBJECTS = swt.o webkitgtk.o webkitgtk_structs.o webkitgtk_stats.o webkitg
GLX_OBJECTS = swt.o glx.o glx_structs.o glx_stats.o

CFLAGS := $(CFLAGS) \
-DSWT_VERSION=$(SWT_VERSION) \
$(SWT_DEBUG) \
$(SWT_WEBKIT_DEBUG) \
-DLINUX -DGTK \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<!--<gdiScaling xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">true</gdiScaling>-->
</windowsSettings>
</application>
<!--Specifically targeting your application for Windows 8.1 or Windows 10: https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx -->
<!--Specifically targeting your application for Windows 8.1 or Windows 10: https://learn.microsoft.com/en-us/windows/win32/sysinfo/targeting-your-application-at-windows-8-1 -->
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 -->
<!-- Windows 10 and Windows 11 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ WGL_OBJS = wgl.obj wgl_structs.obj wgl_stats.obj

#CFLAGS = $(cdebug) $(cflags) $(cvarsmt) $(CFLAGS) \
CFLAGS = -O1 /WX /W4 -DNDEBUG -DUNICODE -D_UNICODE /c $(cflags) $(cvarsmt) $(CFLAGS) \
-DSWT_VERSION=$(maj_ver)$(min_ver) -DSWT_REVISION=$(rev) -DUSE_ASSEMBLER \
-DUSE_ASSEMBLER \
/I"$(SWT_JAVA_HOME)\include" /I"$(SWT_JAVA_HOME)\include\win32" /I.

RCFLAGS = $(rcflags) $(rcvars) $(RCFLAGS) -DSWT_FILE_VERSION=\"$(maj_ver).$(min_ver).$(rev).0\" -DSWT_COMMA_VERSION=$(comma_ver)
RCFLAGS = $(rcflags) $(rcvars) $(RCFLAGS)
ldebug = /RELEASE /INCREMENTAL:NO /NOLOGO
dlllflags = -dll /WX
guilibsmt = kernel32.lib ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib user32.lib gdi32.lib comdlg32.lib winspool.lib
Expand Down
10 changes: 0 additions & 10 deletions bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@

#define OS_NATIVE(func) Java_org_eclipse_swt_internal_win32_OS_##func

__declspec(dllexport) HRESULT DllGetVersion(DLLVERSIONINFO *dvi);
HRESULT DllGetVersion(DLLVERSIONINFO *dvi)
{
dvi->dwMajorVersion = SWT_VERSION / 1000;
dvi->dwMinorVersion = SWT_VERSION % 1000;
dvi->dwBuildNumber = SWT_REVISION;
dvi->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
return 1;
}

HINSTANCE g_hInstance = NULL;
BOOL WINAPI DllMain(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{
Expand Down
4 changes: 1 addition & 3 deletions bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
MANIFEST_RESOURCE_ID RT_MANIFEST "javaw.exe.manifest"

VS_VERSION_INFO VERSIONINFO
FILEVERSION SWT_COMMA_VERSION
PRODUCTVERSION 0,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
Expand All @@ -37,9 +36,8 @@ BEGIN
BEGIN
VALUE "CompanyName", "Eclipse Foundation\0"
VALUE "FileDescription", "SWT for Windows native library\0"
VALUE "FileVersion", SWT_FILE_VERSION
VALUE "InternalName", "SWT\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2011 IBM Corp. All Rights Reserved.\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2025 IBM Corp. All Rights Reserved.\0"
VALUE "OriginalFilename", SWT_ORG_FILENAME
VALUE "ProductName", "Standard Widget Toolkit\0"
VALUE "ProductVersion", "0,0,0,0\0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "windows.h"

VS_VERSION_INFO VERSIONINFO
FILEVERSION SWT_COMMA_VERSION
PRODUCTVERSION 0,0,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
Expand All @@ -33,9 +32,8 @@ BEGIN
BEGIN
VALUE "CompanyName", "Eclipse Foundation\0"
VALUE "FileDescription", "SWT for Windows native library\0"
VALUE "FileVersion", SWT_FILE_VERSION
VALUE "InternalName", "SWT\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2011 IBM Corp. All Rights Reserved.\0"
VALUE "LegalCopyright", "Copyright (c) 2000, 2025 IBM Corp. All Rights Reserved.\0"
VALUE "OriginalFilename", SWT_ORG_FILENAME
VALUE "ProductName", "Standard Widget Toolkit\0"
VALUE "ProductVersion", "0,0,0,0\0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
maj_ver=4
min_ver=969
rev=8
comma_ver=4,969,8,0
Loading