[CMake] Replace AVFoundationSupport.py using CMake
authordon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Aug 2018 23:28:10 +0000 (23:28 +0000)
committerdon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Aug 2018 23:28:10 +0000 (23:28 +0000)
commit9722e17b5bd4270b0f612473cf39347bff47511d
treebd411edd33fe73018ab948ed0a5bf6d0f5868afd
parent60633edcbcc41a862e4da14cfc6d1352d2313247
[CMake] Replace AVFoundationSupport.py using CMake
https://bugs.webkit.org/show_bug.cgi?id=182891

Reviewed by Per Arne Vollan.

.:

Adds CMake checks for AVFoundation support replacing the functionality
of AVFoundationSupport.py.

CMake is used to detect the symbols expected with the HAVE_* checks for
AVFoundation support. This involves creating source files that will be
built which verifies the presence of symbols. For Apple frameworks it
is customary to include the main framework file which includes the
other associated headers.

The check for HAVE_AVCFPLAYERITEM_CALLBACK_VERSION_2 involves looking
for an enumeration which a symbol check cannot detect. Instead a small
program is used which will compile and link when the version 2
enumeration is present.

* Source/cmake/OptionsAppleWin.cmake:
* Source/cmake/OptionsWin.cmake:
* Source/cmake/WebKitCommon.cmake:
* Source/cmake/WebKitFeatures.cmake:

Source/WebCore:

No new tests. No change in behavior.

Remove refernces to PAL derived sources.

* PlatformWin.cmake:
* config.h:

Source/WebCore/PAL:

Remove AVFoundationSupport.py file and its invocation.

* AVFoundationSupport.py: Removed.
* config.h:
* pal/PlatformWin.cmake:

Source/WebKitLegacy/win:

Remove references to the config.h contained in WebCore as it should
not be accessible from outside of WebCore.

* WebKitPrefix.h:

Source/WTF:

Rely on CMake values for the added HAVE_* checks.

* wtf/Platform.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
ChangeLog
Source/WTF/ChangeLog
Source/WTF/wtf/Platform.h
Source/WebCore/ChangeLog
Source/WebCore/PAL/AVFoundationSupport.py [deleted file]
Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/config.h
Source/WebCore/PAL/pal/PlatformWin.cmake
Source/WebCore/PlatformWin.cmake
Source/WebCore/config.h
Source/WebKitLegacy/win/ChangeLog
Source/WebKitLegacy/win/WebKitPrefix.h
Source/cmake/OptionsAppleWin.cmake
Source/cmake/OptionsWin.cmake
Source/cmake/WebKitCommon.cmake
Source/cmake/WebKitFeatures.cmake