Skip to content

Commit

Permalink
Add .gn files
Browse files Browse the repository at this point in the history
  • Loading branch information
harrywong committed Jan 11, 2019
1 parent a127aac commit 83f1515
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 35 deletions.
11 changes: 11 additions & 0 deletions .gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is used by the GN meta build system to find the root of the source
# tree and to set startup options. For documentation on the values set in this
# file, run "gn help dotfile" at the command line.

buildconfig = "//build/config/BUILDCONFIG.gn"

check_targets = [
"//libraries/*",
"//plugins/*",
"//programs/*"
]
18 changes: 18 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
flags = []
if(build_type == "debug") {
flags += ["-O0", "-g"]
}
else if(build_type == "release") {
flags += ["-O3", "-DNDEBUG"]
}

config("root") {
cflags_cc = [
"-std=c++17",
"-Wall",
"-Wextra",
"-Werror",
"-Wno-unused-parameter"
] + flags
}

35 changes: 0 additions & 35 deletions build.gn

This file was deleted.

0 comments on commit 83f1515

Please sign in to comment.