[Libreoffice-commits] .: RepositoryExternal.mk sd/Library_sd.mk sd/source sfx2/Library_qstart.mk
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 30 06:01:03 PDT 2012
RepositoryExternal.mk | 13 +++++++++++++
sd/Library_sd.mk | 5 -----
sd/source/ui/remotecontrol/BluetoothServer.cxx | 5 ++---
sfx2/Library_qstart.mk | 1 +
4 files changed, 16 insertions(+), 8 deletions(-)
New commits:
commit aabc73d04a4c97272576edd4f73bde0cfa2392b2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Aug 30 13:58:15 2012 +0100
Do the same thing for gio as we do for dbus
and add -DENABLE_GIO to flags at build-time and an empty gb_LinkTarget__use_gio
when disabled.
Change-Id: I4adf0701a3d490cceecc00f6b81d6416a1e83088
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 96709fb..8401164 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1117,6 +1117,7 @@ endef
endif # SYSTEM_LPSOLVE
+ifeq ($(ENABLE_GIO),TRUE)
define gb_LinkTarget__use_gio
$(call gb_LinkTarget_set_include,$(1),\
@@ -1124,10 +1125,22 @@ $(call gb_LinkTarget_set_include,$(1),\
$(GIO_CFLAGS) \
)
+$(call gb_LinkTarget_add_defs,$(1),\
+ -DENABLE_GIO \
+)
+
$(call gb_LinkTarget_add_libs,$(1),$(GIO_LIBS))
endef
+else # ENABLE_GIO
+
+define gb_LinkTarget__use_gio
+
+endef
+
+endif # ENABLE_GIO
+
define gb_LinkTarget__use_gtk
$(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk
index 35d9002..e2c7191 100644
--- a/sd/Library_sd.mk
+++ b/sd/Library_sd.mk
@@ -108,13 +108,8 @@ $(eval $(call gb_Library_use_libraries,sd,\
$(eval $(call gb_Library_use_externals,sd,\
libxml2 \
-))
-
-ifeq ($(OS),LINUX)
-$(eval $(call gb_Library_use_externals,sd,\
gio \
))
-endif
ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,sd,\
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index a2de11c..0fc4624 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -9,7 +9,7 @@
#include "BluetoothServer.hxx"
#include <stdio.h>
-#ifdef LINUX
+#if defined(LINUX) && defined(ENABLE_GIO) && defined(ENABLE_DBUS)
#include <glib.h>
#include <gio/gio.h>
#include <sys/unistd.h>
@@ -53,7 +53,7 @@ struct oslSocketImpl {
void BluetoothServer::execute()
{
-#ifdef LINUX
+#if defined(LINUX) && defined(ENABLE_GIO) && defined(ENABLE_DBUS)
#ifdef GLIB_VERSION_2_26
g_type_init();
GError* aError = NULL;
@@ -218,4 +218,4 @@ void BluetoothServer::setup( std::vector<Communicator*>* pCommunicators )
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/Library_qstart.mk b/sfx2/Library_qstart.mk
index 84d4e5d..ccd254c 100644
--- a/sfx2/Library_qstart.mk
+++ b/sfx2/Library_qstart.mk
@@ -56,6 +56,7 @@ $(eval $(call gb_Library_use_libraries,qstart_gtk,\
))
$(eval $(call gb_Library_use_externals,qstart_gtk,\
+ gio \
gtk \
libxml2 \
))
More information about the Libreoffice-commits
mailing list