Hacks.
[windows-environment.git] / Patches / glib-meson.patch
1 --- meson.build.orig    2020-12-27 00:03:18.000000000 +0100
2 +++ meson.build 2020-12-27 00:15:23.000000000 +0100
3 @@ -730,33 +730,13 @@
4  glib_have_carbon = false
5  glib_have_cocoa = false
6  if host_system == 'darwin'
7 -  add_languages('objc')
8 -  objcc = meson.get_compiler('objc')
9 -
10    osx_ldflags += ['-Wl,-framework,CoreFoundation']
11  
12 -  # Mac OS X Carbon support
13 -  glib_have_carbon = objcc.compiles('''#include <Carbon/Carbon.h>
14 -                                       #include <CoreServices/CoreServices.h>''',
15 -                                    name : 'Mac OS X Carbon support')
16 -
17    if glib_have_carbon
18      glib_conf.set('HAVE_CARBON', true)
19      osx_ldflags += '-Wl,-framework,Carbon'
20 -    glib_have_os_x_9_or_later = objcc.compiles('''#include <AvailabilityMacros.h>
21 -                                                  #if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
22 -                                                  #error Compiling for minimum OS X version before 10.9
23 -                                                  #endif''',
24 -                                               name : 'OS X 9 or later')
25    endif
26  
27 -  # Mac OS X Cocoa support
28 -  glib_have_cocoa = objcc.compiles('''#include <Cocoa/Cocoa.h>
29 -                                      #ifdef GNUSTEP_BASE_VERSION
30 -                                      #error "Detected GNUstep, not Cocoa"
31 -                                      #endif''',
32 -                                   name : 'Mac OS X Cocoa support')
33 -
34    if glib_have_cocoa
35      glib_conf.set('HAVE_COCOA', true)
36      osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit']