gallery: allow disabling the from-source build in configure
Change-Id: Ic390ceeb9f52953d5dea6999b194956e90eb4629
This commit is contained in:
parent
fbf2e9f733
commit
0c99c1c2ca
@ -546,6 +546,7 @@ export WITH_EXTRA_GALLERY=@WITH_EXTRA_GALLERY@
|
||||
export WITH_EXTRA_SAMPLE=@WITH_EXTRA_SAMPLE@
|
||||
export WITH_EXTRA_TEMPLATE=@WITH_EXTRA_TEMPLATE@
|
||||
export WITH_FONTS=@WITH_FONTS@
|
||||
export WITH_GALLERY_BUILD=@WITH_GALLERY_BUILD@
|
||||
export WITH_GSSAPI=@WITH_GSSAPI@
|
||||
export WITH_HELPPACK_INTEGRATION=@WITH_HELPPACK_INTEGRATION@
|
||||
export WITH_KRB5=@WITH_KRB5@
|
||||
|
36
configure.ac
36
configure.ac
@ -1215,6 +1215,14 @@ AC_ARG_WITH(referenced-git,
|
||||
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,
|
||||
AS_HELP_STRING([--with-theme="theme1 theme2..."],
|
||||
[Choose which themes to include. By default those themes with an '*' are included.
|
||||
@ -2200,6 +2208,34 @@ fi
|
||||
# remenber SYSBASE value
|
||||
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 Checks if ccache is available
|
||||
dnl ===================================================================
|
||||
|
@ -43,7 +43,7 @@ $(eval $(call gb_Module_add_targets,extras,\
|
||||
Package_wordbook \
|
||||
))
|
||||
|
||||
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
|
||||
ifeq ($(WITH_GALLERY_BUILD),YES)
|
||||
$(eval $(call gb_Module_add_targets,extras,\
|
||||
Gallery_arrows \
|
||||
Gallery_computers \
|
||||
|
@ -69,6 +69,7 @@ $(eval $(call gb_InstallModule_define_if_set,scp2/ooo,\
|
||||
SYSTEM_REDLAND \
|
||||
SYSTEM_SNDFILE \
|
||||
SYSTEM_STDLIBS \
|
||||
WITH_GALLERY_BUILD \
|
||||
WITH_MOZAB4WIN \
|
||||
WITH_MYSPELL_DICTS \
|
||||
))
|
||||
|
@ -161,6 +161,8 @@ File gid_File_Extra_Gallroot
|
||||
Name = "extras_gallroot.filelist";
|
||||
End
|
||||
|
||||
#if defined (WITH_GALLERY_BUILD)
|
||||
|
||||
GALLERY_FILELIST(arrows)
|
||||
GALLERY_FILELIST(computers)
|
||||
GALLERY_FILELIST(diagrams)
|
||||
@ -173,6 +175,8 @@ GALLERY_FILELIST(symbols)
|
||||
GALLERY_FILELIST(transportation)
|
||||
GALLERY_FILELIST(txtshapes)
|
||||
|
||||
#endif
|
||||
|
||||
File gid_File_Extra_Gallmytheme
|
||||
Dir = FILELIST_DIR;
|
||||
USER_FILE_BODY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user