aboutsummaryrefslogtreecommitdiff
path: root/include/Conf.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@dec05ebas-iMac.local>2018-09-29 22:03:50 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commite7ebd55c31148089eb54ffbd708216c1c7cb09ff (patch)
tree2a55e1bfe6ce3e2f8ca6c21d8046565abcafd4d9 /include/Conf.hpp
parent19370a2213efe960e959832145a165d6e2ad6a65 (diff)
Add support for macos
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 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<Platform> &platforms, Platform platform);