Hello,
define HEADLESS globally as it is meant to be instead of sneaking into
module specific files.
thanks,
--
Riccardo Magliocchetti
From ab6904340fea291e3850f9f8fdedbd4c92a2a3b2 Mon Sep 17 00:00:00 2001
From: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Date: Mon, 20 Feb 2012 18:39:14 +0100
Subject: [PATCH] headless: cleanup HEADLESS definition
Define HEADLESS globally as it is meant to be.
---
config_host.mk.in | 1 +
configure.in | 2 --
solenv/gbuild/gbuild.mk | 4 ++++
vcl/Library_vcl.mk | 1 -
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/config_host.mk.in b/config_host.mk.in
index 1abf218..0385fa4 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -102,6 +102,7 @@ export ENABLE_GSTREAMER=@ENABLE_GSTREAMER@
export ENABLE_GTK3=@ENABLE_GTK3@
export ENABLE_GTK=@ENABLE_GTK@
export ENABLE_GTK_PRINT=@ENABLE_GTK_PRINT@
+export ENABLE_HEADLESS=@ENABLE_HEADLESS@
export ENABLE_KAB=@ENABLE_KAB@
export ENABLE_KDE4=@ENABLE_KDE4@
export ENABLE_KDE=@ENABLE_KDE@
diff --git a/configure.in b/configure.in
index 39fe207..0d320e7 100644
--- a/configure.in
+++ b/configure.in
@@ -8108,8 +8108,6 @@ if test "x$enable_headless" = "xyes"; then
ENABLE_HEADLESS="TRUE"
SCPDEFS="$SCPDEFS -DHEADLESS"
R="headless"
- # this does not work see hack in Library_vcl.mk
- AC_DEFINE(HEADLESS)
fi
AC_SUBST(ENABLE_HEADLESS)
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index b544f74..26eecbc 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -237,6 +237,10 @@ ifeq ($(strip $(ENABLE_GRAPHITE)),TRUE)
gb_GLOBALDEFS += -DENABLE_GRAPHITE
endif
+ifeq ($(strip $(ENABLE_HEADLESS)),TRUE)
+gb_GLOBALDEFS += -DHEADLESS
+endif
+
ifeq ($(HAVE_THREADSAFE_STATICS),TRUE)
gb_GLOBALDEFS += -DHAVE_THREADSAFE_STATICS
endif
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index 3420f7d..843dceb 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -456,7 +456,6 @@ $(eval $(call gb_Library_add_cxxflags,vcl,\
$$(FREETYPE_CFLAGS) \
))
$(eval $(call gb_Library_add_defs,vcl,\
- -DHEADLESS \
-DSAL_DLLPREFIX=\"$(gb_Library_SYSPRE)\" \
-DSAL_DLLPOSTFIX=\"$(gb_Library_OOOEXT)\" \
-D_XSALSET_LIBNAME=\"$(call gb_Library_get_runtime_filename,spa)\" \
--
1.7.5.4
Context
- [PATCH] headless: cleanup HEADLESS preprocessor definition · Riccardo Magliocchetti
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.