Weak link the GameController.framework on macOS.
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Sep 2016 17:28:00 +0000 (17:28 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Sep 2016 17:28:00 +0000 (17:28 +0000)
Reviewed by Tim Horton.

* Configurations/WebCore.xcconfig:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205347 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Configurations/WebCore.xcconfig

index 2a69546..cec7fb5 100644 (file)
@@ -1,3 +1,11 @@
+2016-09-02  Brady Eidson  <beidson@apple.com>
+
+        Weak link the GameController.framework on macOS.
+
+        Reviewed by Tim Horton.
+        
+        * Configurations/WebCore.xcconfig:
+
 2016-09-02  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r205344.
index 49250e6..35940f0 100644 (file)
@@ -66,7 +66,8 @@ WK_IOS_BINCOMPAT_LDFLAGS_V9_3 = $(WK_IOS_BINCOMPAT_LDFLAGS_V9_0);
 WK_IOS_BINCOMPAT_LDFLAGS_V10_0 = $(WK_IOS_BINCOMPAT_LDFLAGS_V9_3);
 
 WK_GAMECONTROLLER_LDFLAGS = $(WK_GAMECONTROLLER_LDFLAGS_$(ENABLE_GAMEPAD));
-WK_GAMECONTROLLER_LDFLAGS_ENABLE_GAMEPAD = -framework GameController;
+WK_GAMECONTROLLER_LDFLAGS_ENABLE_GAMEPAD[sdk=iphone*] = -framework GameController;
+WK_GAMECONTROLLER_LDFLAGS_ENABLE_GAMEPAD[sdk=macosx*] = -weak_framework GameController;
 
 OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_PLATFORM) $(WK_GAMECONTROLLER_LDFLAGS);
 OTHER_LDFLAGS_BASE = -lsqlite3 -lobjc -lANGLE;