aboutsummaryrefslogtreecommitdiff
path: root/include/Conf.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-06 04:14:22 +0000
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit3daf2e03d34ed2c4ab580361673f40f5827bed69 (patch)
tree10ca03a42ef68296c5d720ab298143a7c6f0acc9 /include/Conf.hpp
parent31aa47522a0e644289ab606236fd5ccb505f9c54 (diff)
Add support for Haiku
Diffstat (limited to 'include/Conf.hpp')
-rw-r--r--include/Conf.hpp45
1 files changed, 39 insertions, 6 deletions
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);