mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:17:45 +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
18
Meta/gn/build/buildflags.gni
Normal file
18
Meta/gn/build/buildflags.gni
Normal file
|
@ -0,0 +1,18 @@
|
|||
declare_args() {
|
||||
# Build for debugging. Equivalent to is_optimized=false symbol_level=2.
|
||||
is_debug = false
|
||||
}
|
||||
|
||||
# args that depend on other args must live in a later declare_args() block.
|
||||
declare_args() {
|
||||
# Whether to build with optimizations.
|
||||
is_optimized = !is_debug
|
||||
|
||||
if (is_debug) {
|
||||
# Debug info symbol level. 0: No symbols; 1: Line numbers; 2: Full symbols.
|
||||
symbol_level = 2
|
||||
} else {
|
||||
# Debug info symbol level. 0: No symbols; 1: Line numbers; 2: Full symbols.
|
||||
symbol_level = 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue