| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 # JavaScript engines. | 62 # JavaScript engines. |
| 63 'javascript_engine%': 'v8', | 63 'javascript_engine%': 'v8', |
| 64 | 64 |
| 65 # To do a shared build on linux we need to be able to choose between type | 65 # To do a shared build on linux we need to be able to choose between type |
| 66 # static_library and shared_library. We default to doing a static build | 66 # static_library and shared_library. We default to doing a static build |
| 67 # but you can override this with "gyp -Dlibrary=shared_library" or you | 67 # but you can override this with "gyp -Dlibrary=shared_library" or you |
| 68 # can add the following line (without the #) to ~/.gyp/include.gypi | 68 # can add the following line (without the #) to ~/.gyp/include.gypi |
| 69 # {'variables': {'library': 'shared_library'}} | 69 # {'variables': {'library': 'shared_library'}} |
| 70 # to compile as shared by default | 70 # to compile as shared by default |
| 71 'library%': 'static_library', | 71 'library%': 'static_library', |
| 72 | 72 |
| 73 # The Google Update appid. | 73 # The Google Update appid. |
| 74 'google_update_appid%': '{8A69D345-D564-463c-AFF1-A69D9E530F96}', | 74 'google_update_appid%': '{8A69D345-D564-463c-AFF1-A69D9E530F96}', |
| 75 | 75 |
| 76 # Extra defines to add to built targets | 76 # Whether to add the experimental build define. |
| 77 'extra_custom_defines%': [], | 77 'experimental_build_define%': 0, |
| 78 | 78 |
| 79 # TODO(bradnelson): eliminate this when possible. | 79 # TODO(bradnelson): eliminate this when possible. |
| 80 # To allow local gyp files to prevent release.vsprops from being included. | 80 # To allow local gyp files to prevent release.vsprops from being included. |
| 81 # Yes(1) means include release.vsprops. | 81 # Yes(1) means include release.vsprops. |
| 82 # Once all vsprops settings are migrated into gyp, this can go away. | 82 # Once all vsprops settings are migrated into gyp, this can go away. |
| 83 'msvs_use_common_release%': 1, | 83 'msvs_use_common_release%': 1, |
| 84 | 84 |
| 85 # TODO(bradnelson): eliminate this when possible. | 85 # TODO(bradnelson): eliminate this when possible. |
| 86 # To allow local gyp files to override additional linker options for msvs. | 86 # To allow local gyp files to override additional linker options for msvs. |
| 87 # Yes(1) means set use the common linker options. | 87 # Yes(1) means set use the common linker options. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 }], | 165 }], |
| 166 ], | 166 ], |
| 167 }], | 167 }], |
| 168 ], | 168 ], |
| 169 }, | 169 }, |
| 170 'target_defaults': { | 170 'target_defaults': { |
| 171 'variables': { | 171 'variables': { |
| 172 'mac_release_optimization%': '3', # Use -O3 unless overridden | 172 'mac_release_optimization%': '3', # Use -O3 unless overridden |
| 173 'mac_debug_optimization%': '0' # Use -O0 unless overridden | 173 'mac_debug_optimization%': '0' # Use -O0 unless overridden |
| 174 }, | 174 }, |
| 175 'defines': [ | |
| 176 '<@(extra_custom_defines)', | |
| 177 ], | |
| 178 'conditions': [ | 175 'conditions': [ |
| 179 ['branding=="Chrome"', { | 176 ['branding=="Chrome"', { |
| 180 'defines': ['GOOGLE_CHROME_BUILD'], | 177 'defines': ['GOOGLE_CHROME_BUILD'], |
| 181 }, { # else: branding!="Chrome" | 178 }, { # else: branding!="Chrome" |
| 182 'defines': ['CHROMIUM_BUILD'], | 179 'defines': ['CHROMIUM_BUILD'], |
| 183 }], | 180 }], |
| 181 ['experimental_build_define', { |
| 182 'defines': ['CHROME_EXP_BUILD'], |
| 183 }], |
| 184 ['toolkit_views==1', { | 184 ['toolkit_views==1', { |
| 185 'defines': ['TOOLKIT_VIEWS=1'], | 185 'defines': ['TOOLKIT_VIEWS=1'], |
| 186 }], | 186 }], |
| 187 ['chromeos==1', { | 187 ['chromeos==1', { |
| 188 'defines': ['OS_CHROMEOS=1'], | 188 'defines': ['OS_CHROMEOS=1'], |
| 189 }], | 189 }], |
| 190 ['coverage!=0', { | 190 ['coverage!=0', { |
| 191 'conditions': [ | 191 'conditions': [ |
| 192 ['OS=="mac"', { | 192 ['OS=="mac"', { |
| 193 'xcode_settings': { | 193 'xcode_settings': { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 # settings in target dicts. SYMROOT is a special case, because many other | 777 # settings in target dicts. SYMROOT is a special case, because many other |
| 778 # Xcode variables depend on it, including variables such as | 778 # Xcode variables depend on it, including variables such as |
| 779 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 779 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 780 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 780 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 781 # files to appear (when present) in the UI as actual files and not red | 781 # files to appear (when present) in the UI as actual files and not red |
| 782 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 782 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 783 # and therefore SYMROOT, needs to be set at the project level. | 783 # and therefore SYMROOT, needs to be set at the project level. |
| 784 'SYMROOT': '<(DEPTH)/xcodebuild', | 784 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 785 }, | 785 }, |
| 786 } | 786 } |
| OLD | NEW |