Meson: Cocoa detection doesn't work
@xclaesse
Submitted by Xavier Claessens Link to original bug (#796214)
Description
When building for macosX10, the check for cocoa support fails:
Command line: clang -I/Users/collabora/xclaesse/cerbero/build/dist/darwin_x86_64/include /var/folders/z9/c62vstj127n2r09wzzllvll40000gn/T/tmpjl65w000/testfile.c -pipe -c -o /var/folders/z9/c62vstj127n2r09wzzllvll40000gn/T/tmpjl65w000/output.obj -Wall -g -O2 -arch x86_64 -m64 -Wno-error=format-nonliteral -mmacosx-version-min=10.10 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -DHAVE_STRNDUP -Wall -g -O2 -arch x86_64 -m64 -Wno-error=format-nonliteral -mmacosx-version-min=10.10 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -O0 -std=gnu89
Code: #include <Cocoa/Cocoa.h> #ifdef GNUSTEP_BASE_VERSION #error "Detected GNUstep, not Cocoa" #endif Compiler stdout:
Compiler stderr: In file included from /var/folders/z9/c62vstj127n2r09wzzllvll40000gn/T/tmpjl65w000/testfile.c:1: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:503:1: error: expected identifier or '(' @class NSString, Protocol; ^