OLD | NEW |
---|---|
(Empty) | |
1 executable("hello_world") { | |
Mark Mentovai
2016/06/28 15:42:51
You shouldn’t check this file in. The gn tutorial
| |
2 sources = [ | |
3 "hello_world.cc", | |
4 ] | |
5 } | |
6 | |
7 static_library("hello") { | |
8 sources = [ | |
9 "hello.cc", | |
10 ] | |
11 defines = [ "TWO_PEOPLE" ] | |
12 configs += [ ":hello_config" ] | |
13 all_dependent_configs = [ ":hello_config" ] | |
14 print(configs) | |
15 } | |
16 | |
17 executable("say_hello") { | |
18 sources = [ | |
19 "say_hello.cc", | |
20 ] | |
21 deps = [ | |
22 ":hello", | |
23 ] | |
24 } | |
25 | |
26 config("hello_config") { | |
27 defines = [ "TWO_PEOPLE" ] | |
28 } | |
OLD | NEW |