1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef BUILD_CONSTANTS_H_
8 #define BUILD_CONSTANTS_H_
11 * Why not just use ifdefs?
12 * ifdefs tend to result in code that compiles on one platform but not another.
13 * Given the number of build and platform configurations we have, it's best to
14 * aim to compile the same on as many platforms as possible, and let the
15 * compiler see the constexprs and handle dead-code elision itself.
20 constexpr bool kIsDebug
=
27 constexpr bool kIsWindows
=
34 constexpr bool kIsMacOS
=
41 constexpr bool kIsLinux
=
48 constexpr bool kIsAndroid
=
49 #ifdef MOZ_WIDGET_ANDROID
55 constexpr bool kIsDmd
=
62 } // namespace mozilla
64 #endif // BUILD_CONSTANTS_H_