gecko/media/mtransport/build/Makefile.in

51 lines
1.1 KiB
Makefile
Raw Normal View History

# -*- Mode: makefile; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- #
# 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/.
ifeq (WINNT,$(OS_TARGET))
VISIBILITY_FLAGS =
endif
DEFINES += -DHAVE_STRDUP -DNR_SOCKET_IS_VOID_PTR
ifneq (,$(filter Darwin DragonFly FreeBSD NetBSD OpenBSD,$(OS_TARGET)))
ifeq ($(OS_TARGET), Darwin)
DEFINES += -DDARWIN
else
DEFINES += -DBSD
endif
endif
ifeq ($(OS_TARGET), Linux)
DEFINES += -DLINUX -DUSE_INTERFACE_PRIORITIZER
endif
ifeq ($(OS_TARGET), Android)
DEFINES += -DLINUX -DANDROID
endif
ifeq ($(OS_TARGET), WINNT)
DEFINES += -DWIN
endif
DEFINES += \
-DR_DEFINED_INT2=int16_t -DR_DEFINED_UINT2=uint16_t \
-DR_DEFINED_INT4=int32_t -DR_DEFINED_UINT4=uint32_t \
-DR_DEFINED_INT8=int64_t -DR_DEFINED_UINT8=uint64_t \
$(NULL)
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
DEFINES += -DUSE_INTERFACE_PRIORITIZER
endif
# for stun.h
ifeq (WINNT,$(OS_TARGET))
DEFINES += \
-DWIN32 \
-DNOMINMAX \
$(NULL)
else ifeq (Linux,$(OS_TARGET))
DEFINES += -DLINUX
endif