Pixar Arch 0.25.8
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 "pxr/arch/pxr.h"
12#include "pxr/arch/defines.h"
13
14ARCH_NAMESPACE_OPEN_SCOPE
15
17// Check if the build system has specified a build mode, falling
18// back to commonly-used macros if it has not. (Typically, _DEBUG
19// is defined by Visual Studio and DEBUG by Xcode for debug-mode builds)
20#if defined(BUILD_OPTLEVEL_DEV) || defined(_DEBUG) || defined(DEBUG)
21 enum { DEV_BUILD = 1 };
22#else
23 enum { DEV_BUILD = 0 };
24#endif
25};
26
27#define ARCH_DEV_BUILD ARCH_NS::ArchBuildMode::DEV_BUILD
28
29ARCH_NAMESPACE_CLOSE_SCOPE
30
31#endif // PXR_ARCH_BUILD_MODE_H
Definition buildMode.h:16
@ DEV_BUILD
Definition buildMode.h:23