Skip to content

Commit

Permalink
Fix some typos in gn's documentation for "copy".
Browse files Browse the repository at this point in the history
Review URL: https://codereview.chromium.org/1346653004

Cr-Commit-Position: refs/heads/master@{#349218}
  • Loading branch information
eroman authored and Commit bot committed Sep 16, 2015
1 parent eda851e commit c5166a2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
29 changes: 24 additions & 5 deletions tools/gn/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1045,15 +1045,15 @@
reference the output or generated intermediate file directories,
respectively.
Both "sources" and "outputs" must be specified. Sources can
Both "sources" and "outputs" must be specified. Sources can include
as many files as you want, but there can only be one item in the
outputs list (plural is used for the name for consistency with
other target types).
If there is more than one source file, your output name should specify
a mapping from each source files to output file names using source
a mapping from each source file to an output file name using source
expansion (see "gn help source_expansion"). The placeholders will
will look like "{{source_name_part}}", for example.
look like "{{source_name_part}}", for example.
```

Expand Down Expand Up @@ -3518,8 +3518,8 @@
A list of target labels.
Specifies dependencies of a target that are not actually linked into
the current target. Such dependencies will be built and will be available
at runtime.
the current target. Such dependencies will be built and will be
available at runtime.
This is normally used for things like plugins or helper programs that
a target needs at runtime.
Expand Down Expand Up @@ -3778,6 +3778,25 @@
to dependent targets, put them in a config and set it in the
all_dependent_configs or public_configs.
```

### **Ordering of flags and values**:

```
1. Those set on the current target (not in a config).
2. Those set on the "configs" on the target in order that the
configs appear in the list.
3. Those set on the "all_dependent_configs" on the target in order
that the configs appear in the list.
4. Those set on the "public_configs" on the target in order that
those configs appear in the list.
5. all_dependent_configs pulled from dependencies, in the order of
the "deps" list. This is done recursively. If a config appears
more than once, only the first occurance will be used.
6. public_configs pulled from dependencies, in the order of the
"deps" list. If a dependency is public, they will be applied
recursively.
```
## **lib_dirs**: Additional library directories.
Expand Down
7 changes: 4 additions & 3 deletions tools/gn/functions_target.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,16 @@ const char kCopy_Help[] =
" reference the output or generated intermediate file directories,\n"
" respectively.\n"
"\n"
" Both \"sources\" and \"outputs\" must be specified. Sources can\n"
" Both \"sources\" and \"outputs\" must be specified. Sources can "
"include\n"
" as many files as you want, but there can only be one item in the\n"
" outputs list (plural is used for the name for consistency with\n"
" other target types).\n"
"\n"
" If there is more than one source file, your output name should specify\n"
" a mapping from each source files to output file names using source\n"
" a mapping from each source file to an output file name using source\n"
" expansion (see \"gn help source_expansion\"). The placeholders will\n"
" will look like \"{{source_name_part}}\", for example.\n"
" look like \"{{source_name_part}}\", for example.\n"
"\n"
"Examples\n"
"\n"
Expand Down

0 comments on commit c5166a2

Please sign in to comment.