summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authordbeam <dbeam@chromium.org>2016-03-09 20:12:13 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-10 04:14:25 +0000
commit707cf27a3a8cf9a3fd859e661ffc46c0eb91ce7a (patch)
tree9548e1b320718acb11e8847a0985bb18508ae52d /docs
parent5d5fede0e66dc45a4bae771646f328292b924aca (diff)
downloadchromium_src-707cf27a3a8cf9a3fd859e661ffc46c0eb91ce7a.zip
chromium_src-707cf27a3a8cf9a3fd859e661ffc46c0eb91ce7a.tar.gz
chromium_src-707cf27a3a8cf9a3fd859e661ffc46c0eb91ce7a.tar.bz2
Closure: attempt to fix up closure_compilation.md rendering
TBR=dpapad@chromium.org BUG=585553 NOTRY=true Review URL: https://codereview.chromium.org/1784483003 Cr-Commit-Position: refs/heads/master@{#380332}
Diffstat (limited to 'docs')
-rw-r--r--docs/closure_compilation.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/closure_compilation.md b/docs/closure_compilation.md
index 2c8fdcd..7502d51 100644
--- a/docs/closure_compilation.md
+++ b/docs/closure_compilation.md
@@ -5,6 +5,7 @@
### Pre-requisites
You'll need Java 7 (preferably the OpenJDK version). To install on Ubuntu:
+
```shell
sudo apt-get install openjdk-7-jre
```
@@ -15,28 +16,33 @@ On Mac or Windows, visit:
### Using ninja to compile the code
We use GYP and ninja as our build system. To generate the ninja files from GYP:
+
```shell
# notice the 2 in compiled_resources.gyp
GYP_GENERATORS=ninja tools/gyp/gyp --depth . third_party/closure_compiler/compiled_resources2.gyp
```
To compile the JavaScript:
+
```shell
ninja -C out/Default -j4
```
The output should look something like this:
+
```shell
ninja: Entering directory `out/Default/'
[30/106] ACTION Compiling chrome/browser/resources/md_history/constants.js
```
To generate and run the **deprecated** v1 gyp format, remove the "2" from "compiled_resources2.gyp":
+
```shell
$ GYP_GENERATORS=ninja tools/gyp/gyp --depth . third_party/closure_compiler/compiled_resources.gyp
```
Compiling works the same way for both v1 and v2 systems:
+
```shell
ninja -C out/Default -j4
```