summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2015-11-03 13:09:16 -0800
committerOliver Chang <ochang@chromium.org>2015-11-03 13:09:16 -0800
commite35b445bee90390ea09f334cbff4a6220537bbda (patch)
treea0960e1f7cf470b4442f103572b81eec21459953 /build
parentda06e60fb5a095a91c9a4f509466667878624cb3 (diff)
downloadpdfium-e35b445bee90390ea09f334cbff4a6220537bbda.tar.xz
Add support for building with goma.
R=thakis@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/1428093004 .
Diffstat (limited to 'build')
-rw-r--r--build/standalone.gypi25
1 files changed, 25 insertions, 0 deletions
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%': '<!(/bin/echo -n ${HOME}/goma)',
+ }],
],
},
'target_defaults': {
@@ -283,6 +291,17 @@
'_HAS_EXCEPTIONS=0',
],
}],
+ ['use_goma==1', {
+ # goma doesn't support PDB yet.
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'GenerateDebugInformation': 'true',
+ },
+ 'VCCLCompilerTool': {
+ 'DebugInformationFormat': '1',
+ },
+ },
+ }],
],
}], # OS=="win"
['OS=="mac"', {
@@ -314,5 +333,11 @@
}],
],
}], # OS=="linux" or OS=="mac"
+ ["use_goma==1", {
+ 'make_global_settings': [
+ ['CC_wrapper', '<(gomadir)/gomacc'],
+ ['CXX_wrapper', '<(gomadir)/gomacc'],
+ ],
+ }], # use_goma==1
],
}