| if (WEBKIT_SDK_IS_MACOS) | |
| # MiniBrowser is the primary dev-loop target -- simpler than the test harnesses. | |
| # Default ON is set via WEBKIT_OPTION_DEFAULT_PORT_VALUE in OptionsMac.cmake. | |
| if (ENABLE_MINIBROWSER AND ENABLE_WEBKIT) | |
| add_subdirectory(MiniBrowser/mac) | |
| endif () | |
| # A WEBKIT_OPTION would reach cmakeconfig.h, so turning SwiftBrowser on or off | |
| # would rebuild everything that includes it. | |
| option(ENABLE_SWIFTBROWSER "Build SwiftBrowser" ON) | |
| if (ENABLE_SWIFTBROWSER AND ENABLE_WEBKIT) | |
| add_subdirectory(SwiftBrowser) | |
| endif () | |
| if (ENABLE_LAYOUT_TESTS) | |
| # LayoutTestHelper locks screen color profile during test runs (mac.py:start_helper). | |
| # FIXME: Stub config.h works around DRT/config.h pulling in JSC headers. | |
| # https://bugs.webkit.org/show_bug.cgi?id=312070 | |
| file(CONFIGURE OUTPUT "${CMAKE_BINARY_DIR}/LayoutTestHelper-stub/config.h" CONTENT | |
| "// Stub: https://bugs.webkit.org/show_bug.cgi?id=312070\n#include <wtf/Platform.h>\n") | |
| # FIXME: Use the WEBKIT_EXECUTABLE macro pair. | |
| add_executable(LayoutTestHelper DumpRenderTree/mac/LayoutTestHelper.m) | |
| target_include_directories(LayoutTestHelper BEFORE PRIVATE | |
| "${CMAKE_BINARY_DIR}/LayoutTestHelper-stub" | |
| "${WTF_FRAMEWORK_HEADERS_DIR}" | |
| "${bmalloc_FRAMEWORK_HEADERS_DIR}" | |
| "${CMAKE_BINARY_DIR}" # cmakeconfig.h | |
| ) | |
| target_compile_options(LayoutTestHelper PRIVATE | |
| -Wno-deprecated-declarations | |
| -F${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks # ColorSyncPriv.h | |
| ) | |
| target_link_libraries(LayoutTestHelper PRIVATE | |
| "-framework Cocoa" | |
| "-framework IOKit" | |
| "-framework ApplicationServices" | |
| ) | |
| _WEBKIT_ADD_DSYM(LayoutTestHelper) | |
| endif () | |
| # Exercises the lldb summary providers and dump_class_layout (Tools/Scripts/test-lldb-webkit). | |
| # Only needs WTF, so it is not gated on ENABLE_WEBKIT. | |
| option(ENABLE_LLDB_WEBKIT_TESTER "Build lldbWebKitTester for the Tools/lldb tests" ON) | |
| if (ENABLE_LLDB_WEBKIT_TESTER) | |
| add_subdirectory(lldb/lldbWebKitTester) | |
| endif () | |
| endif () |