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

Unified Diff: tools/gn/docs/language.md

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/docs/language.md
diff --git a/tools/gn/docs/language.md b/tools/gn/docs/language.md
index 35ef4ae078d1af0d844f3a86521a05f8ea216ef7..7fb68e0d0190c456ce421db26bf93ea26d77f467 100644
--- a/tools/gn/docs/language.md
+++ b/tools/gn/docs/language.md
@@ -93,8 +93,8 @@ Lists support appending:
```
a = [ "first" ]
a += [ "second" ] # [ "first", "second" ]
-a += [ "third", "fourth" ] # [ "first", "second", "third", "fourth" ]
-b = a + [ "fifth" ] # [ "first", "second", "third", "fourth", "fifth" ]
+a += [ "third", "fourth" ] # [ "first", "second", "third", "fourth" ]
+b = a + [ "fifth" ] # [ "first", "second", "third", "fourth", "fifth" ]
```
Appending a list to another list appends the items in the second list
@@ -160,7 +160,7 @@ Conditionals look like C:
...
} else {
...
- }
+ }
```
You can use them in most places, even around entire targets if the
@@ -376,10 +376,11 @@ more help) are:
* `group`: A virtual dependency node that refers to one or more other
targets.
* `shared_library`: A .dll or .so.
+ * `loadable_module`: A .dll or .so loadable only at runtime.
* `source_set`: A lightweight virtual static library (usually
preferrable over a real static library since it will build faster).
* `static_library`: A .lib or .a file (normally you'll want a
- source\_set instead).
+ `source_set` instead).
You can extend this to make custom target types using templates (see below).
« no previous file with comments | « tools/gn/docs/faq.md ('k') | tools/gn/docs/reference.md » ('j') | tools/gn/function_toolchain.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698