Bläddra i källkod

Meta: Add dependencies for the JS repl to the gn build

Andrew Kaster 2 år sedan
förälder
incheckning
bf02069a89

+ 1 - 1
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
 }

+ 15 - 0
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",
+  ]
+}

+ 9 - 0
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" ]
+}

+ 12 - 0
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",
+  ]
+}