Kaydet (Commit) 727e2e71 authored tarafından Michael Stahl's avatar Michael Stahl

normalize values of WITH_GALLERY_BUILD

... and remove the unimplemented "package" option.

Change-Id: I2b0cfcdc040b653fe0c4cd061ae4e0d7f745068c
üst 593ff642
...@@ -56,7 +56,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_toolset,\ ...@@ -56,7 +56,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_toolset,\
ure \ ure \
xmlreader \ xmlreader \
$(call gb_Helper_optional_for_host,DESKTOP, \ $(call gb_Helper_optional_for_host,DESKTOP, \
$(if $(filter YES,$(WITH_GALLERY_BUILD)), \ $(if $(WITH_GALLERY_BUILD), \
avmedia \ avmedia \
basebmp \ basebmp \
basic \ basic \
......
...@@ -1371,9 +1371,8 @@ AC_ARG_WITH(linked-git, ...@@ -1371,9 +1371,8 @@ AC_ARG_WITH(linked-git,
AC_ARG_WITH(galleries, AC_ARG_WITH(galleries,
AS_HELP_STRING([--with-galleries], AS_HELP_STRING([--with-galleries],
[Specify how galleries should be built. It is possible either to [Specify how galleries should be built. It is possible either to
build these internally from source ("build"), or to (optionally build these internally from source ("build"),
download and) unpack them them from a package ("package"), or or to disable them ("no")]),
to disable them ("no")]),
) )
AC_ARG_WITH(theme, AC_ARG_WITH(theme,
...@@ -2401,11 +2400,8 @@ dnl =================================================================== ...@@ -2401,11 +2400,8 @@ dnl ===================================================================
AC_MSG_CHECKING([how to build and package galleries]) AC_MSG_CHECKING([how to build and package galleries])
if test -n "${with_galleries}"; then if test -n "${with_galleries}"; then
if test "$with_galleries" = "build"; then if test "$with_galleries" = "build"; then
WITH_GALLERY_BUILD=YES WITH_GALLERY_BUILD=TRUE
AC_MSG_RESULT([build from source images internally]) AC_MSG_RESULT([build from source images internally])
elif test "$with_galleries" = "package"; then
WITH_GALLERY_BUILD=PACKAGE
AC_MSG_ERROR([FIXME - implement build from pre-compiled package])
elif test "$with_galleries" = "no"; then elif test "$with_galleries" = "no"; then
WITH_GALLERY_BUILD= WITH_GALLERY_BUILD=
AC_MSG_RESULT([disable non-internal gallery build]) AC_MSG_RESULT([disable non-internal gallery build])
...@@ -2414,7 +2410,7 @@ if test -n "${with_galleries}"; then ...@@ -2414,7 +2410,7 @@ if test -n "${with_galleries}"; then
fi fi
else else
if test $_os != iOS -a $_os != Android; then if test $_os != iOS -a $_os != Android; then
WITH_GALLERY_BUILD=YES WITH_GALLERY_BUILD=TRUE
AC_MSG_RESULT([internal src images for desktop]) AC_MSG_RESULT([internal src images for desktop])
else else
WITH_GALLERY_BUILD= WITH_GALLERY_BUILD=
......
...@@ -92,7 +92,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\ ...@@ -92,7 +92,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\
$(call gb_Helper_optional,XSLTML,xsltml) \ $(call gb_Helper_optional,XSLTML,xsltml) \
$(call gb_Helper_optional,ZLIB,zlib) \ $(call gb_Helper_optional,ZLIB,zlib) \
$(call gb_Helper_optional_for_host,DESKTOP, \ $(call gb_Helper_optional_for_host,DESKTOP, \
$(if $(filter YES,$(WITH_GALLERY_BUILD)), \ $(if $(WITH_GALLERY_BUILD), \
$(call gb_Helper_optional,HARFBUZZ,harfbuzz) \ $(call gb_Helper_optional,HARFBUZZ,harfbuzz) \
$(call gb_Helper_optional,LCMS2,lcms2) \ $(call gb_Helper_optional,LCMS2,lcms2) \
$(call gb_Helper_optional,NSS,nss) \ $(call gb_Helper_optional,NSS,nss) \
......
...@@ -46,7 +46,7 @@ $(eval $(call gb_Module_add_l10n_targets,extras,\ ...@@ -46,7 +46,7 @@ $(eval $(call gb_Module_add_l10n_targets,extras,\
AllLangPackage_autotextshare \ AllLangPackage_autotextshare \
)) ))
ifeq ($(WITH_GALLERY_BUILD),YES) ifneq ($(WITH_GALLERY_BUILD),)
$(eval $(call gb_Module_add_targets,extras,\ $(eval $(call gb_Module_add_targets,extras,\
Gallery_arrows \ Gallery_arrows \
Gallery_computers \ Gallery_computers \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment