[PAL][Win] Copy forwarding headers
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2017 22:33:18 +0000 (22:33 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2017 22:33:18 +0000 (22:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=175012

Patch by Yoshiaki Jitsukawa <jitsu@rd.scei.sony.co.jp> on 2017-08-01
Reviewed by Myles C. Maxfield.

* pal/PlatformAppleWin.cmake: Added.
* pal/PlatformWin.cmake:
* pal/PlatformWinCairo.cmake: Added.

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

Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/pal/PlatformAppleWin.cmake [new file with mode: 0644]
Source/WebCore/PAL/pal/PlatformWin.cmake
Source/WebCore/PAL/pal/PlatformWinCairo.cmake [new file with mode: 0644]

index 8f4f26c62122ecb035115a0b77cceddfb18ab399..fa2df8fbf7580e5dc86f5cc07626f68dcbb0472a 100644 (file)
@@ -1,3 +1,14 @@
+2017-08-01  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
+
+        [PAL][Win] Copy forwarding headers
+        https://bugs.webkit.org/show_bug.cgi?id=175012
+
+        Reviewed by Myles C. Maxfield.
+
+        * pal/PlatformAppleWin.cmake: Added.
+        * pal/PlatformWin.cmake:
+        * pal/PlatformWinCairo.cmake: Added.
+
 2017-07-26  Brian Burg  <bburg@apple.com>
 
         Remove WEB_TIMING feature flag
diff --git a/Source/WebCore/PAL/pal/PlatformAppleWin.cmake b/Source/WebCore/PAL/pal/PlatformAppleWin.cmake
new file mode 100644 (file)
index 0000000..1f5f932
--- /dev/null
@@ -0,0 +1,8 @@
+list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES
+)
+
+if (${USE_DIRECT2D})
+else ()
+    list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES
+    )
+endif ()
index 41b630d98a2417ea999f7780c671e04fc046318e..2069c3aea65c601c95ce90f85aac58004c0f86e0 100644 (file)
@@ -11,10 +11,21 @@ list(APPEND PAL_INCLUDE_DIRECTORIES
     "${CMAKE_BINARY_DIR}/../include/private"
 )
 
+list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES .)
+
+if (${WTF_PLATFORM_WIN_CAIRO})
+    include(PlatformWinCairo.cmake)
+else ()
+    include(PlatformAppleWin.cmake)
+endif ()
+
 set(PAL_OUTPUT_NAME PAL${DEBUG_SUFFIX})
 
 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal)
-file(GLOB _files_PAL "${PAL_DIR}/pal/*.h")
-foreach (_file ${_files_PAL})
-    file(COPY ${_file} DESTINATION ${FORWARDING_HEADERS_DIR}/WebCore/pal/)
+foreach (_directory ${PAL_FORWARDING_HEADERS_DIRECTORIES})
+    file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
+    file(GLOB _files "${PAL_DIR}/pal/${_directory}/*.h")
+    foreach (_file ${_files})
+        file(COPY ${_file} DESTINATION ${FORWARDING_HEADERS_DIR}/WebCore/pal/${_directory})
+    endforeach ()
 endforeach ()
diff --git a/Source/WebCore/PAL/pal/PlatformWinCairo.cmake b/Source/WebCore/PAL/pal/PlatformWinCairo.cmake
new file mode 100644 (file)
index 0000000..2842adc
--- /dev/null
@@ -0,0 +1,2 @@
+list(APPEND PAL_FORWARDING_HEADERS_DIRECTORIES
+)