mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
70 lines
1.4 KiB
Makefile
70 lines
1.4 KiB
Makefile
|
#
|
||
|
# 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 = @DEPTH@
|
||
|
topsrcdir = @top_srcdir@
|
||
|
srcdir = @srcdir@
|
||
|
VPATH = @srcdir@
|
||
|
|
||
|
include $(DEPTH)/config/autoconf.mk
|
||
|
|
||
|
MODULE = necko
|
||
|
LIBRARY_NAME = nkdatachan_s
|
||
|
LIBXUL_LIBRARY = 1
|
||
|
XPIDL_MODULE = necko_datachan
|
||
|
GRE_MODULE = 1
|
||
|
FORCE_STATIC_LIB = 1
|
||
|
|
||
|
EXPORTS_NAMESPACES = mozilla/net
|
||
|
|
||
|
CPPSRCS = \
|
||
|
DataChannel.cpp \
|
||
|
$(NULL)
|
||
|
|
||
|
EXPORTS_mozilla/net = \
|
||
|
DataChannel.h \
|
||
|
DataChannelProtocol.h \
|
||
|
$(NULL)
|
||
|
|
||
|
LOCAL_INCLUDES = \
|
||
|
-I$(topsrcdir)/xpcom/ds \
|
||
|
-I$(srcdir)/../src \
|
||
|
-I$(DEPTH)/dist/include/mozilla/net \
|
||
|
-I$(topsrcdir)/media/webrtc/trunk/third_party/libjingle/source \
|
||
|
-I$(topsrcdir)/media/mtransport \
|
||
|
$(NULL)
|
||
|
|
||
|
DEFINES = \
|
||
|
-DINET=1 \
|
||
|
-DINET6=1 \
|
||
|
-DSCTP_DEBUG=1 \
|
||
|
$(NULL)
|
||
|
|
||
|
ifeq ($(OS_TARGET),WINNT)
|
||
|
DEFINES += -D__Userspace_os_Windows=1
|
||
|
else
|
||
|
ifeq ($(OS_TARGET),Darwin)
|
||
|
DEFINES += -D__Userspace_os_Darwin=1
|
||
|
else
|
||
|
ifeq ($(OS_TARGET),Linux)
|
||
|
DEFINES += -D__Userspace_os_Linux=1
|
||
|
else
|
||
|
ifeq ($(OS_TARGET),FreeBSD)
|
||
|
DEFINES += -D__Userspace_os_FreeBSD=1
|
||
|
else
|
||
|
#default_fallback; probably doesn't work
|
||
|
DEFINES += -D__Userspace_os_$(OS_TARGET)=1
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
|
||
|
include $(topsrcdir)/config/config.mk
|
||
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
||
|
include $(topsrcdir)/config/rules.mk
|
||
|
|
||
|
DEFINES += -DIMPL_NS_NET
|