Don't lock galleries build into DESKTOP

And add the missing dependency of Executable_gengal on
Package_svx_gengal, so the actual executable script is
created in instdir_for_build for the cross-toolset.

Change-Id: I98ea1d58273c871f0a3b804a93970eedfb7f8908
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108108
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
This commit is contained in:
Jan-Marek Glogowski
2020-12-21 16:28:29 +01:00
parent 7206de4f3d
commit 5de0f4e7b5
6 changed files with 45 additions and 35 deletions

View File

@@ -904,7 +904,7 @@ $(eval $(call gb_Helper_register_packages_for_install,ooo,\
sfx2_emojiconfig \
$(call gb_Helper_optional,DESKTOP,\
$(if $(filter-out WNT,$(OS)),$(if $(ENABLE_MACOSX_SANDBOX),,shell_senddoc))) \
$(call gb_Helper_optional,DESKTOP,$(if $(filter-out MACOSX WNT,$(OS)),svx_gengal)) \
$(call gb_Helper_optional,DESKTOP,$(if $(filter-out EMSCRIPTEN MACOSX WNT,$(OS)),svx_gengal)) \
$(if $(USING_X11),vcl_fontunxppds) \
$(if $(filter $(OS),MACOSX),vcl_osxres) \
xmloff_dtd \

View File

@@ -56,38 +56,38 @@ $(eval $(call gb_Module_add_moduledirs,cross_toolset,\
unotools \
ure \
xmlreader \
$(if $(WITH_GALLERY_BUILD), \
avmedia \
basic \
canvas \
configmgr \
connectivity \
cppcanvas \
drawinglayer \
editeng \
emfio \
filter \
framework \
linguistic \
officecfg \
package \
postprocess \
sfx2 \
shell \
sot \
svgio \
svl \
svtools \
svx \
toolkit \
ucb \
unoxml \
uui \
vcl \
xmloff \
xmlscript \
) \
$(call gb_Helper_optional_for_host,DESKTOP, \
$(if $(WITH_GALLERY_BUILD), \
avmedia \
basic \
canvas \
configmgr \
connectivity \
cppcanvas \
drawinglayer \
editeng \
emfio \
filter \
framework \
linguistic \
officecfg \
package \
postprocess \
sfx2 \
shell \
sot \
svgio \
svl \
svtools \
svx \
toolkit \
ucb \
unoxml \
uui \
vcl \
xmloff \
xmlscript \
) \
helpcompiler \
xmlhelp \
) \

View File

@@ -2905,10 +2905,10 @@ AC_SUBST(SYSBASE)
dnl ===================================================================
dnl Sort out various gallery compilation options
dnl ===================================================================
WITH_GALLERY_BUILD=TRUE
AC_MSG_CHECKING([how to build and package galleries])
if test -n "${with_galleries}"; then
if test "$with_galleries" = "build"; then
WITH_GALLERY_BUILD=TRUE
AC_MSG_RESULT([build from source images internally])
elif test "$with_galleries" = "no"; then
WITH_GALLERY_BUILD=
@@ -2918,7 +2918,6 @@ if test -n "${with_galleries}"; then
fi
else
if test $_os != iOS -a $_os != Android; then
WITH_GALLERY_BUILD=TRUE
AC_MSG_RESULT([internal src images for desktop])
else
WITH_GALLERY_BUILD=
@@ -5188,6 +5187,7 @@ if test "$cross_compiling" = "yes"; then
fi
test -n "$TARFILE_LOCATION" && sub_conf_opts="$sub_conf_opts --with-external-tar=$TARFILE_LOCATION"
test "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" && sub_conf_opts="$sub_conf_opts --with-system-icu"
test "$with_galleries" = "no" -o -z "$WITH_GALLERY_BUILD" && sub_conf_opts="$sub_conf_opts --with-galleries=no"
sub_conf_opts="$sub_conf_opts $with_build_platform_configure_options"
# Don't bother having configure look for stuff not needed for the build platform anyway

View File

@@ -19,6 +19,7 @@ gb_BUILD_TOOLS = \
gencoll_rule \
genconv_dict \
gendict \
$(if $(WITH_GALLERY_BUILD),gengal) \
genindex_data \
helpex \
idxdict \
@@ -33,7 +34,6 @@ gb_BUILD_TOOLS = \
unoidl-write \
xrmex \
$(call gb_Helper_optional_for_host,DESKTOP, \
gengal \
HelpIndexer \
HelpLinker \
lngconvex \

View File

@@ -29,6 +29,10 @@ $(eval $(call gb_Executable_use_external,gengal,boost_headers))
$(eval $(call gb_Executable_use_sdk_api,gengal))
ifneq (,$(filter-out MACOSX WNT,$(OS)))
$(eval $(call gb_Executable_use_package,gengal,svx_gengal))
endif
$(eval $(call gb_Executable_use_libraries,gengal,\
basegfx \
sal \

View File

@@ -51,7 +51,13 @@ $(eval $(call gb_Module_add_targets,svx,\
$(if $(filter-out MACOSX WNT,$(OS)), \
Package_gengal) \
))
else # !DESKTOP
ifeq ($(WITH_GALLERY_BUILD),TRUE)
$(eval $(call gb_Module_add_targets_for_build,svx,\
Executable_gengal \
))
endif
endif # !DESKTOP
$(eval $(call gb_Module_add_subsequentcheck_targets,svx,\
JunitTest_svx_unoapi \