haikuwebkit/Tools/WebKitTestRunner/PlatformGTK.cmake

60 lines
1.7 KiB
CMake
Raw Permalink Normal View History

add_custom_target(WebKitTestRunner-forwarding-headers
COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WebKitTestRunner_DIR} --include-path ${WebKitTestRunner_SHARED_DIR} --output ${FORWARDING_HEADERS_DIR} --platform gtk --platform soup
)
list(APPEND WebKitTestRunner_DEPENDENCIES WebKitTestRunner-forwarding-headers)
list(APPEND WebKitTestRunner_SOURCES
cairo/TestInvocationCairo.cpp
gtk/EventSenderProxyGtk.cpp
gtk/PlatformWebViewGtk.cpp
gtk/TestControllerGtk.cpp
gtk/UIScriptControllerGtk.cpp
gtk/main.cpp
)
list(APPEND WebKitTestRunner_INCLUDE_DIRECTORIES
[GTK] [CMake] Clean up generated sources directories https://bugs.webkit.org/show_bug.cgi?id=126216 Reviewed by Gustavo Noronha Silva. .: * Source/cmake/OptionsGTK.cmake: Pre-define the main derived sources directories so that they definitions can be shared easily throughout the build system. Source/WebCore: * PlatformGTK.cmake: Use the new directory variables. Source/WebKit: * PlatformGTK.cmake: Use the new derived source variables. Source/WebKit2: * PlatformGTK.cmake: Use the new derived sources variables. * UIProcess/API/gtk/tests/CMakeLists.txt: Ditto. Tools: * DumpRenderTree/PlatformGTK.cmake: Use the new derived sources variables. * GtkLauncher/CMakeLists.txt: Ditto. * MiniBrowser/gtk/CMakeLists.txt: Ditto. * TestWebKitAPI/CMakeLists.txt: Now that the EFL and GTK+ forwarding header locations differ, move the platform-specific includes to the EFL and GTK platform files. Also clean up forwarding header generation into on target. * TestWebKitAPI/PlatformEfl.cmake: Added EFL-specific locations to the include list. * TestWebKitAPI/PlatformGTK.cmake: Added GTK-specific locations to the include list. * WebKitTestRunner/CMakeLists.txt: Same as for TestWebKitAPI. * WebKitTestRunner/PlatformEfl.cmake: Ditto. * WebKitTestRunner/PlatformGTK.cmake: Ditto. * gtk/generate-gtkdoc: Update to select the appropriate derived sources locations for the cmake build. Canonical link: https://commits.webkit.org/144160@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-12-25 19:07:36 +00:00
${FORWARDING_HEADERS_DIR}
)
list(APPEND WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES
${GLIB_INCLUDE_DIRS}
)
list(APPEND WebKitTestRunner_LIBRARIES
${ATK_LIBRARIES}
${GLIB_LIBRARIES}
Cairo::Cairo
[GTK] CMake find module for GTK4 https://bugs.webkit.org/show_bug.cgi?id=210110 Reviewed by Don Olmstead. .: Rename FindGTK3.cmake as FindGTK.cmake, make it provide a GTK::GTK imported target, and rewrite the logic to detect which targets (backends) have been built into GTK to use the "targets" pkg-config variable instead of checking for multiple pkg-config modules. * Source/cmake/FindGDK3.cmake: Removed. * Source/cmake/FindGTK.cmake: Added. * Source/cmake/FindGTK3.cmake: Removed. This is now unused because the GTK::GTK target will transitively depend on GDK3 when using GTK3 and bring in the compiler and linker options automatically without needing to use a separate find module for GDK. * Source/cmake/OptionsGTK.cmake: Use the GTK::GTK imported target, change variables prefixed with GTK3_ to use the GTK_ prefix, and remove variables which are not needed anymore when using the target (GTK_LIBRARIES, GTK_INCLUDE_DIRS, GDK_LIBRARIES and GDK_INCLUDE_DIRS). Source/WebCore: No new tests needed. * PlatformGTK.cmake: Use the GTK::GTK imported target. Source/WebCore/PAL: * pal/PlatformGTK.cmake: Use the GTK::GTK imported target. Tools: * MiniBrowser/gtk/CMakeLists.txt: Use the GTK::GTK imported target. * TestWebKitAPI/PlatformGTK.cmake: Ditto. * TestWebKitAPI/glib/PlatformGTK.cmake: Ditto. * WebKitTestRunner/PlatformGTK.cmake: Ditto. Canonical link: https://commits.webkit.org/223019@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-07 16:25:17 +00:00
GTK::GTK
)
list(APPEND WebKitTestRunnerInjectedBundle_LIBRARIES
${ATK_LIBRARIES}
${GLIB_LIBRARIES}
Fontconfig::Fontconfig
[GTK] CMake find module for GTK4 https://bugs.webkit.org/show_bug.cgi?id=210110 Reviewed by Don Olmstead. .: Rename FindGTK3.cmake as FindGTK.cmake, make it provide a GTK::GTK imported target, and rewrite the logic to detect which targets (backends) have been built into GTK to use the "targets" pkg-config variable instead of checking for multiple pkg-config modules. * Source/cmake/FindGDK3.cmake: Removed. * Source/cmake/FindGTK.cmake: Added. * Source/cmake/FindGTK3.cmake: Removed. This is now unused because the GTK::GTK target will transitively depend on GDK3 when using GTK3 and bring in the compiler and linker options automatically without needing to use a separate find module for GDK. * Source/cmake/OptionsGTK.cmake: Use the GTK::GTK imported target, change variables prefixed with GTK3_ to use the GTK_ prefix, and remove variables which are not needed anymore when using the target (GTK_LIBRARIES, GTK_INCLUDE_DIRS, GDK_LIBRARIES and GDK_INCLUDE_DIRS). Source/WebCore: No new tests needed. * PlatformGTK.cmake: Use the GTK::GTK imported target. Source/WebCore/PAL: * pal/PlatformGTK.cmake: Use the GTK::GTK imported target. Tools: * MiniBrowser/gtk/CMakeLists.txt: Use the GTK::GTK imported target. * TestWebKitAPI/PlatformGTK.cmake: Ditto. * TestWebKitAPI/glib/PlatformGTK.cmake: Ditto. * WebKitTestRunner/PlatformGTK.cmake: Ditto. Canonical link: https://commits.webkit.org/223019@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-07 16:25:17 +00:00
GTK::GTK
)
list(APPEND WebKitTestRunnerInjectedBundle_SOURCES
InjectedBundle/atk/AccessibilityControllerAtk.cpp
InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp
InjectedBundle/atk/AccessibilityUIElementAtk.cpp
InjectedBundle/gtk/ActivateFontsGtk.cpp
InjectedBundle/gtk/InjectedBundleGtk.cpp
InjectedBundle/gtk/InjectedBundleUtilities.cpp
InjectedBundle/gtk/TestRunnerGtk.cpp
)
list(APPEND WebKitTestRunnerInjectedBundle_INCLUDE_DIRECTORIES
${ATK_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
${WebKitTestRunner_DIR}/InjectedBundle/atk
${WebKitTestRunner_DIR}/InjectedBundle/gtk
)
add_definitions(
[GTK] Remove DumpRenderTree and GtkLauncher https://bugs.webkit.org/show_bug.cgi?id=131373 Reviewed by Andreas Kling. Remove the GTK+ port of DumpRenderTree and GtkLauncher. These tools are no longer necessary now that WebKit1 GTK+ will be removed. * CMakeLists.txt: * DumpRenderTree/PlatformGTK.cmake: Removed. * DumpRenderTree/gtk/AccessibilityControllerGtk.cpp: Removed. * DumpRenderTree/gtk/DumpRenderTree.cpp: Removed. * DumpRenderTree/gtk/DumpRenderTreeGtk.h: Removed. * DumpRenderTree/gtk/EditingCallbacks.cpp: Removed. * DumpRenderTree/gtk/EditingCallbacks.h: Removed. * DumpRenderTree/gtk/EventSender.cpp: Removed. * DumpRenderTree/gtk/EventSender.h: Removed. * DumpRenderTree/gtk/GCControllerGtk.cpp: Removed. * DumpRenderTree/gtk/PixelDumpSupportGtk.cpp: Removed. * DumpRenderTree/gtk/SelfScrollingWebKitWebView.cpp: Removed. * DumpRenderTree/gtk/SelfScrollingWebKitWebView.h: Removed. * DumpRenderTree/gtk/TestRunnerGtk.cpp: Removed. * DumpRenderTree/gtk/TextInputController.cpp: Removed. * DumpRenderTree/gtk/TextInputController.h: Removed. * DumpRenderTree/gtk/WorkQueueItemGtk.cpp: Removed. * GtkLauncher/CMakeLists.txt: Removed. * GtkLauncher/LauncherInspectorWindow.c: Removed. * GtkLauncher/LauncherInspectorWindow.h: Removed. * GtkLauncher/main.c: Removed. * GtkLauncher/simple.svg: Removed. * GtkLauncher/text.html: Removed. * WebKitTestRunner/PlatformGTK.cmake: * WebKitTestRunner/gtk/fonts/AHEM____.TTF: Renamed from Tools/DumpRenderTree/gtk/fonts/AHEM____.TTF. * WebKitTestRunner/gtk/fonts/FontWithNoValidEncoding.fon: Renamed from Tools/DumpRenderTree/gtk/fonts/FontWithNoValidEncoding.fon. * WebKitTestRunner/gtk/fonts/fonts.conf: Renamed from Tools/DumpRenderTree/gtk/fonts/fonts.conf. Canonical link: https://commits.webkit.org/149458@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-04-08 22:52:26 +00:00
-DFONTS_CONF_DIR="${TOOLS_DIR}/WebKitTestRunner/gtk/fonts"
-DTOP_LEVEL_DIR="${CMAKE_SOURCE_DIR}"
)