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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 # The architecture that we're building on. | 60 # The architecture that we're building on. |
61 'target_arch%': 'ia32', | 61 'target_arch%': 'ia32', |
62 | 62 |
63 # By default linux does not use views. To turn on views in Linux | 63 # By default linux does not use views. To turn on views in Linux |
64 # set the variable GYP_DEFINES to "toolkit_views=1", or modify | 64 # set the variable GYP_DEFINES to "toolkit_views=1", or modify |
65 # ~/.gyp/include.gypi . | 65 # ~/.gyp/include.gypi . |
66 'toolkit_views%': 0, | 66 'toolkit_views%': 0, |
67 | 67 |
68 'linux2%': 0, | 68 'linux2%': 0, |
| 69 |
| 70 'chrome_personalization%': 0, |
69 }, | 71 }, |
70 'target_defaults': { | 72 'target_defaults': { |
71 'conditions': [ | 73 'conditions': [ |
72 ['branding=="Chrome"', { | 74 ['branding=="Chrome"', { |
73 'defines': ['GOOGLE_CHROME_BUILD'], | 75 'defines': ['GOOGLE_CHROME_BUILD'], |
74 'conditions': [ | 76 'conditions': [ |
75 ['OS=="linux"', { | 77 ['OS=="linux"', { |
76 'cflags': [ '-gstabs' ], | 78 'cflags': [ '-gstabs' ], |
77 }], | 79 }], |
78 ], | 80 ], |
79 }, { # else: branding!="Chrome" | 81 }, { # else: branding!="Chrome" |
80 'defines': ['CHROMIUM_BUILD'], | 82 'defines': ['CHROMIUM_BUILD'], |
81 }], | 83 }], |
82 ['toolkit_views==1', { | 84 ['toolkit_views==1', { |
83 'defines': ['TOOLKIT_VIEWS=1'], | 85 'defines': ['TOOLKIT_VIEWS=1'], |
84 }], | 86 }], |
85 ['linux2==1', { | 87 ['linux2==1', { |
86 'defines': ['LINUX2=1'], | 88 'defines': ['LINUX2=1'], |
87 }], | 89 }], |
| 90 ['chrome_personalization==1', { |
| 91 'defines': ['CHROME_PERSONALIZATION=1'], |
| 92 }], |
88 ['coverage!=0', { | 93 ['coverage!=0', { |
89 'conditions': [ | 94 'conditions': [ |
90 ['OS=="mac"', { | 95 ['OS=="mac"', { |
91 'xcode_settings': { | 96 'xcode_settings': { |
92 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', | 97 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', |
93 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', | 98 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', |
94 }, | 99 }, |
95 # Add -lgcov for executables, not for static_libraries. | 100 # Add -lgcov for executables, not for static_libraries. |
96 # This is a delayed conditional. | 101 # This is a delayed conditional. |
97 'target_conditions': [ | 102 'target_conditions': [ |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 # settings in target dicts. SYMROOT is a special case, because many other | 542 # settings in target dicts. SYMROOT is a special case, because many other |
538 # Xcode variables depend on it, including variables such as | 543 # Xcode variables depend on it, including variables such as |
539 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 544 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
540 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 545 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
541 # files to appear (when present) in the UI as actual files and not red | 546 # files to appear (when present) in the UI as actual files and not red |
542 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 547 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
543 # and therefore SYMROOT, needs to be set at the project level. | 548 # and therefore SYMROOT, needs to be set at the project level. |
544 'SYMROOT': '<(DEPTH)/xcodebuild', | 549 'SYMROOT': '<(DEPTH)/xcodebuild', |
545 }, | 550 }, |
546 } | 551 } |
OLD | NEW |