Ensure ENABLE_MEDIA_SOURCE is defined inside DerivedSources.make
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 00:33:41 +0000 (00:33 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 00:33:41 +0000 (00:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194063

Reviewed by Jon Lee.

* DerivedSources.make:

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

Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make

index 9e95f4f..f492f8c 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-30  Jer Noble  <jer.noble@apple.com>
+
+        Ensure ENABLE_MEDIA_SOURCE is defined inside DerivedSources.make
+        https://bugs.webkit.org/show_bug.cgi?id=194063
+
+        Reviewed by Jon Lee.
+
+        * DerivedSources.make:
+
 2019-01-30  Youenn Fablet  <youenn@apple.com>
 
         Refactor ServiceWorkerJob management by ServiceWorkerContainer to make it more memory safe
index cd67576..9cd44e4 100644 (file)
@@ -1135,6 +1135,10 @@ ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_F
     ENABLE_ORIENTATION_EVENTS = 1
 endif
 
+ifeq ($(shell $(CC) -std=gnu++14 -x c++ -E -P -dM $(SDK_FLAGS) $(TARGET_TRIPLE_FLAGS) $(FRAMEWORK_FLAGS) $(HEADER_FLAGS) -include "wtf/Platform.h" /dev/null | grep ENABLE_MEDIA_SOURCE | cut -d' ' -f3), 1)
+       ENABLE_MEDIA_SOURCE = 1
+endif
+
 ifeq ($(WTF_PLATFORM_IOS_FAMILY), 1)
 FEATURE_AND_PLATFORM_DEFINES = $(FEATURE_DEFINES) WTF_PLATFORM_IOS_FAMILY
 else ifeq ($(WTF_PLATFORM_MAC), 1)
@@ -1262,6 +1266,10 @@ ifndef ENABLE_ORIENTATION_EVENTS
     ENABLE_ORIENTATION_EVENTS = 0
 endif
 
+ifndef ENABLE_MEDIA_SOURCE
+       ENABLE_MEDIA_SOURCE = 0
+endif
+
 ifeq ($(ENABLE_ORIENTATION_EVENTS), 1)
     ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_ORIENTATION_EVENTS
 endif
@@ -1270,6 +1278,10 @@ ifeq ($(USE_APPLE_INTERNAL_SDK), 1)
     ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) USE_APPLE_INTERNAL_SDK
 endif
 
+ifeq ($(ENABLE_MEDIA_SOURCE), 1)
+    ADDITIONAL_IDL_DEFINES := $(ADDITIONAL_IDL_DEFINES) ENABLE_MEDIA_SOURCE
+endif
+
 # CSS property names and value keywords
 
 WEBCORE_CSS_PROPERTY_NAMES := $(WebCore)/css/CSSProperties.json