diff --git a/Jenkinsfile b/Jenkinsfile index c40f3460e63..9b10d262aa0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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']) { @@ -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]] } } diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.rc b/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.rc index 5686c8c4549..a1f3691a6a6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.rc +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/library/swt_awt.rc @@ -15,7 +15,6 @@ #include "windows.h" VS_VERSION_INFO VERSIONINFO - FILEVERSION SWT_COMMA_VERSION PRODUCTVERSION 0,0,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG @@ -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" diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/swt_wgl.rc b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/swt_wgl.rc index 5686c8c4549..a1f3691a6a6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/swt_wgl.rc +++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/swt_wgl.rc @@ -15,7 +15,6 @@ #include "windows.h" VS_VERSION_INFO VERSIONINFO - FILEVERSION SWT_COMMA_VERSION PRODUCTVERSION 0,0,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG @@ -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" diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak index 68fac4efdde..8ebba0add73 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/make_macosx.mak @@ -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 \ diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak index 1791209a504..860c99fdf8e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak @@ -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 \ diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest index 2778a89b49b..082ab74277c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest @@ -16,10 +16,10 @@ - + - + diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/make_win32.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/make_win32.mak index a9170f213b0..bc458f60731 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/make_win32.mak +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/make_win32.mak @@ -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 diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c index 9e2153bad02..5b30115c43c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/os_custom.c @@ -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) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.rc b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.rc index c27c8975a69..021a7d6f60a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.rc +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt.rc @@ -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 @@ -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" diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt_gdip.rc b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt_gdip.rc index 365e68629c7..aff3e580931 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt_gdip.rc +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/swt_gdip.rc @@ -15,7 +15,6 @@ #include "windows.h" VS_VERSION_INFO VERSIONINFO - FILEVERSION SWT_COMMA_VERSION PRODUCTVERSION 0,0,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG @@ -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" diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak b/bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak index 54318cd0b41..2287f202688 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak @@ -15,4 +15,3 @@ maj_ver=4 min_ver=969 rev=8 -comma_ver=4,969,8,0 \ No newline at end of file