OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
8 # code, as opposed to external code. This variable is used to control | 8 # code, as opposed to external code. This variable is used to control |
9 # such things as the set of warnings to enable, and whether warnings are | 9 # such things as the set of warnings to enable, and whether warnings are |
10 # treated as errors. | 10 # treated as errors. |
(...skipping 29 matching lines...) Expand all Loading... |
40 # to compile as shared by default | 40 # to compile as shared by default |
41 'library%': 'static_library', | 41 'library%': 'static_library', |
42 }, | 42 }, |
43 'target_defaults': { | 43 'target_defaults': { |
44 'conditions': [ | 44 'conditions': [ |
45 ['branding=="Chrome"', { | 45 ['branding=="Chrome"', { |
46 'defines': ['GOOGLE_CHROME_BUILD'], | 46 'defines': ['GOOGLE_CHROME_BUILD'], |
47 }, { # else: branding!="Chrome" | 47 }, { # else: branding!="Chrome" |
48 'defines': ['CHROMIUM_BUILD'], | 48 'defines': ['CHROMIUM_BUILD'], |
49 }], | 49 }], |
| 50 ['OS=="linux"', { |
| 51 'defines': ['TOOLKIT_GTK=1'], |
| 52 }], |
50 ['coverage!=0', { | 53 ['coverage!=0', { |
51 'conditions': [ | 54 'conditions': [ |
52 ['OS=="mac"', { | 55 ['OS=="mac"', { |
53 'xcode_settings': { | 56 'xcode_settings': { |
54 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', | 57 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', |
55 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', | 58 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', |
56 }, | 59 }, |
57 # Add -lgcov for executables, not for static_libraries. | 60 # Add -lgcov for executables, not for static_libraries. |
58 # This is a delayed conditional. | 61 # This is a delayed conditional. |
59 'target_conditions': [ | 62 'target_conditions': [ |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 # settings in target dicts. SYMROOT is a special case, because many other | 400 # settings in target dicts. SYMROOT is a special case, because many other |
398 # Xcode variables depend on it, including variables such as | 401 # Xcode variables depend on it, including variables such as |
399 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 402 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
400 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 403 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
401 # files to appear (when present) in the UI as actual files and not red | 404 # files to appear (when present) in the UI as actual files and not red |
402 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 405 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
403 # and therefore SYMROOT, needs to be set at the project level. | 406 # and therefore SYMROOT, needs to be set at the project level. |
404 'SYMROOT': '<(DEPTH)/xcodebuild', | 407 'SYMROOT': '<(DEPTH)/xcodebuild', |
405 }, | 408 }, |
406 } | 409 } |
OLD | NEW |