blob: 5d0b90dd58a53ea370b24a0a13965eee7ac8615d [file] [log] [blame]
/*
* Copyright (C) 2004, 2005, 2006, 2013 Apple Inc.
* Copyright (C) 2009 Google Inc. All rights reserved.
* Copyright (C) 2007-2009 Torch Mobile, Inc.
* Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef WTF_build_config_h
#define WTF_build_config_h
#include "build/build_config.h"
#include "wtf/Compiler.h"
/* ==== Platform adaptation macros: these describe properties of the target
* environment. ==== */
/* HAVE() - specific system features (headers, functions or similar) that are
* present or not */
#define HAVE(WTF_FEATURE) (defined HAVE_##WTF_FEATURE && HAVE_##WTF_FEATURE)
/* OS() - underlying operating system; only to be used for mandated low-level
services like
virtual memory, not to choose a GUI toolkit */
#define OS(WTF_FEATURE) (defined OS_##WTF_FEATURE && OS_##WTF_FEATURE)
/* ==== Policy decision macros: these define policy choices for a particular
* port. ==== */
/* USE() - use a particular third-party library or optional OS service */
#define USE(WTF_FEATURE) \
(defined WTF_USE_##WTF_FEATURE && WTF_USE_##WTF_FEATURE)
/* ENABLE() - turn on a specific feature of WebKit */
#define ENABLE(WTF_FEATURE) \
(defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE)
/* There is an assumption in the project that either OS(WIN) or OS(POSIX) is
* set. */
#if !OS(WIN) && !OS(POSIX)
#error Either OS(WIN) or OS(POSIX) needs to be set.
#endif
#endif // WTF_build_config_h