summaryrefslogtreecommitdiff
path: root/sd/Library_sd.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-14 12:00:11 +0200
committerTor Lillqvist <tml@iki.fi>2013-02-14 12:10:40 +0200
commit100ac0876f1038aea7e7ef56f95d008ecc6aea3d (patch)
tree923764d69f5df01ea6e46caa3843d2f0893ca597 /sd/Library_sd.mk
parent2848277180b9cb6dde639001a0f9612af5bd5992 (diff)
Start on Bluetooth code for the Impress Remote for OS X
Work in progress. It sets up the SDP service record and registers it, and that seems to work. Does not do anything with it yet. I wonder if the current approach to use the standard SerialPort service class will work for Macs, as they by default have one SerialPort service running, "Bluetooth-PDA-Sync", whatever that is. There is no code in the Android app to handle the case of there being several Serial Port services on the computer it wants to connect to, so what happens then when there are two will be interesting to see. (I can't find in the Android API any way to enumerate services that use the same service class. If there was, the app could choose the correct one based on its name.) So probably we should pretty soon switch to using a dedicated service class UUID instead of using the standard serial port one. As we already have the app out in the wild it will probably have to be modified to look for both Serial Port and our own service then? Sigh. Change-Id: I1bee6403642e9b8953b5a8fa8fb5fe6a9dc76a09
Diffstat (limited to 'sd/Library_sd.mk')
-rw-r--r--sd/Library_sd.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/sd/Library_sd.mk b/sd/Library_sd.mk
index e2640dd79804..679c83670fda 100644
--- a/sd/Library_sd.mk
+++ b/sd/Library_sd.mk
@@ -532,10 +532,30 @@ $(eval $(call gb_Library_add_defs,sd,\
))
ifeq ($(ENABLE_SDREMOTE_BLUETOOTH),YES)
+
+ifeq (,$(filter IOS MACOSX,$(OS)))
+
$(eval $(call gb_Library_add_exception_objects,sd,\
sd/source/ui/remotecontrol/BluetoothServer \
))
+else
+
+$(eval $(call gb_Library_add_objcxxobjects,sd,\
+ sd/source/ui/remotecontrol/BluetoothServer \
+))
+
+$(eval $(call gb_Library_add_libs,sd,\
+ -lobjc \
+))
+
+$(eval $(call gb_Library_use_system_darwin_frameworks,sd,\
+ Foundation \
+ IOBluetooth \
+))
+
+endif
+
$(eval $(call gb_Library_add_defs,sd,\
-DENABLE_SDREMOTE_BLUETOOTH \
))