Kaydet (Commit) 0c99c1c2 authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Michael Meeks

gallery: allow disabling the from-source build in configure

Change-Id: Ic390ceeb9f52953d5dea6999b194956e90eb4629
üst fbf2e9f7
...@@ -546,6 +546,7 @@ export WITH_EXTRA_GALLERY=@WITH_EXTRA_GALLERY@ ...@@ -546,6 +546,7 @@ export WITH_EXTRA_GALLERY=@WITH_EXTRA_GALLERY@
export WITH_EXTRA_SAMPLE=@WITH_EXTRA_SAMPLE@ export WITH_EXTRA_SAMPLE=@WITH_EXTRA_SAMPLE@
export WITH_EXTRA_TEMPLATE=@WITH_EXTRA_TEMPLATE@ export WITH_EXTRA_TEMPLATE=@WITH_EXTRA_TEMPLATE@
export WITH_FONTS=@WITH_FONTS@ export WITH_FONTS=@WITH_FONTS@
export WITH_GALLERY_BUILD=@WITH_GALLERY_BUILD@
export WITH_GSSAPI=@WITH_GSSAPI@ export WITH_GSSAPI=@WITH_GSSAPI@
export WITH_HELPPACK_INTEGRATION=@WITH_HELPPACK_INTEGRATION@ export WITH_HELPPACK_INTEGRATION=@WITH_HELPPACK_INTEGRATION@
export WITH_KRB5=@WITH_KRB5@ export WITH_KRB5=@WITH_KRB5@
......
...@@ -1215,6 +1215,14 @@ AC_ARG_WITH(referenced-git, ...@@ -1215,6 +1215,14 @@ AC_ARG_WITH(referenced-git,
GIT_REFERENCE_SRC=$withval , GIT_REFERENCE_SRC=$withval ,
) )
AC_ARG_WITH(galleries,
AS_HELP_STRING([--with-galleries],
[Specify how galleries should be built. It is possible either to
build these internally from source ("build"), or to (optionally
download and) unpack them them from a package ("package"), or
to disable them ("no")]),
)
AC_ARG_WITH(theme, AC_ARG_WITH(theme,
AS_HELP_STRING([--with-theme="theme1 theme2..."], AS_HELP_STRING([--with-theme="theme1 theme2..."],
[Choose which themes to include. By default those themes with an '*' are included. [Choose which themes to include. By default those themes with an '*' are included.
...@@ -2200,6 +2208,34 @@ fi ...@@ -2200,6 +2208,34 @@ fi
# remenber SYSBASE value # remenber SYSBASE value
AC_SUBST(SYSBASE) AC_SUBST(SYSBASE)
dnl ===================================================================
dnl Sort out various gallery compilation options
dnl ===================================================================
AC_MSG_CHECKING([how to build and package galleries])
if test -n "${with_galleries}"; then
if test "$with_galleries" = "build"; then
WITH_GALLERY_BUILD=YES
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
WITH_GALLERY_BUILD=
AC_MSG_RESULT([disable non-internal gallery build])
else
AC_MSG_ERROR([unknown value --with-galleries=$with_galleries])
fi
else
if test $_os != iOS -a $_os != Android; then
WITH_GALLERY_BUILD=YES
AC_MSG_RESULT([internal src images for desktop])
else
WITH_GALLERY_BUILD=
AC_MSG_RESULT([disable src imgage build for non-desktop])
fi
fi
AC_SUBST(WITH_GALLERY_BUILD)
dnl =================================================================== dnl ===================================================================
dnl Checks if ccache is available dnl Checks if ccache is available
dnl =================================================================== dnl ===================================================================
......
...@@ -43,7 +43,7 @@ $(eval $(call gb_Module_add_targets,extras,\ ...@@ -43,7 +43,7 @@ $(eval $(call gb_Module_add_targets,extras,\
Package_wordbook \ Package_wordbook \
)) ))
ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) ifeq ($(WITH_GALLERY_BUILD),YES)
$(eval $(call gb_Module_add_targets,extras,\ $(eval $(call gb_Module_add_targets,extras,\
Gallery_arrows \ Gallery_arrows \
Gallery_computers \ Gallery_computers \
......
...@@ -69,6 +69,7 @@ $(eval $(call gb_InstallModule_define_if_set,scp2/ooo,\ ...@@ -69,6 +69,7 @@ $(eval $(call gb_InstallModule_define_if_set,scp2/ooo,\
SYSTEM_REDLAND \ SYSTEM_REDLAND \
SYSTEM_SNDFILE \ SYSTEM_SNDFILE \
SYSTEM_STDLIBS \ SYSTEM_STDLIBS \
WITH_GALLERY_BUILD \
WITH_MOZAB4WIN \ WITH_MOZAB4WIN \
WITH_MYSPELL_DICTS \ WITH_MYSPELL_DICTS \
)) ))
......
...@@ -161,6 +161,8 @@ File gid_File_Extra_Gallroot ...@@ -161,6 +161,8 @@ File gid_File_Extra_Gallroot
Name = "extras_gallroot.filelist"; Name = "extras_gallroot.filelist";
End End
#if defined (WITH_GALLERY_BUILD)
GALLERY_FILELIST(arrows) GALLERY_FILELIST(arrows)
GALLERY_FILELIST(computers) GALLERY_FILELIST(computers)
GALLERY_FILELIST(diagrams) GALLERY_FILELIST(diagrams)
...@@ -173,6 +175,8 @@ GALLERY_FILELIST(symbols) ...@@ -173,6 +175,8 @@ GALLERY_FILELIST(symbols)
GALLERY_FILELIST(transportation) GALLERY_FILELIST(transportation)
GALLERY_FILELIST(txtshapes) GALLERY_FILELIST(txtshapes)
#endif
File gid_File_Extra_Gallmytheme File gid_File_Extra_Gallmytheme
Dir = FILELIST_DIR; Dir = FILELIST_DIR;
USER_FILE_BODY; USER_FILE_BODY;
......
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