Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: build/standalone.gypi

Issue 1428093004: Add support for building with goma. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: another nit Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Definitions to be used when building stand-alone PDFium binaries. 5 # Definitions to be used when building stand-alone PDFium binaries.
6 6
7 { 7 {
8 'variables': { 8 'variables': {
9 'component%': 'static_library', 9 'component%': 'static_library',
10 'clang%': 0, 10 'clang%': 0,
11 'asan%': 0, 11 'asan%': 0,
12 'sanitizer_coverage%': 0, 12 'sanitizer_coverage%': 0,
13 'use_goma%': 0,
14 'gomadir%': '',
13 'msvs_multi_core_compile%': '1', 15 'msvs_multi_core_compile%': '1',
14 'variables': { 16 'variables': {
15 'variables': { 17 'variables': {
16 'variables': { 18 'variables': {
17 'conditions': [ 19 'conditions': [
18 ['OS=="linux" or OS=="mac"', { 20 ['OS=="linux" or OS=="mac"', {
19 # This handles the Unix platforms we generally deal with. 21 # This handles the Unix platforms we generally deal with.
20 # Anything else gets passed through, which probably won't work 22 # Anything else gets passed through, which probably won't work
21 # very well; such hosts should pass an explicit target_arch 23 # very well; such hosts should pass an explicit target_arch
22 # to gyp. 24 # to gyp.
(...skipping 28 matching lines...) Expand all
51 ['OS == "win"', { 53 ['OS == "win"', {
52 'os_posix%': 0, 54 'os_posix%': 0,
53 }, { 55 }, {
54 'os_posix%': 1, 56 'os_posix%': 1,
55 }], 57 }],
56 ['OS=="linux" or OS=="mac"', { 58 ['OS=="linux" or OS=="mac"', {
57 'clang%': 1, 59 'clang%': 1,
58 }, { 60 }, {
59 'clang%': 0, 61 'clang%': 0,
60 }], 62 }],
63 # Set default gomadir.
64 ['OS=="win"', {
65 'gomadir%': 'c:\\goma\\goma-win',
66 }, {
67 'gomadir%': '<!(/bin/echo -n ${HOME}/goma)',
68 }],
61 ], 69 ],
62 }, 70 },
63 'target_defaults': { 71 'target_defaults': {
64 'default_configuration': 'Debug', 72 'default_configuration': 'Debug',
65 'configurations': { 73 'configurations': {
66 'Debug': { 74 'Debug': {
67 'cflags': [ 75 'cflags': [
68 '-g', 76 '-g',
69 '-O0', 77 '-O0',
70 '-fdata-sections', 78 '-fdata-sections',
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 'NOMINMAX', 284 'NOMINMAX',
277 '_CRT_SECURE_NO_DEPRECATE', 285 '_CRT_SECURE_NO_DEPRECATE',
278 '_CRT_NONSTDC_NO_DEPRECATE', 286 '_CRT_NONSTDC_NO_DEPRECATE',
279 ], 287 ],
280 'conditions': [ 288 'conditions': [
281 ['component=="static_library"', { 289 ['component=="static_library"', {
282 'defines': [ 290 'defines': [
283 '_HAS_EXCEPTIONS=0', 291 '_HAS_EXCEPTIONS=0',
284 ], 292 ],
285 }], 293 }],
294 ['use_goma==1', {
295 # goma doesn't support PDB yet.
296 'msvs_settings': {
297 'VCLinkerTool': {
298 'GenerateDebugInformation': 'true',
299 },
300 'VCCLCompilerTool': {
301 'DebugInformationFormat': '1',
302 },
303 },
304 }],
286 ], 305 ],
287 }], # OS=="win" 306 }], # OS=="win"
288 ['OS=="mac"', { 307 ['OS=="mac"', {
289 'target_conditions': [ 308 'target_conditions': [
290 ['_type!="static_library"', { 309 ['_type!="static_library"', {
291 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 310 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
292 }], 311 }],
293 ], # target_conditions 312 ], # target_conditions
294 }], # OS=="mac" 313 }], # OS=="mac"
295 ['v8_use_external_startup_data==1', { 314 ['v8_use_external_startup_data==1', {
(...skipping 11 matching lines...) Expand all
307 ['OS=="linux" or OS=="mac"', { 326 ['OS=="linux" or OS=="mac"', {
308 'conditions': [ 327 'conditions': [
309 ['clang==1', { 328 ['clang==1', {
310 'make_global_settings': [ 329 'make_global_settings': [
311 ['CC', '<(clang_dir)/bin/clang'], 330 ['CC', '<(clang_dir)/bin/clang'],
312 ['CXX', '<(clang_dir)/bin/clang++'], 331 ['CXX', '<(clang_dir)/bin/clang++'],
313 ], 332 ],
314 }], 333 }],
315 ], 334 ],
316 }], # OS=="linux" or OS=="mac" 335 }], # OS=="linux" or OS=="mac"
336 ["use_goma==1", {
337 'make_global_settings': [
338 ['CC_wrapper', '<(gomadir)/gomacc'],
339 ['CXX_wrapper', '<(gomadir)/gomacc'],
340 ],
341 }], # use_goma==1
317 ], 342 ],
318 } 343 }
OLDNEW
« no previous file with comments | « README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698