2012-02-20 07:15:19 -08:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = dom
|
|
|
|
LIBRARY_NAME = dombluetooth_s
|
|
|
|
XPIDL_MODULE = dom_bluetooth
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
|
|
|
include $(topsrcdir)/dom/dom-config.mk
|
|
|
|
|
2012-07-17 20:41:54 -07:00
|
|
|
CPPSRCS += \
|
|
|
|
BluetoothService.cpp \
|
2012-05-23 21:02:23 -07:00
|
|
|
BluetoothManager.cpp \
|
2012-02-20 07:15:19 -08:00
|
|
|
BluetoothAdapter.cpp \
|
2012-07-17 20:41:54 -07:00
|
|
|
BluetoothDevice.cpp \
|
|
|
|
BluetoothDeviceEvent.cpp \
|
|
|
|
BluetoothReplyRunnable.cpp \
|
2012-02-20 07:15:19 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIDOMNavigatorBluetooth.idl \
|
2012-05-23 21:02:23 -07:00
|
|
|
nsIDOMBluetoothManager.idl \
|
2012-02-20 07:15:19 -08:00
|
|
|
nsIDOMBluetoothAdapter.idl \
|
2012-07-17 20:41:54 -07:00
|
|
|
nsIDOMBluetoothDevice.idl \
|
|
|
|
nsIDOMBluetoothDeviceEvent.idl \
|
2012-02-20 07:15:19 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2012-07-17 20:41:54 -07:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
VPATH += \
|
|
|
|
$(srcdir)/linux \
|
|
|
|
$(srcdir)/gonk \
|
|
|
|
$(NULL)
|
|
|
|
LOCAL_INCLUDES += $(MOZ_DBUS_CFLAGS)
|
|
|
|
CPPSRCS += \
|
|
|
|
BluetoothDBusService.cpp \
|
|
|
|
BluetoothGonkService.cpp \
|
|
|
|
BluetoothGonkServiceFactory.cpp \
|
|
|
|
$(NULL)
|
|
|
|
else
|
2012-05-07 14:50:25 -07:00
|
|
|
ifdef MOZ_ENABLE_DBUS
|
2012-07-17 20:41:54 -07:00
|
|
|
VPATH += $(srcdir)/linux
|
|
|
|
LOCAL_INCLUDES += $(MOZ_DBUS_CFLAGS)
|
|
|
|
CPPSRCS += \
|
|
|
|
BluetoothDBusService.cpp \
|
|
|
|
BluetoothDBusServiceFactory.cpp \
|
|
|
|
$(NULL)
|
2012-05-07 14:50:25 -07:00
|
|
|
CFLAGS += $(MOZ_DBUS_GLIB_CFLAGS)
|
|
|
|
CXXFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) -DHAVE_PTHREADS
|
2012-07-17 20:41:54 -07:00
|
|
|
else
|
|
|
|
CPPSRCS += BluetoothNullServiceFactory.cpp
|
|
|
|
endif
|
2012-05-07 14:50:25 -07:00
|
|
|
endif
|
2012-07-17 20:41:54 -07:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += -I$(DEPTH)/ipc/ipdl/_ipdlheaders/mozilla/dom/bluetooth/
|
|
|
|
|
|
|
|
# Add VPATH to LOCAL_INCLUDES so we are going to include the correct backend
|
|
|
|
# subdirectory
|
|
|
|
LOCAL_INCLUDES += $(VPATH:%=-I%)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|