From db7eb9a3977d89e6351948e0ffa91fc2e88e288a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 15 Mar 2018 00:38:23 -0500 Subject: [PATCH] Add __buildinfo package to ox --- deps/ox/src/ox/__buildinfo/CMakeLists.txt | 6 +++++ deps/ox/src/ox/__buildinfo/defines.hpp | 31 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 deps/ox/src/ox/__buildinfo/CMakeLists.txt create mode 100644 deps/ox/src/ox/__buildinfo/defines.hpp diff --git a/deps/ox/src/ox/__buildinfo/CMakeLists.txt b/deps/ox/src/ox/__buildinfo/CMakeLists.txt new file mode 100644 index 00000000..4529e1b1 --- /dev/null +++ b/deps/ox/src/ox/__buildinfo/CMakeLists.txt @@ -0,0 +1,6 @@ +install( + FILES + defines.hpp + DESTINATION + include/ox/__buildinfo +) diff --git a/deps/ox/src/ox/__buildinfo/defines.hpp b/deps/ox/src/ox/__buildinfo/defines.hpp new file mode 100644 index 00000000..e1fcacfc --- /dev/null +++ b/deps/ox/src/ox/__buildinfo/defines.hpp @@ -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 + +}