gecko/ipc/chromium/chromium-config.mk

124 lines
2.1 KiB
Makefile
Raw Normal View History

2012-05-21 04:12:37 -07: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/.
ifndef INCLUDED_CONFIG_MK
$(error Must include config.mk before this file.)
endif
ifdef CHROMIUM_CONFIG_INCLUDED
$(error Must not include chromium-config.mk twice.)
endif
CHROMIUM_CONFIG_INCLUDED = 1
EXTRA_DEPS += $(topsrcdir)/ipc/chromium/chromium-config.mk
DEFINES += \
-DEXCLUDE_SKIA_DEPENDENCIES \
$(NULL)
LOCAL_INCLUDES += \
-I$(topsrcdir)/ipc/chromium/src \
-I$(topsrcdir)/ipc/glue \
2009-07-13 09:14:56 -07:00
-I$(DEPTH)/ipc/ipdl/_ipdlheaders \
$(NULL)
ifeq ($(OS_ARCH),WINNT) # {
OS_LIBS += $(call EXPAND_LIBNAME,psapi shell32 dbghelp)
OS_WIN = 1
DEFINES += \
-DUNICODE \
-D_UNICODE \
-DNOMINMAX \
-D_CRT_RAND_S \
-DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS \
-D_SECURE_ATL \
-DCHROMIUM_BUILD \
-DU_STATIC_IMPLEMENTATION \
-DOS_WIN=1 \
-DWIN32 \
-D_WIN32 \
-D_WINDOWS \
-DWIN32_LEAN_AND_MEAN \
$(NULL)
ifdef _MSC_VER
DEFINES += -DCOMPILER_MSVC
endif
else # } {
OS_POSIX = 1
DEFINES += -DOS_POSIX=1
ifeq ($(OS_ARCH),Darwin) # {
OS_MACOSX = 1
DEFINES += \
-DOS_MACOSX=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),DragonFly) # {
OS_DRAGONFLY = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_DRAGONFLY=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),FreeBSD) # {
OS_FREEBSD = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_FREEBSD=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),NetBSD) # {
OS_NETBSD = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_NETBSD=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
ifeq ($(OS_ARCH),OpenBSD) # {
OS_OPENBSD = 1
OS_BSD = 1
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
DEFINES += \
-DOS_OPENBSD=1 \
-DOS_BSD=1 \
$(NULL)
else # } {
OS_LINUX = 1
DEFINES += \
-DOS_LINUX=1 \
$(NULL)
# NB: to stop gcc warnings about exporting template instantiation
OS_CXXFLAGS := $(filter-out -pedantic,$(OS_CXXFLAGS))
endif # }
endif # }
endif # }
endif # }
endif # }
endif # }