mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:57:44 +00:00
Meta: Add the start of a gn build based on the LLVM gn build
"based on" in this context means "largely copied from"
This commit is contained in:
parent
4a9a1d1656
commit
4bfb146181
19 changed files with 1225 additions and 0 deletions
32
Meta/gn/secondary/Userland/Libraries/LibSystem/BUILD.gn
Normal file
32
Meta/gn/secondary/Userland/Libraries/LibSystem/BUILD.gn
Normal file
|
@ -0,0 +1,32 @@
|
|||
group("LibSystem") {
|
||||
deps = []
|
||||
if (current_os == "serenity") {
|
||||
deps += [
|
||||
":system_shared",
|
||||
":system_static",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
if (current_os == "serenity") {
|
||||
shared_library("system_shared") {
|
||||
output_name = "system"
|
||||
cflags_cc = [ "-nostdlib" ]
|
||||
ldflags = [
|
||||
"-nostdlib",
|
||||
"-static-libstdc++",
|
||||
]
|
||||
sources = [
|
||||
"syscall.cpp",
|
||||
"syscall.h",
|
||||
]
|
||||
}
|
||||
|
||||
static_library("system_static") {
|
||||
output_name = "system"
|
||||
sources = [
|
||||
"syscall.cpp",
|
||||
"syscall.h",
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue