https://bugs.webkit.org/show_bug.cgi?id=148234
Reviewed by Tim Horton.
Source/JavaScriptCore:
* shell/PlatformWin.cmake:
Define WIN_CAIRO so the WinCairo jsc.exe can find the correct dlls.
Source/ThirdParty:
* gtest/CMakeLists.txt:
gtest needs to be a static library on Windows to not crash.
Source/ThirdParty/ANGLE:
* CMakeLists.txt:
Copy headers to forwarding headers.
Source/WebCore:
* CMakeLists.txt:
* PlatformEfl.cmake:
* PlatformGTK.cmake:
* PlatformWin.cmake:
Make including ANGLE headers platform specific because EFL and GTK don't want to copy headers,
but we need to in order to get the Windows build working with each Source subdirectory isolated.
Source/WebKit:
* PlatformWin.cmake:
Include ANGLE forwarding headers directories.
Tools:
* DumpRenderTree/PlatformWin.cmake:
* TestWebKitAPI/CMakeLists.txt:
* TestWebKitAPI/PlatformWin.cmake:
Define WIN_CAIRO so WinCairo executables can find the correct dlls in WebKitLibraries.
gtest needs to be a static library on Windows to not crash.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188694
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-08-20 Alex Christensen <achristensen@webkit.org>
+
+ Clean up CMake build after r188673
+ https://bugs.webkit.org/show_bug.cgi?id=148234
+
+ Reviewed by Tim Horton.
+
+ * shell/PlatformWin.cmake:
+ Define WIN_CAIRO so the WinCairo jsc.exe can find the correct dlls.
+
2015-08-20 Mark Lam <mark.lam@apple.com>
A watchdog tests is failing on Windows.
set_target_properties(jscdll PROPERTIES FOLDER "JavaScriptCore")
set_target_properties(jscdll PROPERTIES OUTPUT_NAME "jsc${DEBUG_SUFFIX}")
+if (${WTF_PLATFORM_WIN_CAIRO})
+ add_definitions(-DWIN_CAIRO)
+endif ()
+
set(JSC_SOURCES ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp)
set(JSC_LIBRARIES shlwapi)
add_definitions(-DUSE_CONSOLE_ENTRY_POINT)
libANGLE
)
+file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/egl)
+file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/GLES2)
+file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/GLSLANG)
+file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/khr)
+file(GLOB _files_ANGLE "${THIRDPARTY_DIR}/ANGLE/ANGLE/*.h")
+file(GLOB _files_egl "${THIRDPARTY_DIR}/ANGLE/include/egl/*.h")
+file(GLOB _files_GLES2 "${THIRDPARTY_DIR}/ANGLE/include/GLES2/*.h")
+file(GLOB _files_GLSLANG "${THIRDPARTY_DIR}/ANGLE/include/GLSLANG/*.h")
+file(GLOB _files_khr "${THIRDPARTY_DIR}/ANGLE/include/khr/*.h")
+foreach (_file ${_files_ANGLE})
+ file(COPY ${_file} DESTINATION ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/)
+endforeach ()
+foreach (_file ${_files_egl})
+ file(COPY ${_file} DESTINATION ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/egl)
+endforeach ()
+foreach (_file ${_files_GLES2})
+ file(COPY ${_file} DESTINATION ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/GLES2)
+endforeach ()
+foreach (_file ${_files_GLSLANG})
+ file(COPY ${_file} DESTINATION ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/GLSLANG)
+endforeach ()
+foreach (_file ${_files_khr})
+ file(COPY ${_file} DESTINATION ${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/khr)
+endforeach ()
+
set_target_properties(libANGLE PROPERTIES FOLDER "ANGLE")
set_target_properties(libEGL PROPERTIES FOLDER "ANGLE")
set_target_properties(libGLESv2 PROPERTIES FOLDER "ANGLE")
+2015-08-20 Alex Christensen <achristensen@webkit.org>
+
+ Clean up CMake build after r188673
+ https://bugs.webkit.org/show_bug.cgi?id=148234
+
+ Reviewed by Tim Horton.
+
+ * CMakeLists.txt:
+ Copy headers to forwarding headers.
+
2015-08-11 Brent Fulgham <bfulgham@apple.com>
[Win] Switch Windows build to Visual Studio 2015
+2015-08-20 Alex Christensen <achristensen@webkit.org>
+
+ Clean up CMake build after r188673
+ https://bugs.webkit.org/show_bug.cgi?id=148234
+
+ Reviewed by Tim Horton.
+
+ * gtest/CMakeLists.txt:
+ gtest needs to be a static library on Windows to not crash.
+
2015-08-11 Brent Fulgham <bfulgham@apple.com>
[Win] Switch Windows build to Visual Studio 2015
if (WIN32)
# MSVC 2015 requires this definition for INTMAX_MAX to be defined.
- add_definitions(-D__STDC_LIMIT_MACROS)
+ add_definitions(-D__STDC_LIMIT_MACROS -DGTEST_CREATE_SHARED_LIBRARY=0)
+ # gtest crashes on exit on Windows if it is a dll.
+ add_library(gtest STATIC ${GTEST_SOURCES})
+else ()
+ add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=1)
+ add_library(gtest SHARED ${GTEST_SOURCES})
endif ()
-add_library(gtest SHARED ${GTEST_SOURCES})
include_directories(${GTEST_INCLUDE_DIRECTORIES})
-add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=1 -DGTEST_HAS_RTTI=0)
+add_definitions(-DGTEST_HAS_RTTI=0)
# FIXME: This works around compatibility problems in the old version of the third-pary
# googletest source code checkout. It should be removed once we upgrade to a newer version.
)
endif ()
-list(APPEND WebCore_INCLUDE_DIRECTORIES
- "${THIRDPARTY_DIR}/ANGLE/"
- "${THIRDPARTY_DIR}/ANGLE/include/KHR"
-)
-
if (ENABLE_WEB_REPLAY)
list(APPEND WebCore_INCLUDE_DIRECTORIES
"${JAVASCRIPTCORE_DIR}/inspector"
+2015-08-20 Alex Christensen <achristensen@webkit.org>
+
+ Clean up CMake build after r188673
+ https://bugs.webkit.org/show_bug.cgi?id=148234
+
+ Reviewed by Tim Horton.
+
+ * CMakeLists.txt:
+ * PlatformEfl.cmake:
+ * PlatformGTK.cmake:
+ * PlatformWin.cmake:
+ Make including ANGLE headers platform specific because EFL and GTK don't want to copy headers,
+ but we need to in order to get the Windows build working with each Source subdirectory isolated.
+
2015-08-20 Beth Dakin <bdakin@apple.com>
Standalone image documents should send their size to the UIClient just like
"${JAVASCRIPTCORE_DIR}/profiler"
"${JAVASCRIPTCORE_DIR}/runtime"
"${JAVASCRIPTCORE_DIR}/yarr"
+ "${THIRDPARTY_DIR}/ANGLE/"
+ "${THIRDPARTY_DIR}/ANGLE/include/KHR"
"${WEBCORE_DIR}/editing/atk"
"${WEBCORE_DIR}/page/efl"
"${WEBCORE_DIR}/page/scrolling/coordinatedgraphics"
"${JAVASCRIPTCORE_DIR}/profiler"
"${JAVASCRIPTCORE_DIR}/runtime"
"${JAVASCRIPTCORE_DIR}/yarr"
+ "${THIRDPARTY_DIR}/ANGLE/"
+ "${THIRDPARTY_DIR}/ANGLE/include/KHR"
"${WEBCORE_DIR}/accessibility/atk"
"${WEBCORE_DIR}/editing/atk"
"${WEBCORE_DIR}/page/gtk"
add_definitions(/bigobj)
list(APPEND WebCore_INCLUDE_DIRECTORIES
+ "${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE"
+ "${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/KHR"
"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore"
"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore/ForwardingHeaders"
"${DERIVED_SOURCES_DIR}/ForwardingHeaders/JavaScriptCore/API"
DESTINATION
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
)
+if (${WTF_PLATFORM_WIN_CAIRO} AND EXISTS ${WEBKIT_LIBRARIES_DIR}/cacert.pem)
+ make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates)
+ file(COPY
+ ${WEBKIT_LIBRARIES_DIR}/cacert.pem
+ DESTINATION
+ ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/certificates
+ )
+endif ()
file(MAKE_DIRECTORY ${DERIVED_SOURCES_DIR}/ForwardingHeaders/WebCore)
+2015-08-20 Alex Christensen <achristensen@webkit.org>
+
+ Clean up CMake build after r188673
+ https://bugs.webkit.org/show_bug.cgi?id=148234
+
+ Reviewed by Tim Horton.
+
+ * PlatformWin.cmake:
+ Include ANGLE forwarding headers directories.
+
2015-08-19 Alex Christensen <achristensen@webkit.org>
CMake Windows build should not include files directly from other Source directories
"${DERIVED_SOURCES_WEBKIT_DIR}/include"
"${DERIVED_SOURCES_WEBKIT_DIR}/Interfaces"
"${DERIVED_SOURCES_DIR}"
+ "${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE"
+ "${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include"
+ "${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/egl"
+ "${DERIVED_SOURCES_DIR}/ForwardingHeaders/ANGLE/include/khr"
)
list(APPEND WebKit_INCLUDES
+2015-08-20 Alex Christensen <achristensen@webkit.org>
+
+ Clean up CMake build after r188673
+ https://bugs.webkit.org/show_bug.cgi?id=148234
+
+ Reviewed by Tim Horton.
+
+ * DumpRenderTree/PlatformWin.cmake:
+ * TestWebKitAPI/CMakeLists.txt:
+ * TestWebKitAPI/PlatformWin.cmake:
+ Define WIN_CAIRO so WinCairo executables can find the correct dlls in WebKitLibraries.
+ gtest needs to be a static library on Windows to not crash.
+
2015-08-19 Alex Christensen <achristensen@webkit.org>
CMake Windows build should not include files directly from other Source directories
TestNetscapePlugin/win/WindowedPluginTest.cpp
)
+if (${WTF_PLATFORM_WIN_CAIRO})
+ add_definitions(-DWIN_CAIRO)
+endif ()
+
list(APPEND TestNetscapePlugin_LIBRARIES
Msimg32
Shlwapi
get_property(TestWebKitAPIInjectedBundle_PATH TARGET TestWebKitAPIInjectedBundle PROPERTY LOCATION)
endif ()
-add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DGTEST_HAS_RTTI=0
+if (WIN32)
+ add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=0)
+else ()
+ add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1)
+endif ()
+
+add_definitions(-DGTEST_HAS_RTTI=0
-DTEST_WEBKIT2_RESOURCES_DIR=\"${TESTWEBKITAPI_DIR}/Tests/WebKit2\"
-DTEST_INJECTED_BUNDLE_PATH=\"${TestWebKitAPIInjectedBundle_PATH}\"
)
set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY_WTF "${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}")
add_definitions(-DUSE_CONSOLE_ENTRY_POINT)
+if (${WTF_PLATFORM_WIN_CAIRO})
+ add_definitions(-DWIN_CAIRO)
+endif ()
+
set(test_main_SOURCES
${TESTWEBKITAPI_DIR}/win/main.cpp
)