From e7ebd55c31148089eb54ffbd708216c1c7cb09ff Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 29 Sep 2018 22:03:50 +0200 Subject: Add support for macos --- 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 709d285..7e5bf69 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -117,7 +117,10 @@ namespace sibs PLATFORM_LINUX64, PLATFORM_WIN32, - PLATFORM_WIN64 + PLATFORM_WIN64, + + PLATFORM_MACOS32, + PLATFORM_MACOS64 }; enum class CVersion @@ -163,7 +166,15 @@ namespace sibs "config.linux64", "config.linux64.static.debug", - "config.linux64.static.release" + "config.linux64.static.release", + + "config.macos32", + "config.macos32.static.debug", + "config.macos32.static.release" + + "config.macos64", + "config.macos64.static.debug", + "config.macos64.static.release" }; const int NUM_CONFIGS = 12; @@ -199,6 +210,22 @@ namespace sibs #endif #define CONFIG_STATIC_LIB_FILE_EXTENSION "a" #define CONFIG_DYNAMIC_LIB_FILE_EXTENSION "so" + #elif OS_TYPE == OS_TYPE_APPLE + #ifdef SIBS_ENV_32BIT + const Platform SYSTEM_PLATFORM = PLATFORM_MACOS32; + #define SYSTEM_PLATFORM_NAME "macos32" + #define CONFIG_SYSTEM_PLATFORM 12 + #define CONFIG_STATIC_DEBUG_PLATFORM 13 + #define CONFIG_STATIC_RELEASE_PLATFORM 14 + #else + const Platform SYSTEM_PLATFORM = PLATFORM_MACOS64; + #define SYSTEM_PLATFORM_NAME "macos64" + #define CONFIG_SYSTEM_PLATFORM 15 + #define CONFIG_STATIC_DEBUG_PLATFORM 16 + #define CONFIG_STATIC_RELEASE_PLATFORM 17 + #endif + #define CONFIG_STATIC_LIB_FILE_EXTENSION "a" + #define CONFIG_DYNAMIC_LIB_FILE_EXTENSION "dylib" #endif bool containsPlatform(const std::vector &platforms, Platform platform); -- cgit v1.2.3