Add __buildinfo package to ox

This commit is contained in:
Gary Talent 2018-03-15 00:38:23 -05:00
parent b16d781826
commit db7eb9a397
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,6 @@
install(
FILES
defines.hpp
DESTINATION
include/ox/__buildinfo
)

31
deps/ox/src/ox/__buildinfo/defines.hpp vendored Normal file
View File

@ -0,0 +1,31 @@
/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* 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/.
*/
#pragma once
namespace ox::buildinfo {
#if defined(OX_USE_STDLIB)
constexpr auto UseStdLib = true;
#else
constexpr auto UseStdLib = false;
#endif
#if defined(DEBUG)
constexpr auto Debug = true;
#else
constexpr auto Debug = false;
#endif
#if defined(NDEBUG)
constexpr auto NDebug = true;
#else
constexpr auto NDebug = false;
#endif
}