Title: [92506] branches/safari-534.51-branch/Source/WebCore

Diff

Modified: branches/safari-534.51-branch/Source/WebCore/ChangeLog (92505 => 92506)


--- branches/safari-534.51-branch/Source/WebCore/ChangeLog	2011-08-05 20:34:40 UTC (rev 92505)
+++ branches/safari-534.51-branch/Source/WebCore/ChangeLog	2011-08-05 20:38:40 UTC (rev 92506)
@@ -1,5 +1,34 @@
 2011-08-05  Lucas Forschler  <[email protected]>
 
+    Merged 92308.
+
+    2011-08-03  Jeff Miller  <[email protected]>
+
+        Generate WebCoreHeaderDetection.h on Windows to define HAVE_AVCF
+        https://bugs.webkit.org/show_bug.cgi?id=65634
+        
+        AVFoundation support on Windows will (eventually) be predicated on the
+        availability of AVFoundationCF headers and libraries in the WebKit Support
+        Libraries, so we test for the existence of one of the header files (AVCFBase.h)
+        to determine whether to AVCF is available.
+        
+        For now, even if AVFoundationCF is available, leave WTF_USE_AVFOUNDATION off, since
+        it's not ready to be turned on yet (which is covered by http://webkit.org/b/65400).
+        
+        Ideally, we would generate WebCoreHeaderDetection.h on all platforms so we could
+        include it unconditionally in WebCore's config.h, but unfortunately the Mac-only file
+        ExportFileGenerator.cpp depends on WTF_USE_AVFOUNDATION being set correctly, and since this
+        .cpp file is also generated it doesn't have access to WebCoreHeaderDetection.h.
+
+        Reviewed by Adam Roben.
+
+        No change in functionality, so new tests.
+
+        * DerivedSources.make: Add rule to generate WebCoreHeaderDetection.h to set HAVE_AVCF on Windows.
+        * config.h: Include WebCoreHeaderDetection.h on Windows, check for HAVE(AVCF) but always leave WTF_USE_AVFOUNDATION off on Windows for now.
+
+2011-08-05  Lucas Forschler  <[email protected]>
+
     Merged 92210.
 
     2011-08-02  Jeff Miller  <[email protected]>

Modified: branches/safari-534.51-branch/Source/WebCore/DerivedSources.make (92505 => 92506)


--- branches/safari-534.51-branch/Source/WebCore/DerivedSources.make	2011-08-05 20:34:40 UTC (rev 92505)
+++ branches/safari-534.51-branch/Source/WebCore/DerivedSources.make	2011-08-05 20:38:40 UTC (rev 92506)
@@ -955,3 +955,16 @@
 # --------
 
 endif # MACOS
+
+# ------------------------
+
+# Header detection
+
+ifeq ($(OS),Windows_NT)
+
+all : WebCoreHeaderDetection.h
+
+WebCoreHeaderDetection.h : DerivedSources.make
+	if [ -f "$(WEBKITLIBRARIESDIR)/include/AVFoundationCF/AVCFBase.h" ]; then echo "#define HAVE_AVCF 1" > $@; else echo > $@; fi
+
+endif # Windows_NT

Modified: branches/safari-534.51-branch/Source/WebCore/config.h (92505 => 92506)


--- branches/safari-534.51-branch/Source/WebCore/config.h	2011-08-05 20:34:40 UTC (rev 92505)
+++ branches/safari-534.51-branch/Source/WebCore/config.h	2011-08-05 20:38:40 UTC (rev 92506)
@@ -29,6 +29,10 @@
 
 #include <wtf/Platform.h>
 
+#if OS(WINDOWS)
+#include <WebCore/WebCoreHeaderDetection.h>
+#endif
+
 /* See note in wtf/Platform.h for more info on EXPORT_MACROS. */
 #if USE(EXPORT_MACROS)
 
@@ -256,3 +260,7 @@
 #define WTF_USE_AVFOUNDATION 1
 #endif
 
+#if PLATFORM(WIN) && HAVE(AVCF)
+/// FIXME: Adopt AVCF media back end on Windows http://webkit.org/b/65400
+#define WTF_USE_AVFOUNDATION 0
+#endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to