diff options
author | Charlie Root <root@dec05eba.my.domain> | 2018-09-30 23:44:13 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 0b09e97d0d6163b5a898f5642505ee12dd5ef30e (patch) | |
tree | 6464ce5279090cf99aa957aaca1faf68c50db095 /include/Conf.hpp | |
parent | 147188af8356d21fb9720308ef4912e1f3a22a15 (diff) |
Add OpenBSD support
Diffstat (limited to 'include/Conf.hpp')
-rw-r--r-- | include/Conf.hpp | 31 |
1 files changed, 29 insertions, 2 deletions
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<Platform> &platforms, Platform platform); |