From e35b445bee90390ea09f334cbff4a6220537bbda Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Tue, 3 Nov 2015 13:09:16 -0800 Subject: Add support for building with goma. R=thakis@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/1428093004 . --- README.md | 10 ++++++++++ build/standalone.gypi | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/README.md b/README.md index 67d84485ff..39f53e2c1f 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,16 @@ on Linux, sln files on Windows, and xcodeproj files on Mac. To do so, set the GYP\_GENERATORS environment variable appropriately (e.g. "make", "msvs", or "xcode") before running the above command. +### Using goma (Googlers only) + +If you would like to build using goma, pass `use_goma=1` to `gyp_pdfium`. If +you installed goma in a non-standard location, you will also need to set +`gomadir`. e.g. + +``` +build/gyp_pdfium -D use_goma=1 -D gomadir=path/to/goma +``` + ## Building the code If you used Ninja, you can build the sample program by: `ninja -C out/Debug diff --git a/build/standalone.gypi b/build/standalone.gypi index a70b442bee..3d256693ca 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -10,6 +10,8 @@ 'clang%': 0, 'asan%': 0, 'sanitizer_coverage%': 0, + 'use_goma%': 0, + 'gomadir%': '', 'msvs_multi_core_compile%': '1', 'variables': { 'variables': { @@ -58,6 +60,12 @@ }, { 'clang%': 0, }], + # Set default gomadir. + ['OS=="win"', { + 'gomadir%': 'c:\\goma\\goma-win', + }, { + 'gomadir%': '