From 95e2039abbfd68780ed1cf53585980a0097f588b Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 29 Oct 2023 16:03:43 -0600 Subject: [PATCH] Meta: Port ec8330b6479dcc33471fb2bec8eb549cb38187ef to gn build --- .../secondary/Userland/Libraries/LibJS/BUILD.gn | 3 +++ .../secondary/Userland/Libraries/LibX86/BUILD.gn | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Meta/gn/secondary/Userland/Libraries/LibX86/BUILD.gn diff --git a/Meta/gn/secondary/Userland/Libraries/LibJS/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibJS/BUILD.gn index ec9ff488bc..eb84c7e41f 100644 --- a/Meta/gn/secondary/Userland/Libraries/LibJS/BUILD.gn +++ b/Meta/gn/secondary/Userland/Libraries/LibJS/BUILD.gn @@ -17,6 +17,9 @@ shared_library("LibJS") { "//Userland/Libraries/LibSyntax", "//Userland/Libraries/LibUnicode", ] + if (current_cpu == "x86" || current_cpu == "x64") { + deps += [ "//Userland/Libraries/LibX86" ] + } sources = [ "AST.cpp", "Bytecode/ASTCodegen.cpp", diff --git a/Meta/gn/secondary/Userland/Libraries/LibX86/BUILD.gn b/Meta/gn/secondary/Userland/Libraries/LibX86/BUILD.gn new file mode 100644 index 0000000000..8238377848 --- /dev/null +++ b/Meta/gn/secondary/Userland/Libraries/LibX86/BUILD.gn @@ -0,0 +1,16 @@ +shared_library("LibX86") { + output_name = "x86" + include_dirs = [ "//Userland/Libraries" ] + + deps = [ + "//AK", + "//Userland/Libraries/LibCore", + ] + sources = [ + "Disassembler.h", + "ELFSymbolProvider.h", + "Instruction.cpp", + "Instruction.h", + "Interpreter.h", + ] +}