From 0b09e97d0d6163b5a898f5642505ee12dd5ef30e Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sun, 30 Sep 2018 23:44:13 +0200 Subject: Add OpenBSD support --- include/Conf.hpp | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'include/Conf.hpp') diff --git a/include/Conf.hpp b/include/Conf.hpp index 7e5bf69..8fa3475 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -120,7 +120,10 @@ namespace sibs PLATFORM_WIN64, PLATFORM_MACOS32, - PLATFORM_MACOS64 + PLATFORM_MACOS64, + + PLATFORM_OPENBSD32, + PLATFORM_OPENBSD64 }; enum class CVersion @@ -174,7 +177,15 @@ namespace sibs "config.macos64", "config.macos64.static.debug", - "config.macos64.static.release" + "config.macos64.static.release", + + "config.openbsd32", + "config.openbsd32.static.debug", + "config.openbsd32.static.release", + + "config.openbsd64", + "config.openbsd64.static.debug", + "config.openbsd64.static.release" }; const int NUM_CONFIGS = 12; @@ -226,6 +237,22 @@ namespace sibs #endif #define CONFIG_STATIC_LIB_FILE_EXTENSION "a" #define CONFIG_DYNAMIC_LIB_FILE_EXTENSION "dylib" + #elif OS_TYPE == OS_TYPE_OPENBSD + #ifdef SIBS_ENV_32BIT + const Platform SYSTEM_PLATFORM = PLATFORM_OPENBSD32; + #define SYSTEM_PLATFORM_NAME "openbsd32" + #define CONFIG_SYSTEM_PLATFORM 18 + #define CONFIG_STATIC_DEBUG_PLATFORM 19 + #define CONFIG_STATIC_RELEASE_PLATFORM 20 + #else + const Platform SYSTEM_PLATFORM = PLATFORM_OPENBSD64; + #define SYSTEM_PLATFORM_NAME "openbsd64" + #define CONFIG_SYSTEM_PLATFORM 21 + #define CONFIG_STATIC_DEBUG_PLATFORM 22 + #define CONFIG_STATIC_RELEASE_PLATFORM 23 + #endif + #define CONFIG_STATIC_LIB_FILE_EXTENSION "a" + #define CONFIG_DYNAMIC_LIB_FILE_EXTENSION "so" #endif bool containsPlatform(const std::vector &platforms, Platform platform); -- cgit v1.2.3