From bf02069a891979025aa2bba72103364ec368e02e Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 8 Apr 2023 13:49:36 -0600 Subject: [PATCH] Meta: Add dependencies for the JS repl to the gn build --- Meta/gn/secondary/BUILD.gn | 2 +- .../secondary/Userland/Libraries/LibLine/BUILD.gn | 15 +++++++++++++++ .../Userland/Libraries/LibTextCodec/BUILD.gn | 9 +++++++++ Meta/gn/secondary/Userland/Utilities/BUILD.gn | 12 ++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Meta/gn/secondary/Userland/Libraries/LibLine/BUILD.gn create mode 100644 Meta/gn/secondary/Userland/Libraries/LibTextCodec/BUILD.gn create mode 100644 Meta/gn/secondary/Userland/Utilities/BUILD.gn diff --git a/Meta/gn/secondary/BUILD.gn b/Meta/gn/secondary/BUILD.gn index 988f20d610..94b27c570d 100644 --- a/Meta/gn/secondary/BUILD.gn +++ b/Meta/gn/secondary/BUILD.gn @@ -4,7 +4,7 @@ group("default") { deps = [ "//Meta/Lagom/Tools/CodeGenerators/IPCCompiler", "//Tests", - "//Userland/Libraries/LibJS", + "//Userland/Utilities:js", ] testonly = true } diff --git a/Meta/gn/secondary/Userland/Libraries/LibLine/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibLine/BUILD.gn new file mode 100644 index 0000000000..9982c1b5e7 --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibLine/BUILD.gn @@ -0,0 +1,15 @@ +shared_library("LibLine") { + output_name = "line" + include_dirs = [ "//Userland/Libraries" ] + deps = [ + "//AK", + "//Userland/Libraries/LibCore", + ] + sources = [ + "Editor.cpp", + "InternalFunctions.cpp", + "KeyCallbackMachine.cpp", + "SuggestionManager.cpp", + "XtermSuggestionDisplay.cpp", + ] +} diff --git a/Meta/gn/secondary/Userland/Libraries/LibTextCodec/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibTextCodec/BUILD.gn new file mode 100644 index 0000000000..728a6fe993 --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibTextCodec/BUILD.gn @@ -0,0 +1,9 @@ +shared_library("LibTextCodec") { + output_name = "textcodec" + include_dirs = [ "//Userland/Libraries" ] + deps = [ + "//AK", + "//Userland/Libraries/LibUnicode", + ] + sources = [ "Decoder.cpp" ] +} diff --git a/Meta/gn/secondary/Userland/Utilities/BUILD.gn b/Meta/gn/secondary/Userland/Utilities/BUILD.gn new file mode 100644 index 0000000000..3694639d54 --- /dev/null +++ b/Meta/gn/secondary/Userland/Utilities/BUILD.gn @@ -0,0 +1,12 @@ +executable("js") { + sources = [ "js.cpp" ] + include_dirs = [ "//Userland/Libraries" ] + deps = [ + "//AK", + "//Userland/Libraries/LibCore", + "//Userland/Libraries/LibJS", + "//Userland/Libraries/LibLine", + "//Userland/Libraries/LibMain", + "//Userland/Libraries/LibTextCodec", + ] +}