aboutsummaryrefslogtreecommitdiff
path: root/include/Conf.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Conf.hpp')
-rw-r--r--include/Conf.hpp31
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);