Chromium Code Reviews| Index: tools/gn/tutorial/BUILD.gn |
| diff --git a/tools/gn/tutorial/BUILD.gn b/tools/gn/tutorial/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..313c1265a399d4d8bd76a781545c514d9fd2485c |
| --- /dev/null |
| +++ b/tools/gn/tutorial/BUILD.gn |
| @@ -0,0 +1,28 @@ |
| +executable("hello_world") { |
|
Mark Mentovai
2016/06/28 15:42:51
You shouldn’t check this file in. The gn tutorial
|
| + sources = [ |
| + "hello_world.cc", |
| + ] |
| +} |
| + |
| +static_library("hello") { |
| + sources = [ |
| + "hello.cc", |
| + ] |
| + defines = [ "TWO_PEOPLE" ] |
| + configs += [ ":hello_config" ] |
| + all_dependent_configs = [ ":hello_config" ] |
| + print(configs) |
| +} |
| + |
| +executable("say_hello") { |
| + sources = [ |
| + "say_hello.cc", |
| + ] |
| + deps = [ |
| + ":hello", |
| + ] |
| +} |
| + |
| +config("hello_config") { |
| + defines = [ "TWO_PEOPLE" ] |
| +} |