diff --git a/Userland/DevTools/HackStudio/ProjectBuilder.cpp b/Userland/DevTools/HackStudio/ProjectBuilder.cpp index 91f3141721..a41a9006b4 100644 --- a/Userland/DevTools/HackStudio/ProjectBuilder.cpp +++ b/Userland/DevTools/HackStudio/ProjectBuilder.cpp @@ -167,7 +167,7 @@ DeprecatedString ProjectBuilder::generate_cmake_file_content() const builder.appendff("add_library({} SHARED IMPORTED GLOBAL)\n", library.key); builder.appendff("set_target_properties({} PROPERTIES IMPORTED_LOCATION {})\n", library.key, library.value->path); - if (library.key == "LibCStaticWithoutDeps"sv || library.key == "DumpLayoutTree"sv) + if (library.key == "LibCStaticWithoutDeps"sv) continue; // We need to specify the dependencies for each defined library in CMake because some applications do not specify diff --git a/Userland/Libraries/LibWebView/CMakeLists.txt b/Userland/Libraries/LibWebView/CMakeLists.txt index 1147a4c0ef..a5801519e3 100644 --- a/Userland/Libraries/LibWebView/CMakeLists.txt +++ b/Userland/Libraries/LibWebView/CMakeLists.txt @@ -18,5 +18,3 @@ set(GENERATED_SOURCES serenity_lib(LibWebView webview) target_link_libraries(LibWebView PRIVATE LibCore LibFileSystemAccessClient LibGfx LibGUI LibIPC LibProtocol LibWeb) - -add_subdirectory(DumpLayoutTree) diff --git a/Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt b/Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt deleted file mode 100644 index 6eb761c1d5..0000000000 --- a/Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -set(SOURCES - main.cpp -) - -serenity_bin(DumpLayoutTree) -target_link_libraries(DumpLayoutTree PRIVATE LibWebView LibWeb) diff --git a/Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp b/Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp deleted file mode 100644 index 0f7e824f39..0000000000 --- a/Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2020, Andreas Kling - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#include -#include -#include -#include - -int main(int argc, char** argv) -{ - auto app = GUI::Application::construct(argc, argv); - auto window = GUI::Window::construct(); - window->set_title("DumpLayoutTree"); - window->resize(800, 600); - window->show(); - auto web_view = window->set_main_widget().release_value_but_fixme_should_propagate_errors(); - web_view->load(URL::create_with_file_scheme(argv[1])); - web_view->on_load_finish = [&](auto&) { - auto dump = web_view->dump_layout_tree(); - write(STDOUT_FILENO, dump.characters(), dump.length() + 1); - _exit(0); - }; - return app->exec(); -}