Kaydet (Commit) bf06908b authored tarafından Matúš Kukan's avatar Matúš Kukan

further reduce GUIBASE usage; don't set it to headless

Change-Id: I76916c15f380bd80e823845f52f32a1c444079da
üst a714cf18
...@@ -3966,7 +3966,7 @@ if test "$enable_headless" = "yes"; then ...@@ -3966,7 +3966,7 @@ if test "$enable_headless" = "yes"; then
if test "$GUIBASE" != "unx"; then if test "$GUIBASE" != "unx"; then
AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice with --enable-headless]) AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice with --enable-headless])
fi fi
GUIBASE=headless GUIBASE=not-used
fi fi
INPATH="${OUTPATH}${PROEXT}" INPATH="${OUTPATH}${PROEXT}"
......
...@@ -35,15 +35,13 @@ $(eval $(call gb_Executable_add_libs,oosplash,\ ...@@ -35,15 +35,13 @@ $(eval $(call gb_Executable_add_libs,oosplash,\
endif endif
ifneq ($(GUIBASE),headless) ifneq ($(ENABLE_HEADLESS),TRUE)
ifneq ($(OS),WNT) ifneq ($(OS),WNT)
$(eval $(call gb_Executable_add_libs,oosplash,\ $(eval $(call gb_Executable_add_libs,oosplash,\
-lX11 \ -lX11 \
)) ))
endif endif
endif
ifneq ($(ENABLE_HEADLESS),TRUE)
$(eval $(call gb_Executable_add_defs,oosplash,\ $(eval $(call gb_Executable_add_defs,oosplash,\
-DENABLE_QUICKSTART_LIBPNG \ -DENABLE_QUICKSTART_LIBPNG \
......
...@@ -145,7 +145,7 @@ $(eval $(call gb_Rdb_add_components,services,\ ...@@ -145,7 +145,7 @@ $(eval $(call gb_Rdb_add_components,services,\
accessibility/bridge/org/openoffice/accessibility/java_uno_accessbridge \ accessibility/bridge/org/openoffice/accessibility/java_uno_accessbridge \
) \ ) \
) \ ) \
$(if $(filter headless,$(GUIBASE)), \ $(if $(ENABLE_HEADLESS), \
vcl/vcl.headless \ vcl/vcl.headless \
) \ ) \
$(if $(filter-out WNT,$(OS)), \ $(if $(filter-out WNT,$(OS)), \
...@@ -295,7 +295,7 @@ $(eval $(call gb_Rdb_add_components,services,\ ...@@ -295,7 +295,7 @@ $(eval $(call gb_Rdb_add_components,services,\
) \ ) \
$(if $(filter-out MACOSX WNT,$(OS)), \ $(if $(filter-out MACOSX WNT,$(OS)), \
desktop/unx/splash/splash \ desktop/unx/splash/splash \
$(if $(filter-out headless,$(GUIBASE)), \ $(if $(ENABLE_HEADLESS),, \
shell/source/backends/desktopbe/desktopbe1 \ shell/source/backends/desktopbe/desktopbe1 \
vcl/vcl.unx \ vcl/vcl.unx \
) \ ) \
......
...@@ -128,7 +128,7 @@ $(eval $(call gb_Library_add_cxxflags,tk,\ ...@@ -128,7 +128,7 @@ $(eval $(call gb_Library_add_cxxflags,tk,\
$(gb_OBJCXXFLAGS))) $(gb_OBJCXXFLAGS)))
endif endif
ifneq ($(GUIBASE),headless) ifeq (,$(ENABLE_HEADLESS))
ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS))) ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS)))
$(eval $(call gb_Library_add_libs,tk,\ $(eval $(call gb_Library_add_libs,tk,\
-lX11 \ -lX11 \
......
...@@ -27,7 +27,7 @@ else ifeq ($(OS),ANDROID) ...@@ -27,7 +27,7 @@ else ifeq ($(OS),ANDROID)
$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.android)) $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.android))
else ifeq ($(OS),IOS) else ifeq ($(OS),IOS)
$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.ios)) $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.ios))
else ifeq ($(GUIBASE),headless) else ifeq ($(ENABLE_HEADLESS),TRUE)
$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.headless)) $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.headless))
else else
$(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx)) $(eval $(call gb_Library_set_componentfile,vcl,vcl/vcl.unx))
...@@ -324,12 +324,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -324,12 +324,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
)) ))
# handle X11 platforms, which have additional files and possibly system graphite # handle X11 platforms, which have additional files and possibly system graphite
ifeq ($(GUIBASE),unx) ifneq (,$(or $(filter unx,$(GUIBASE)),$(ENABLE_HEADLESS)))
$(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/generic/glyphs/graphite_serverfont \
))
endif
ifeq ($(GUIBASE),headless)
$(eval $(call gb_Library_add_exception_objects,vcl,\ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/generic/glyphs/graphite_serverfont \ vcl/generic/glyphs/graphite_serverfont \
)) ))
...@@ -538,7 +533,7 @@ $(eval $(call gb_Library_use_externals,vcl,\ ...@@ -538,7 +533,7 @@ $(eval $(call gb_Library_use_externals,vcl,\
)) ))
endif endif
ifeq ($(GUIBASE),headless) ifeq ($(ENABLE_HEADLESS),TRUE)
$(eval $(call gb_Library_add_defs,vcl,\ $(eval $(call gb_Library_add_defs,vcl,\
-DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \ -DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
-DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \ -DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
......
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