From 3daf2e03d34ed2c4ab580361673f40f5827bed69 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 6 Oct 2018 04:14:22 +0000 Subject: Add support for Haiku --- include/Conf.hpp | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) (limited to 'include/Conf.hpp') diff --git a/include/Conf.hpp b/include/Conf.hpp index 3cd8cd5..bae0153 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -160,6 +160,10 @@ namespace sibs "config.openbsd.static.debug", "config.openbsd.static.release", + "config.haiku", + "config.haiku.static.debug", + "config.haiku.static.release", + "config.win32", "config.win32.static.debug", "config.win32.static.release", @@ -190,10 +194,18 @@ namespace sibs "config.openbsd64", "config.openbsd64.static.debug", - "config.openbsd64.static.release" + "config.openbsd64.static.release", + + "config.haiku32", + "config.haiku32.static.debug", + "config.haiku32.static.release", + + "config.haiku64", + "config.haiku64.static.debug", + "config.haiku64.static.release" }; - const int NUM_CONFIGS = 3 * 13; - const int CONFIGS_GENERIC_OFFSET = 3 * 5; + const int NUM_CONFIGS = 3 * 16; + const int CONFIGS_GENERIC_OFFSET = 3 * 6; #if OS_TYPE == OS_TYPE_WINDOWS #ifdef SIBS_ENV_32BIT @@ -277,9 +289,30 @@ namespace sibs // TODO: Also add "bsd" platform #define SYSTEM_GENERIC_PLATFORM_NAME "openbsd" - #define CONFIG_GENERIC_SYSTEM_PLATFORM 9 - #define CONFIG_GENERIC_STATIC_DEBUG_PLATFORM 10 - #define CONFIG_GENERIC_STATIC_RELEASE_PLATFORM 11 + #define CONFIG_GENERIC_SYSTEM_PLATFORM 12 + #define CONFIG_GENERIC_STATIC_DEBUG_PLATFORM 13 + #define CONFIG_GENERIC_STATIC_RELEASE_PLATFORM 14 + #elif OS_TYPE == OS_TYPE_HAIKU + #ifdef SIBS_ENV_32BIT + const Platform SYSTEM_PLATFORM = PLATFORM_HAIKU32; + #define SYSTEM_PLATFORM_NAME "haiku32" + #define CONFIG_SYSTEM_PLATFORM CONFIGS_GENERIC_OFFSET + 24 + #define CONFIG_STATIC_DEBUG_PLATFORM CONFIGS_GENERIC_OFFSET + 25 + #define CONFIG_STATIC_RELEASE_PLATFORM CONFIGS_GENERIC_OFFSET + 26 + #else + const Platform SYSTEM_PLATFORM = PLATFORM_HAIKU64; + #define SYSTEM_PLATFORM_NAME "haiku64" + #define CONFIG_SYSTEM_PLATFORM CONFIGS_GENERIC_OFFSET + 27 + #define CONFIG_STATIC_DEBUG_PLATFORM CONFIGS_GENERIC_OFFSET + 28 + #define CONFIG_STATIC_RELEASE_PLATFORM CONFIGS_GENERIC_OFFSET + 29 + #endif + #define CONFIG_STATIC_LIB_FILE_EXTENSION "a" + #define CONFIG_DYNAMIC_LIB_FILE_EXTENSION "so" + + #define SYSTEM_GENERIC_PLATFORM_NAME "haiku" + #define CONFIG_GENERIC_SYSTEM_PLATFORM 15 + #define CONFIG_GENERIC_STATIC_DEBUG_PLATFORM 16 + #define CONFIG_GENERIC_STATIC_RELEASE_PLATFORM 17 #endif const char* asString(OptimizationLevel optLevel); -- cgit v1.2.3