From 9621e77a31509fa4f9b9337bd3d1b9f98624172a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 2 Jan 2024 09:44:32 -0500 Subject: [PATCH] Meta/gn: Move enable_qt arg into dedicated gni file No behavior change. --- Meta/gn/secondary/Ladybird/BUILD.gn | 6 +----- Meta/gn/secondary/Ladybird/enable_qt.gni | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 Meta/gn/secondary/Ladybird/enable_qt.gni diff --git a/Meta/gn/secondary/Ladybird/BUILD.gn b/Meta/gn/secondary/Ladybird/BUILD.gn index 6e4583456e..33aef0e58f 100644 --- a/Meta/gn/secondary/Ladybird/BUILD.gn +++ b/Meta/gn/secondary/Ladybird/BUILD.gn @@ -1,12 +1,8 @@ import("//Ladybird/compile_qt_resource_file.gni") +import("//Ladybird/enable_qt.gni") import("//Ladybird/link_qt.gni") import("//Ladybird/moc_qt_objects.gni") -declare_args() { - # Build the Ladybird application using the Qt chrome. - enable_qt = current_os != "mac" -} - group("Ladybird") { if (current_os == "mac") { deps = [ ":Ladybird.app" ] diff --git a/Meta/gn/secondary/Ladybird/enable_qt.gni b/Meta/gn/secondary/Ladybird/enable_qt.gni new file mode 100644 index 0000000000..f88108a801 --- /dev/null +++ b/Meta/gn/secondary/Ladybird/enable_qt.gni @@ -0,0 +1,4 @@ +declare_args() { + # Build the Ladybird application using the Qt chrome. + enable_qt = current_os != "mac" +}