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/.
|
2009-06-29 11:31:58 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-06-29 11:38:29 -07:00
|
|
|
EXTRA_DEPS += $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2009-06-29 11:31:58 -07:00
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DEXCLUDE_SKIA_DEPENDENCIES \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/ipc/chromium/src \
|
2009-06-29 11:38:29 -07:00
|
|
|
-I$(topsrcdir)/ipc/glue \
|
2009-07-13 09:14:56 -07:00
|
|
|
-I$(DEPTH)/ipc/ipdl/_ipdlheaders \
|
2009-06-29 11:31:58 -07:00
|
|
|
$(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)
|
|
|
|
|
2011-04-28 04:36:38 -07:00
|
|
|
ifdef _MSC_VER
|
|
|
|
DEFINES += -DCOMPILER_MSVC
|
|
|
|
endif
|
|
|
|
|
2009-06-29 11:31:58 -07:00
|
|
|
else # } {
|
|
|
|
OS_POSIX = 1
|
2012-08-28 14:16:51 -07:00
|
|
|
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)
|
2009-06-29 11:31:58 -07:00
|
|
|
|
2012-08-28 14:16:51 -07:00
|
|
|
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
|
2009-06-29 11:31:58 -07:00
|
|
|
DEFINES += \
|
|
|
|
-DOS_LINUX=1 \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# NB: to stop gcc warnings about exporting template instantiation
|
|
|
|
OS_CXXFLAGS := $(filter-out -pedantic,$(OS_CXXFLAGS))
|
|
|
|
|
|
|
|
endif # }
|
|
|
|
endif # }
|
2012-08-28 14:16:51 -07:00
|
|
|
endif # }
|
|
|
|
endif # }
|
|
|
|
endif # }
|
|
|
|
endif # }
|
2009-07-20 12:04:52 -07:00
|
|
|
|