https://bugs.webkit.org/show_bug.cgi?id=147972
Patch by Alex Christensen <achristensen@webkit.org> on 2015-08-19
Reviewed by Tim Horton.
.:
* Source/cmake/OptionsMac.cmake:
Enable API tests in Mac's CMake build.
Source/WebKit2:
* PlatformMac.cmake:
Make more forwarding headers.
Tools:
TestWTF only depends on gtest and WTF instead of TestWebKitAPi depending on all of WebKit.
Now I can run the WTF API tests after a few seconds of building instead of waiting for all of WebKit to build.
* TestWebKitAPI/CMakeLists.txt:
Added WTF as a dependency for platforms that do not have ForwardingHeadersForTestWebKitAPI_NAME.
WTF was already a library that was linked, but having at least one item makes the syntax of add_dependencies work.
* TestWebKitAPI/PlatformMac.cmake: Added.
* TestWebKitAPI/config.h:
Postpone some build fixes until WebKit builds completely on Mac with CMake.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188643
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-08-19 Alex Christensen <achristensen@webkit.org>
+
+ Build TestWTF on Mac with CMake.
+ https://bugs.webkit.org/show_bug.cgi?id=147972
+
+ Reviewed by Tim Horton.
+
+ * Source/cmake/OptionsMac.cmake:
+ Enable API tests in Mac's CMake build.
+
2015-08-18 Alex Christensen <achristensen@webkit.org>
[CMake] REGRESSION(r188540): WebKitTestRunner is not longer built and all the tests (layout and perf) fail.
+2015-08-19 Alex Christensen <achristensen@webkit.org>
+
+ Build TestWTF on Mac with CMake.
+ https://bugs.webkit.org/show_bug.cgi?id=147972
+
+ Reviewed by Tim Horton.
+
+ * PlatformMac.cmake:
+ Make more forwarding headers.
+
2015-08-18 Filip Pizlo <fpizlo@apple.com>
Replace all uses of std::mutex/std::condition_variable with WTF::Lock/WTF::Condition
UIProcess/Cocoa
UIProcess/API/C
+ UIProcess/API/Cocoa
WebProcess/WebPage
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_OVERFLOW_SCROLLING PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_OVERFLOW_SCROLLING_iphoneos PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_OVERFLOW_SCROLLING_iphonesimulator PRIVATE ON)
+WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_API_TESTS PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_AVF_CAPTIONS PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_AVF_CAPTIONS_macosx PRIVATE ON)
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_AVF_CAPTIONS_macosx_1080 PRIVATE OFF)
+2015-08-19 Alex Christensen <achristensen@webkit.org>
+
+ Build TestWTF on Mac with CMake.
+ https://bugs.webkit.org/show_bug.cgi?id=147972
+
+ Reviewed by Tim Horton.
+
+ TestWTF only depends on gtest and WTF instead of TestWebKitAPi depending on all of WebKit.
+ Now I can run the WTF API tests after a few seconds of building instead of waiting for all of WebKit to build.
+
+ * TestWebKitAPI/CMakeLists.txt:
+ Added WTF as a dependency for platforms that do not have ForwardingHeadersForTestWebKitAPI_NAME.
+ WTF was already a library that was linked, but having at least one item makes the syntax of add_dependencies work.
+ * TestWebKitAPI/PlatformMac.cmake: Added.
+ * TestWebKitAPI/config.h:
+ Postpone some build fixes until WebKit builds completely on Mac with CMake.
+
2015-08-19 Brian Burg <bburg@apple.com>
Unreviewed, add Aleksandr Skachkov to the list of contributors.
)
target_link_libraries(TestWebKitAPIInjectedBundle ${TestWebKitAPI_LIBRARIES})
- add_dependencies(TestWebKitAPIInjectedBundle ${ForwardingHeadersForTestWebKitAPI_NAME})
+ add_dependencies(TestWebKitAPIInjectedBundle WTF ${ForwardingHeadersForTestWebKitAPI_NAME})
get_property(TestWebKitAPIInjectedBundle_PATH TARGET TestWebKitAPIInjectedBundle PROPERTY LOCATION)
endif ()
--- /dev/null
+set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
+set(TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY_WTF "${TESTWEBKITAPI_RUNTIME_OUTPUT_DIRECTORY}")
+
+include_directories(
+ ${DERIVED_SOURCES_DIR}/ForwardingHeaders
+ "${WTF_DIR}/icu"
+)
+
+set(test_main_SOURCES
+ ${TESTWEBKITAPI_DIR}/mac/mainMac.mm
+)
+
+find_library(CARBON_LIBRARY Carbon)
+find_library(COCOA_LIBRARY Cocoa)
+find_library(COREFOUNDATION_LIBRARY CoreFoundation)
+list(APPEND test_wtf_LIBRARIES
+ ${CARBON_LIBRARY}
+ ${COCOA_LIBRARY}
+ ${COREFOUNDATION_LIBRARY}
+ libicucore.dylib
+)
#endif
#if PLATFORM(COCOA) && defined(__OBJC__)
+// FIXME: Get Cocoa tests working with CMake on Mac.
+#if !defined(BUILDING_WITH_CMAKE)
#import <WebKit/WebKit.h>
#endif
+#endif
#if !PLATFORM(IOS)
#define WK_HAVE_C_SPI 1