# HG changeset patch # User Jiri Vanek # Date 1551099634 -3600 # Node ID 970c439b2553a925ec7b82423647ff2182c9d6b5 # Parent a43eeeeafe53e4416bd79de8ea6d31b4b3934c10 Allowed cross-build of bat launchers on linux systems * .Makefile: some if WINDOWS changed to if WINDOWS_OR_INCLUDE_BATS * configure.ac: introduced --enable-bats-on-linux which (or if host is windows) set WINDOWS_OR_INCLUDE_BATS to true diff -r a43eeeeafe53 -r 970c439b2553 ChangeLog --- a/ChangeLog Mon Feb 25 13:56:53 2019 +0100 +++ b/ChangeLog Mon Feb 25 14:00:34 2019 +0100 @@ -1,3 +1,9 @@ +2019-02-07 Jiri Vanek + + Allowed cross-build of bat launchers on linux systems + * .Makefile: some if WINDOWS changed to if WINDOWS_OR_INCLUDE_BATS + * configure.ac: introduced --enable-bats-on-linux which (or if host is windows) set WINDOWS_OR_INCLUDE_BATS to true + 2019-02-07 Jiri Vanek Added protection against to small applets. Enhanced understanding of properties like width/height diff -r a43eeeeafe53 -r 970c439b2553 Makefile.am --- a/Makefile.am Mon Feb 25 13:56:53 2019 +0100 +++ b/Makefile.am Mon Feb 25 14:00:34 2019 +0100 @@ -21,7 +21,6 @@ export TOP_SRC_DIR := $(shell cygpath -p -m "$(abs_top_srcdir)") export prefix := $(shell cygpath -p -m "$(prefix)") export CPA="-v" - WIN_LAUNCHERS=launcher.build/$(javaws).bat launcher.build/$(itweb_settings).bat launcher.build/$(policyeditor).bat else export TOP_BUILD_DIR = $(abs_top_builddir) export TOP_SRC_DIR = $(abs_top_srcdir) @@ -29,6 +28,12 @@ WIN_LAUNCHERS= endif +if WINDOWS_OR_INCLUDE_BATS + WIN_LAUNCHERS=launcher.build/$(javaws).bat launcher.build/$(itweb_settings).bat launcher.build/$(policyeditor).bat +else + WIN_LAUNCHERS= +endif + if ENABLE_SHELL_LAUNCHERS SHELL_LUNCHERS=$(WIN_LAUNCHERS) launcher.build/$(javaws).sh launcher.build/$(itweb_settings).sh launcher.build/$(policyeditor).sh else @@ -377,7 +382,7 @@ ${INSTALL_PROGRAM} launcher.build/$(javaws).sh $(DESTDIR)$(bindir) ${INSTALL_PROGRAM} launcher.build/$(itweb_settings).sh $(DESTDIR)$(bindir) ${INSTALL_PROGRAM} launcher.build/$(policyeditor).sh $(DESTDIR)$(bindir) -if WINDOWS +if WINDOWS_OR_INCLUDE_BATS ${INSTALL_PROGRAM} launcher.build/$(javaws).bat $(DESTDIR)$(bindir) ${INSTALL_PROGRAM} launcher.build/$(itweb_settings).bat $(DESTDIR)$(bindir) ${INSTALL_PROGRAM} launcher.build/$(policyeditor).bat $(DESTDIR)$(bindir) @@ -408,7 +413,7 @@ done) endif endif -if WINDOWS +if WINDOWS_OR_INCLUDE_BATS mkdir -p $(WIN_ALL_DEPS) mkdir -p $(WIN_RUN_DEPS) JARSVARS=` ( set -o posix ; set ) | sed "s/.*=//" | grep \\.jar$$ | grep \\.jar.exe$$ ` ; \ @@ -532,7 +537,7 @@ rm -r $(DESTDIR)$(SPLASH_PNG) rm -r $(ICONS_DEST_DIR)/javaws.png rm -rf $(DESTDIR)$(htmldir) -if WINDOWS +if WINDOWS_OR_INCLUDE_BATS rm -rf $(WIN_ALL_DEPS) rm -rf $(WIN_RUN_DEPS) rm -f $(DESTDIR)$(bindir)/$(javaws).bat @@ -928,7 +933,7 @@ PROGRAM_NAME=$(policyeditor) ;\ $(edit_launcher_script) < $< > $@ -if WINDOWS +if WINDOWS_OR_INCLUDE_BATS # TODO get rid of this copypaste launcher.build/$(javaws).bat: launcher/launchers.bat.in mkdir -p launcher.build diff -r a43eeeeafe53 -r 970c439b2553 configure.ac --- a/configure.ac Mon Feb 25 13:56:53 2019 +0100 +++ b/configure.ac Mon Feb 25 14:00:34 2019 +0100 @@ -60,6 +60,15 @@ AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"]) AM_CONDITIONAL([WINDOWS], [test "$build_windows" = "yes"]) +# the images built with this switch on linux, are not exactly windows friendly (see removed jars in make log, which are made in favor of clean linux build) +AC_MSG_CHECKING([whether to include also bat lunchers during linux build]) +AC_ARG_ENABLE([bats-on-linux], + [AS_HELP_STRING([--enable-bats-on-linux], + [enable generation of windows legacy bat launchers during linux build with legacy shell launchers. This is for subjects, who wish to do an custom build for windows and linuxes/mac users togethrer. Preparation of rest of the ITW then require a bit of love. This switch is not exactly supported option.])], + [WINDOWS_OR_INCLUDE_BATS="${enableval}"], [WINDOWS_OR_INCLUDE_BATS='no']) +AM_CONDITIONAL([WINDOWS_OR_INCLUDE_BATS], [test "x$WINDOWS_OR_INCLUDE_BATS" = "xyes" -o "$build_windows" = "yes" ]) +AC_MSG_RESULT(${WINDOWS_OR_INCLUDE_BATS}) + IT_CHECK_WITH_GCJ FIND_TOOL([ZIP], [zip]) FIND_JAVAC