Skip to content

Commit

Permalink
[Build] Unify make targets for native binaries build
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Jan 26, 2024
1 parent 28ac0b1 commit 7ab5517
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pipeline {
withEnv(['PATH=C:\\tools\\cygwin\\bin;' + env.PATH]) {
bat '''
mkdir libs
cmd /c build.bat x86_64 all install
cmd /c build.bat install
ls -1R libs
'''
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ src.includes = about.html,about_files/
pom.model.property.os=macosx
pom.model.property.ws=cocoa
pom.model.property.arch=aarch64
pom.model.property.targets=install
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ src.includes = about.html,about_files/
pom.model.property.os=macosx
pom.model.property.ws=cocoa
pom.model.property.arch=x86_64
pom.model.property.targets=install
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ src.includes = about.html,about_files/
pom.model.property.os=linux
pom.model.property.ws=gtk
pom.model.property.arch=aarch64
pom.model.property.targets=install
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ src.includes = about.html,about_files/
pom.model.property.os=linux
pom.model.property.ws=gtk
pom.model.property.arch=loongarch64
pom.model.property.targets=install
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ src.includes = about.html,about_files/
pom.model.property.os=linux
pom.model.property.ws=gtk
pom.model.property.arch=ppc64le
pom.model.property.targets=install
1 change: 0 additions & 1 deletion binaries/org.eclipse.swt.gtk.linux.x86_64/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ src.includes = about.html,about_files/
pom.model.property.os=linux
pom.model.property.ws=gtk
pom.model.property.arch=x86_64
pom.model.property.targets=install
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ src.includes = about.html,about_files/
pom.model.property.os=win32
pom.model.property.ws=win32
pom.model.property.arch=x86_64
pom.model.property.targets=x86_64 all install
6 changes: 2 additions & 4 deletions binaries/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@
<exec dir="${build_dir}" executable="${build_dir}/build.bat" failonerror="true">
<env key="SWT_JAVA_HOME" value="${SWT_JAVA_HOME}"/>
<env key="OUTPUT_DIR" value="${project.basedir}"/>
<arg line="${targets}"/>
<arg line="clean"/>
<arg line="install clean"/>
</exec>
</then>
<else>
Expand All @@ -161,8 +160,7 @@
<env key="OUTPUT_DIR" value="${project.basedir}"/>
<env key="GTK_VERSION" value="${gtk_version}"/>
<env key="MODEL" value="${arch}"/>
<arg line="${targets}"/>
<arg line="clean"/>
<arg line="install clean"/>
</exec>
</else>
</if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ IF NOT EXIST "%SWT_JAVA_HOME%" (
)

@rem -----------------------
IF NOT "x.%1"=="x.x86_64" (
CALL :ECHO "ERROR: 32-bit builds are no longer supported."
EXIT /B 1
)

set PROCESSOR_ARCHITECTURE=AMD64
IF "x.%OUTPUT_DIR%"=="x." set OUTPUT_DIR=..\..\..\org.eclipse.swt.win32.win32.x86_64

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ swt_awt.res:
swt_wgl.res:
rc $(RCFLAGS) -DSWT_ORG_FILENAME=\"$(WGL_LIB)\" -r -fo swt_wgl.res swt_wgl.rc

install:
install: all
copy *.dll "$(OUTPUT_DIR)"

clean:
Expand Down

0 comments on commit 7ab5517

Please sign in to comment.