[babl/darwin-fixes: 1/2] Add dylib extension for macOS build



commit a29bd87577e0438caac7016b84bb4ebc65541a7a
Author: Alex Samorukov <samm os2 kiev ua>
Date:   Thu Oct 31 08:13:07 2019 +0100

    Add dylib extension for macOS build

 meson.build | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 0befaefc6..8c7d5222f 100644
--- a/meson.build
+++ b/meson.build
@@ -118,7 +118,13 @@ platform_android = host_os.contains('android')
 
 path_sep = ( platform_win32 ? ';'     : ':' )
 dirs_sep = ( platform_win32 ? '\\\\'  : '/' )
-lib_ext  = ( platform_win32 ? '.dll'  : '.so' )
+if platform_win32
+  lib_ext = '.dll'
+elif platform_osx
+  lib_ext = '.dylib'
+else
+  lib_ext = '.so'
+endif
 
 conf.set('BABL_PATH_SEPARATOR', '\'' + path_sep + '\'', description:
   'separator between paths in BABL_PATH')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]