Chromium Code Reviews| Index: docs/mac_build_instructions.md |
| diff --git a/docs/mac_build_instructions.md b/docs/mac_build_instructions.md |
| index b09951682b826262f9861ee932a2f98c6b41ec52..46470e32eadfd168770a249bc38f8d6a07d849ca 100644 |
| --- a/docs/mac_build_instructions.md |
| +++ b/docs/mac_build_instructions.md |
| @@ -143,16 +143,35 @@ With hybrid builds, compilation is still handled by ninja, and can be run by the |
| command line (e.g. ninja -C out/Debug chrome) or by choosing the chrome target |
| in the hybrid workspace and choosing build. |
| -To use Xcode-Ninja Hybrid, set `GYP_GENERATORS=ninja,xcode-ninja`. |
| +To use Xcode-Ninja Hybrid, set GYP\_GENERATORS like the following: |
|
sdefresne
2016/03/02 17:29:54
I think you need a blank line between paragraphs a
tfarina
2016/03/02 17:35:02
Acknowledged.
|
| +```shell |
| +export GYP_GENERATORS="ninja,xcode-ninja" |
| +``` |
| Due to the way Xcode parses ninja output paths, it's also necessary to change |
| the main gyp location to anything two directories deep. Otherwise Xcode build |
| -output will not be clickable. Adding |
| -`xcode_ninja_main_gyp=src/build/ninja/all.ninja.gyp` to your |
| -`GYP_GENERATOR_FLAGS` will fix this. |
| +output will not be clickable. |
| +To make this change permanent, you can edit `chromium.gyp_env` (or create it if |
| +it does not exists) and define GYP\_GENERATOR\_FLAGS. In general, to use hybrid |
| +mode, your `chromium.gyp_env` could contain the following: |
| +```json |
|
sdefresne
2016/03/02 17:29:54
Same here.
tfarina
2016/03/02 17:35:02
Done.
|
| +{ |
| + "GYP_GENERATORS" : "ninja,xcode-ninja", |
| + "GYP_GENERATOR_FLAGS": |
| + "xcode_project_version=3.2 " + |
| + "xcode_ninja_main_gyp=src/build/ninja/all.ninja.gyp", |
| +} |
| +``` |
| -After generating the project files with gclient runhooks, open |
| -`src/build/ninja/all.ninja.xcworkspace`. |
| +After, generate the project files with: |
| +```shell |
|
sdefresne
2016/03/02 17:29:54
Here.
tfarina
2016/03/02 17:35:02
Done.
|
| +gclient runhooks |
| +``` |
| + |
| +And finally, open it: |
| +```shell |
|
sdefresne
2016/03/02 17:29:54
And here.
tfarina
2016/03/02 17:35:02
Done.
|
| +open build/ninja/all.ninja.xcworkspace |
| +``` |
| You may run into a problem where http://YES is opened as a new tab every time |
| you launch Chrome. To fix this, open the scheme editor for the Run scheme, |