Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: tools/gn/tutorial/BUILD.gn

Issue 2094583004: Initial commit for Chrome metainstaller on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional progress addressing downloader and parser, moved BUILD dependencies away from root. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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" ]
+}
« chrome/installer/mac/app/downloader.m ('K') | « chrome/installer/mac/app/testing/responseExample.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698