2012-07-20 02:10:44 -07:00
|
|
|
# Copyright 2012 Mozilla Foundation and Mozilla contributors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2012-02-20 07:15:19 -08:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2012-02-20 07:15:19 -08:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-09-20 00:55:36 -07:00
|
|
|
FAIL_ON_WARNINGS := 1
|
2012-02-20 07:15:19 -08:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2012-09-13 09:37:14 -07:00
|
|
|
include $(topsrcdir)/dom/dom-config.mk
|
|
|
|
|
|
|
|
VPATH += $(srcdir)/ipc
|
|
|
|
|
|
|
|
EXPORTS_NAMESPACES = \
|
|
|
|
mozilla/dom/bluetooth \
|
|
|
|
mozilla/dom/bluetooth/ipc \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXPORTS_mozilla/dom/bluetooth = BluetoothCommon.h
|
|
|
|
EXPORTS_mozilla/dom/bluetooth/ipc = BluetoothMessageUtils.h
|
|
|
|
|
|
|
|
ifneq (,$(MOZ_B2G_BT))
|
2012-02-20 07:15:19 -08:00
|
|
|
|
|
|
|
LIBRARY_NAME = dombluetooth_s
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
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 \
|
|
|
|
BluetoothReplyRunnable.cpp \
|
2012-07-31 21:49:59 -07:00
|
|
|
BluetoothPropertyContainer.cpp \
|
2012-07-31 21:53:04 -07:00
|
|
|
BluetoothUtils.cpp \
|
2012-09-13 09:37:14 -07:00
|
|
|
BluetoothChild.cpp \
|
|
|
|
BluetoothParent.cpp \
|
|
|
|
BluetoothServiceChildProcess.cpp \
|
2012-09-25 13:13:15 -07:00
|
|
|
BluetoothUnixSocketConnector.cpp \
|
2012-09-26 06:34:55 -07:00
|
|
|
BluetoothHfpManager.cpp \
|
2012-09-28 04:46:37 -07:00
|
|
|
BluetoothOppManager.cpp \
|
2012-09-28 08:09:29 -07:00
|
|
|
ObexBase.cpp \
|
2012-09-29 02:39:05 -07:00
|
|
|
BluetoothScoManager.cpp \
|
2012-11-26 22:12:19 -08:00
|
|
|
BluetoothUuid.cpp \
|
2012-02-20 07:15:19 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2012-09-26 22:15:22 -07:00
|
|
|
ifdef MOZ_B2G_RIL
|
2013-03-06 01:53:23 -08:00
|
|
|
CPPSRCS += BluetoothTelephonyListener.cpp
|
2012-09-26 22:15:22 -07:00
|
|
|
endif
|
|
|
|
|
2012-07-17 20:41:54 -07:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
VPATH += \
|
2012-09-13 09:37:14 -07:00
|
|
|
$(srcdir)/linux \
|
|
|
|
$(srcdir)/gonk \
|
|
|
|
$(NULL)
|
2012-07-17 20:41:54 -07:00
|
|
|
LOCAL_INCLUDES += $(MOZ_DBUS_CFLAGS)
|
|
|
|
CPPSRCS += \
|
2012-09-13 09:37:14 -07:00
|
|
|
BluetoothDBusService.cpp \
|
|
|
|
BluetoothGonkService.cpp \
|
|
|
|
$(NULL)
|
|
|
|
DEFINES += -DMOZ_BLUETOOTH_GONK
|
2012-07-17 20:41:54 -07:00
|
|
|
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)
|
2012-09-13 09:37:14 -07:00
|
|
|
CPPSRCS += BluetoothDBusService.cpp
|
2012-05-07 14:50:25 -07:00
|
|
|
CFLAGS += $(MOZ_DBUS_GLIB_CFLAGS)
|
|
|
|
CXXFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) -DHAVE_PTHREADS
|
2012-09-13 09:37:14 -07:00
|
|
|
DEFINES += -DMOZ_BLUETOOTH_DBUS
|
2012-07-17 20:41:54 -07:00
|
|
|
endif
|
2012-05-07 14:50:25 -07:00
|
|
|
endif
|
2012-07-17 20:41:54 -07:00
|
|
|
|
|
|
|
# Add VPATH to LOCAL_INCLUDES so we are going to include the correct backend
|
2012-09-13 09:37:14 -07:00
|
|
|
# subdirectory.
|
2012-07-17 20:41:54 -07:00
|
|
|
LOCAL_INCLUDES += $(VPATH:%=-I%)
|
|
|
|
|
2012-09-13 09:37:14 -07:00
|
|
|
endif # MOZ_B2G_BT
|
|
|
|
|
2012-07-17 20:41:54 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|