Add __buildinfo package to ox
This commit is contained in:
parent
b16d781826
commit
db7eb9a397
6
deps/ox/src/ox/__buildinfo/CMakeLists.txt
vendored
Normal file
6
deps/ox/src/ox/__buildinfo/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
install(
|
||||
FILES
|
||||
defines.hpp
|
||||
DESTINATION
|
||||
include/ox/__buildinfo
|
||||
)
|
31
deps/ox/src/ox/__buildinfo/defines.hpp
vendored
Normal file
31
deps/ox/src/ox/__buildinfo/defines.hpp
vendored
Normal 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
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user