Pixar Arch
Loading...
Searching...
No Matches
buildMode.h
Go to the documentation of this file.
1// Copyright 2016 Pixar
2//
3// Licensed under the terms set forth in the LICENSE.txt file available at
4// https://openusd.org/license.
5//
6// Modified by Jeremy Retailleau.
7
8#ifndef PXR_ARCH_BUILD_MODE_H
9#define PXR_ARCH_BUILD_MODE_H
10
11#include "./defines.h"
12
13namespace pxr {
14
16// Check if the build system has specified a build mode, falling
17// back to commonly-used macros if it has not. (Typically, _DEBUG
18// is defined by Visual Studio and DEBUG by Xcode for debug-mode builds)
19#if defined(BUILD_OPTLEVEL_DEV) || defined(_DEBUG) || defined(DEBUG)
20 enum { DEV_BUILD = 1 };
21#else
22 enum { DEV_BUILD = 0 };
23#endif
24};
25
26#define ARCH_DEV_BUILD pxr::ArchBuildMode::DEV_BUILD
27
28} // namespace pxr
29
30#endif // PXR_ARCH_BUILD_MODE_H
Definition buildMode.h:15
@ DEV_BUILD
Definition buildMode.h:22