Reduce ENABLE_OPENGL / ENABLE_HEADLESS confusion
ENABLE_OPENGL means whether to enable the OpenGL slideshow transition code. It does not mean whether to enable use of OpenGL in general. So rename it to ENABLE_OPENGL_TRANSITIONS while at it. ENABLE_HEADLESS means whether to disable use of X11 and OpenGL on X11 (and Wayland) platforms, I think, meaning Linux and maybe Solaris and the BSDs. Maybe it should be renamed to DISABLE_X11_AND_OPENGL. Change-Id: Ibb30f51646b1bcc477fe691a3fa38c7a1e3944ae
This commit is contained in:
parent
1520d30268
commit
e13aead8a1
17 changed files with 28 additions and 30 deletions
|
@ -27,7 +27,7 @@ $(eval $(call gb_Library_use_externals,avmedia,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,avmedia,\
|
$(eval $(call gb_Library_use_externals,avmedia,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -30,7 +30,7 @@ $(eval $(call gb_Library_use_externals,chartcore,\
|
||||||
glm_headers \
|
glm_headers \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,chartcore,\
|
$(eval $(call gb_Library_use_externals,chartcore,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
@ -119,7 +119,7 @@ $(eval $(call gb_Library_add_exception_objects,chartcore,\
|
||||||
chart2/source/view/main/VPolarTransformation \
|
chart2/source/view/main/VPolarTransformation \
|
||||||
chart2/source/view/main/VTitle \
|
chart2/source/view/main/VTitle \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_add_exception_objects,chartcore,\
|
$(eval $(call gb_Library_add_exception_objects,chartcore,\
|
||||||
chart2/source/view/main/3DChartObjects \
|
chart2/source/view/main/3DChartObjects \
|
||||||
chart2/source/view/main/GL3DPlotterBase \
|
chart2/source/view/main/GL3DPlotterBase \
|
||||||
|
@ -264,12 +264,12 @@ else ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
|
||||||
$(eval $(call gb_Library_add_libs,chartcore,\
|
$(eval $(call gb_Library_add_libs,chartcore,\
|
||||||
$(DLOPEN_LIBS) \
|
$(DLOPEN_LIBS) \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_add_libs,chartcore,\
|
$(eval $(call gb_Library_add_libs,chartcore,\
|
||||||
-lGL \
|
-lGL \
|
||||||
-lX11 \
|
-lX11 \
|
||||||
))
|
))
|
||||||
endif #ENABLE_OPENGL
|
endif #!ENABLE_HEADLESS
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ $(eval $(call gb_Module_add_targets,chart2,\
|
||||||
Library_chartcontroller \
|
Library_chartcontroller \
|
||||||
Library_chartcore \
|
Library_chartcore \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Module_add_targets,chart2,\
|
$(eval $(call gb_Module_add_targets,chart2,\
|
||||||
Library_chartopengl \
|
Library_chartopengl \
|
||||||
Package_opengl \
|
Package_opengl \
|
||||||
|
|
|
@ -159,7 +159,7 @@ export ENABLE_ONLINE_UPDATE=@ENABLE_ONLINE_UPDATE@
|
||||||
export ENABLE_ONLINE_UPDATE_MAR=@ENABLE_ONLINE_UPDATE_MAR@
|
export ENABLE_ONLINE_UPDATE_MAR=@ENABLE_ONLINE_UPDATE_MAR@
|
||||||
export ENABLE_EXTENSION_UPDATE=@ENABLE_EXTENSION_UPDATE@
|
export ENABLE_EXTENSION_UPDATE=@ENABLE_EXTENSION_UPDATE@
|
||||||
export ENABLE_OOENV=@ENABLE_OOENV@
|
export ENABLE_OOENV=@ENABLE_OOENV@
|
||||||
export ENABLE_OPENGL=@ENABLE_OPENGL@
|
export ENABLE_OPENGL_TRANSITIONS=@ENABLE_OPENGL_TRANSITIONS@
|
||||||
export ENABLE_OPENGL_CANVAS=@ENABLE_OPENGL_CANVAS@
|
export ENABLE_OPENGL_CANVAS=@ENABLE_OPENGL_CANVAS@
|
||||||
export ENABLE_PCH=@ENABLE_PCH@
|
export ENABLE_PCH=@ENABLE_PCH@
|
||||||
export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
|
export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
|
||||||
|
|
14
configure.ac
14
configure.ac
|
@ -10451,29 +10451,29 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(ENABLE_VLC)
|
AC_SUBST(ENABLE_VLC)
|
||||||
|
|
||||||
# this is for opengl transitions in impress slideshow
|
ENABLE_OPENGL_TRANSITIONS=
|
||||||
ENABLE_OPENGL=
|
ENABLE_OPENGL_CANVAS=
|
||||||
if test $_os = iOS -o $_os = Android; then
|
if test $_os = iOS -o $_os = Android; then
|
||||||
: # disable
|
: # disable
|
||||||
elif test "$_os" = "Darwin"; then
|
elif test "$_os" = "Darwin"; then
|
||||||
# We use frameworks on Mac OS X, no need for detail checks
|
# We use frameworks on Mac OS X, no need for detail checks
|
||||||
ENABLE_OPENGL=TRUE
|
ENABLE_OPENGL_TRANSITIONS=TRUE
|
||||||
AC_DEFINE(HAVE_FEATURE_OPENGL,1)
|
AC_DEFINE(HAVE_FEATURE_OPENGL,1)
|
||||||
ENABLE_OPENGL_CANVAS=TRUE
|
ENABLE_OPENGL_CANVAS=TRUE
|
||||||
elif test $_os = WINNT; then
|
elif test $_os = WINNT; then
|
||||||
ENABLE_OPENGL=TRUE
|
ENABLE_OPENGL_TRANSITIONS=TRUE
|
||||||
AC_DEFINE(HAVE_FEATURE_OPENGL,1)
|
AC_DEFINE(HAVE_FEATURE_OPENGL,1)
|
||||||
ENABLE_OPENGL_CANVAS=TRUE
|
ENABLE_OPENGL_CANVAS=TRUE
|
||||||
else
|
else
|
||||||
if test "$USING_X11" = TRUE; then
|
if test "$USING_X11" = TRUE; then
|
||||||
AC_CHECK_LIB(GL, glBegin, [:], AC_MSG_ERROR([libGL required.]))
|
AC_CHECK_LIB(GL, glBegin, [:], AC_MSG_ERROR([libGL required.]))
|
||||||
ENABLE_OPENGL=TRUE
|
ENABLE_OPENGL_TRANSITIONS=TRUE
|
||||||
AC_DEFINE(HAVE_FEATURE_OPENGL,1)
|
AC_DEFINE(HAVE_FEATURE_OPENGL,1)
|
||||||
ENABLE_OPENGL_CANVAS=TRUE
|
ENABLE_OPENGL_CANVAS=TRUE
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(ENABLE_OPENGL)
|
AC_SUBST(ENABLE_OPENGL_TRANSITIONS)
|
||||||
AC_SUBST(ENABLE_OPENGL_CANVAS)
|
AC_SUBST(ENABLE_OPENGL_CANVAS)
|
||||||
|
|
||||||
dnl =================================================
|
dnl =================================================
|
||||||
|
@ -12838,7 +12838,7 @@ if test "$enable_mpl_subset" = "yes"; then
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
ENABLE_OPENGL=
|
ENABLE_OPENGL_TRANSITIONS=
|
||||||
|
|
||||||
if test "$enable_lpsolve" != "no" -o "x$ENABLE_LPSOLVE" = "xTRUE"; then
|
if test "$enable_lpsolve" != "no" -o "x$ENABLE_LPSOLVE" = "xTRUE"; then
|
||||||
AC_MSG_ERROR([need to --disable-lpsolve - calc linear programming solver.])
|
AC_MSG_ERROR([need to --disable-lpsolve - calc linear programming solver.])
|
||||||
|
|
|
@ -70,7 +70,7 @@ $(eval $(call gb_Library_use_externals,cui,\
|
||||||
icuuc \
|
icuuc \
|
||||||
icu_headers \
|
icu_headers \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,cui,\
|
$(eval $(call gb_Library_use_externals,cui,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -441,7 +441,7 @@ postprocess_FILES_onlineupdate := \
|
||||||
$(call gb_XcuModuleTarget_get_target,extensions/source/update/check)/org/openoffice/Office/Jobs-onlineupdate.xcu
|
$(call gb_XcuModuleTarget_get_target,extensions/source/update/check)/org/openoffice/Office/Jobs-onlineupdate.xcu
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_OPENGL_TRANSITIONS),TRUE)
|
||||||
postprocess_XCDS += ogltrans.xcd
|
postprocess_XCDS += ogltrans.xcd
|
||||||
postprocess_DEPS_ogltrans := main
|
postprocess_DEPS_ogltrans := main
|
||||||
postprocess_FILES_ogltrans := \
|
postprocess_FILES_ogltrans := \
|
||||||
|
|
|
@ -213,7 +213,7 @@ $(eval $(call gb_Rdb_add_components,services,\
|
||||||
extensions/source/update/check/updchk.uno \
|
extensions/source/update/check/updchk.uno \
|
||||||
extensions/source/update/ui/updchk \
|
extensions/source/update/ui/updchk \
|
||||||
) \
|
) \
|
||||||
$(if $(ENABLE_OPENGL), \
|
$(if $(ENABLE_OPENGL_TRANSITIONS), \
|
||||||
slideshow/source/engine/OGLTrans/ogltrans \
|
slideshow/source/engine/OGLTrans/ogltrans \
|
||||||
) \
|
) \
|
||||||
$(if $(ENABLE_TDE), \
|
$(if $(ENABLE_TDE), \
|
||||||
|
@ -229,10 +229,8 @@ $(eval $(call gb_Rdb_add_components,services,\
|
||||||
wizards/com/sun/star/wizards/report/report \
|
wizards/com/sun/star/wizards/report/report \
|
||||||
wizards/com/sun/star/wizards/table/table \
|
wizards/com/sun/star/wizards/table/table \
|
||||||
) \
|
) \
|
||||||
$(if $(ENABLE_OPENGL), \
|
$(if $(ENABLE_GLTF), \
|
||||||
$(if $(ENABLE_GLTF), \
|
$(call gb_Helper_optional,AVMEDIA,avmedia/source/opengl/avmediaogl) \
|
||||||
$(call gb_Helper_optional,AVMEDIA,avmedia/source/opengl/avmediaogl) \
|
|
||||||
) \
|
|
||||||
) \
|
) \
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ $(eval $(call gb_InstallModule_add_scpfiles,scp2/impress,\
|
||||||
))
|
))
|
||||||
|
|
||||||
$(eval $(call gb_InstallModule_add_scpfiles,scp2/impress,\
|
$(eval $(call gb_InstallModule_add_scpfiles,scp2/impress,\
|
||||||
$(if $(filter TRUE,$(ENABLE_OPENGL)),\
|
$(if $(filter TRUE,$(ENABLE_OPENGL_TRANSITIONS)),\
|
||||||
scp2/source/impress/module_ogltrans \
|
scp2/source/impress/module_ogltrans \
|
||||||
) \
|
) \
|
||||||
))
|
))
|
||||||
|
|
|
@ -29,7 +29,7 @@ $(eval $(call gb_Library_set_precompiled_header,slideshow,$(SRCDIR)/slideshow/in
|
||||||
$(eval $(call gb_Library_use_externals,slideshow,\
|
$(eval $(call gb_Library_use_externals,slideshow,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,slideshow,\
|
$(eval $(call gb_Library_use_externals,slideshow,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -12,7 +12,7 @@ $(eval $(call gb_Module_Module,slideshow))
|
||||||
$(eval $(call gb_Module_add_targets,slideshow,\
|
$(eval $(call gb_Module_add_targets,slideshow,\
|
||||||
Library_slideshow \
|
Library_slideshow \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_OPENGL_TRANSITIONS),TRUE)
|
||||||
$(eval $(call gb_Module_add_targets,slideshow,\
|
$(eval $(call gb_Module_add_targets,slideshow,\
|
||||||
Library_OGLTrans \
|
Library_OGLTrans \
|
||||||
Package_opengl \
|
Package_opengl \
|
||||||
|
|
|
@ -86,7 +86,7 @@ $(eval $(call gb_Library_use_externals,svxcore,\
|
||||||
icu_headers \
|
icu_headers \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,svxcore,\
|
$(eval $(call gb_Library_use_externals,svxcore,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -25,7 +25,7 @@ $(eval $(call gb_Library_use_externals,tk,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,tk,\
|
$(eval $(call gb_Library_use_externals,tk,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -17,7 +17,7 @@ $(eval $(call gb_CppunitTest_use_externals,vcl_bitmap_test,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
glm_headers \
|
glm_headers \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_CppunitTest_use_externals,vcl_bitmap_test,\
|
$(eval $(call gb_CppunitTest_use_externals,vcl_bitmap_test,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -13,7 +13,7 @@ $(eval $(call gb_Executable_use_externals,icontest,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
glm_headers \
|
glm_headers \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Executable_use_externals,icontest,\
|
$(eval $(call gb_Executable_use_externals,icontest,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -19,7 +19,7 @@ $(eval $(call gb_Executable_use_externals,vcldemo,\
|
||||||
boost_headers \
|
boost_headers \
|
||||||
glm_headers \
|
glm_headers \
|
||||||
))
|
))
|
||||||
ifeq ($(ENABLE_OPENGL),TRUE)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Executable_use_externals,vcldemo,\
|
$(eval $(call gb_Executable_use_externals,vcldemo,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
|
@ -122,7 +122,7 @@ $(eval $(call gb_Library_use_externals,vcl,\
|
||||||
lcms2 \
|
lcms2 \
|
||||||
mdds_headers \
|
mdds_headers \
|
||||||
))
|
))
|
||||||
ifneq ($(ENABLE_OPENGL)$(if $(filter ANDROID,$(OS)),TRUE),)
|
ifeq ($(ENABLE_HEADLESS),)
|
||||||
$(eval $(call gb_Library_use_externals,vcl,\
|
$(eval $(call gb_Library_use_externals,vcl,\
|
||||||
glew \
|
glew \
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue