From 2c5faba2a34d5feb9a6ea9d4fd9bf94ce914a19d Mon Sep 17 00:00:00 2001 From: Rene Engelhard Date: Sun, 6 Oct 2013 16:29:04 +0200 Subject: [PATCH] make system-bluez build not use -I$S/bluez_bluetooth/inc in sd... Change-Id: Icdd90a7aadf7cfbc464e11a1e0386576cbc5c06c --- config_host.mk.in | 1 + configure.ac | 8 +++++++- sd/Library_sd.mk | 7 ++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config_host.mk.in b/config_host.mk.in index deb3e2f1ec12..4536c215321b 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -157,6 +157,7 @@ export ENABLE_SCRIPTING_BEANSHELL=@ENABLE_SCRIPTING_BEANSHELL@ export ENABLE_SCRIPTING_JAVASCRIPT=@ENABLE_SCRIPTING_JAVASCRIPT@ export ENABLE_SDREMOTE=@ENABLE_SDREMOTE@ export ENABLE_SDREMOTE_BLUETOOTH=@ENABLE_SDREMOTE_BLUETOOTH@ +export SYSTEM_BLUEZ=@SYSTEM_BLUEZ@ export ENABLE_SILENT_MSI=@ENABLE_SILENT_MSI@ export ENABLE_SYMBOLS=@ENABLE_SYMBOLS@ export ENABLE_SYSTRAY_GTK=@ENABLE_SYSTRAY_GTK@ diff --git a/configure.ac b/configure.ac index 1cf6c53a2129..c98b42c42a8e 100644 --- a/configure.ac +++ b/configure.ac @@ -10031,28 +10031,34 @@ if test -n "$enable_sdremote" -a "$enable_sdremote" != "no"; then AC_MSG_RESULT([external]) AC_CHECK_HEADER(bluetooth/bluetooth.h, [], [AC_MSG_ERROR(bluetooth.h not found. install bluez)], []) + SYSTEM_BLUEZ=YES else AC_MSG_RESULT([internal]) - BUILD_TYPE="$BUILD_TYPE BLUEZ" + SYSTEM_BLUEZ=NO fi else AC_MSG_RESULT([no, dbus disabled]) ENABLE_SDREMOTE_BLUETOOTH= + SYSTEM_BLUEZ=NO fi else AC_MSG_RESULT([yes]) ENABLE_SDREMOTE_BLUETOOTH=TRUE + SYSTEM_BLUEZ=NO fi else AC_MSG_RESULT([no]) ENABLE_SDREMOTE_BLUETOOTH= + SYSTEM_BLUEZ=NO fi else ENABLE_SDREMOTE= + SYSTEM_BLUEZ=NO AC_MSG_RESULT([no]) fi AC_SUBST(ENABLE_SDREMOTE) AC_SUBST(ENABLE_SDREMOTE_BLUETOOTH) +AC_SUBST(SYSTEM_BLUEZ) dnl =================================================================== dnl Check whether the gtk 2.0 libraries are available. diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk index 3ec4771aaef1..be29e38262e6 100644 --- a/sd/Library_sd.mk +++ b/sd/Library_sd.mk @@ -38,13 +38,18 @@ $(eval $(call gb_Library_add_sdi_headers,sd,\ $(eval $(call gb_Library_set_include,sd,\ $$(INCLUDE) \ - -I$(SRCDIR)/bluez_bluetooth/inc \ -I$(SRCDIR)/sd/inc \ -I$(SRCDIR)/sd/source/ui/inc \ -I$(SRCDIR)/sd/source/ui/slidesorter/inc \ -I$(WORKDIR)/SdiTarget/sd/sdi \ )) +ifneq ($(SYSTEM_BLUEZ),YES) +$(eval $(call gb_Library_add_cxxflags,sd,\ + -I$(SRCDIR)/bluez_bluetooth/inc \ +)) +endif + $(eval $(call gb_Library_add_defs,sd,\ -DSD_DLLIMPLEMENTATION \ ))