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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 # Override buildtype to select the desired build flavor. | 25 # Override buildtype to select the desired build flavor. |
26 # Dev - everyday build for development/testing | 26 # Dev - everyday build for development/testing |
27 # Official - release build (generally implies additional processing) | 27 # Official - release build (generally implies additional processing) |
28 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 28 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
29 # conversion is done), some of the things which are now controlled by | 29 # conversion is done), some of the things which are now controlled by |
30 # 'branding', such as symbol generation, will need to be refactored based | 30 # 'branding', such as symbol generation, will need to be refactored based |
31 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official | 31 # on 'buildtype' (i.e. we don't care about saving symbols for non-Official |
32 # builds). | 32 # builds). |
33 'buildtype%': 'Dev', | 33 'buildtype%': 'Dev', |
34 | |
35 # We do want to build Chromium with Breakpad support in certain | |
36 # situations. I.e. for Chrome bot. | |
37 'linux_chromium_breakpad%': 0, | |
38 }, | 34 }, |
39 | 35 |
40 # Define branding and buildtype on the basis of their settings within the | 36 # Define branding and buildtype on the basis of their settings within the |
41 # variables sub-dict above, unless overridden. | 37 # variables sub-dict above, unless overridden. |
42 'branding%': '<(branding)', | 38 'branding%': '<(branding)', |
43 'buildtype%': '<(buildtype)', | 39 'buildtype%': '<(buildtype)', |
44 | 40 |
45 # Override chromium_mac_pch and set it to 0 to suppress the use of | 41 # Override chromium_mac_pch and set it to 0 to suppress the use of |
46 # precompiled headers on the Mac. Prefix header injection may still be | 42 # precompiled headers on the Mac. Prefix header injection may still be |
47 # used, but prefix headers will not be precompiled. This is useful when | 43 # used, but prefix headers will not be precompiled. This is useful when |
(...skipping 21 matching lines...) Expand all Loading... |
69 # {'variables': {'library': 'shared_library'}} | 65 # {'variables': {'library': 'shared_library'}} |
70 # to compile as shared by default | 66 # to compile as shared by default |
71 'library%': 'static_library', | 67 'library%': 'static_library', |
72 | 68 |
73 # TODO(bradnelson): eliminate this when possible. | 69 # TODO(bradnelson): eliminate this when possible. |
74 # To allow local gyp files to prevent release.vsprops from being included. | 70 # To allow local gyp files to prevent release.vsprops from being included. |
75 # Yes(1) means include release.vsprops. | 71 # Yes(1) means include release.vsprops. |
76 # Once all vsprops settings are migrated into gyp, this can go away. | 72 # Once all vsprops settings are migrated into gyp, this can go away. |
77 'msvs_use_common_release%': 1, | 73 'msvs_use_common_release%': 1, |
78 | 74 |
79 # TODO(bradnelson): eliminate this when possible. | 75 # TODO(bradnelson): eliminate this when possible. |
80 # To allow local gyp files to override additional linker options for msvs. | 76 # To allow local gyp files to override additional linker options for msvs. |
81 # Yes(1) means set use the common linker options. | 77 # Yes(1) means set use the common linker options. |
82 'msvs_use_common_linker_extras%': 1, | 78 'msvs_use_common_linker_extras%': 1, |
83 | 79 |
84 # TODO(sgk): eliminate this if possible. | 80 # TODO(sgk): eliminate this if possible. |
85 # It would be nicer to support this via a setting in 'target_defaults' | 81 # It would be nicer to support this via a setting in 'target_defaults' |
86 # in chrome/app/locales/locales.gypi overriding the setting in the | 82 # in chrome/app/locales/locales.gypi overriding the setting in the |
87 # 'Debug' configuration in the 'target_defaults' dict below, | 83 # 'Debug' configuration in the 'target_defaults' dict below, |
88 # but that doesn't work as we'd like. | 84 # but that doesn't work as we'd like. |
89 'msvs_debug_link_incremental%': '2', | 85 'msvs_debug_link_incremental%': '2', |
90 | 86 |
91 # The architecture that we're building on. | 87 # The architecture that we're building on. |
(...skipping 19 matching lines...) Expand all Loading... |
111 # sandbox the zygote process and, thus, all renderer processes. | 107 # sandbox the zygote process and, thus, all renderer processes. |
112 'linux_sandbox_path%': '', | 108 'linux_sandbox_path%': '', |
113 | 109 |
114 # If |linux_suid_sandbox_restrictions|, above, is 'Path' then only a single | 110 # If |linux_suid_sandbox_restrictions|, above, is 'Path' then only a single |
115 # path is allowed to be exec'ed by the sandbox for security reasons. That | 111 # path is allowed to be exec'ed by the sandbox for security reasons. That |
116 # path is set here. It should be the final location of the Chromium binary | 112 # path is set here. It should be the final location of the Chromium binary |
117 # on the system. | 113 # on the system. |
118 'linux_sandbox_chrome_path%': '/opt/google/chrome/chrome', | 114 'linux_sandbox_chrome_path%': '/opt/google/chrome/chrome', |
119 | 115 |
120 'conditions': [ | 116 'conditions': [ |
121 ['OS=="linux"', { | |
122 'conditions': [ | |
123 ['branding=="Chrome" or linux_chromium_breakpad==1', { | |
124 'linux_breakpad%': 1, | |
125 }, { | |
126 'linux_breakpad%': 0, | |
127 }], | |
128 ], | |
129 }], # OS=="linux" | |
130 ['OS=="mac"', { | 117 ['OS=="mac"', { |
131 'conditions': [ | 118 'conditions': [ |
132 # mac_product_name is set to the name of the .app bundle as it should | 119 # mac_product_name is set to the name of the .app bundle as it should |
133 # appear on disk. This duplicates data from | 120 # appear on disk. This duplicates data from |
134 # chrome/app/theme/chromium/BRANDING and | 121 # chrome/app/theme/chromium/BRANDING and |
135 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get | 122 # chrome/app/theme/google_chrome/BRANDING, but is necessary to get |
136 # these names into the build system. | 123 # these names into the build system. |
137 ['branding=="Chrome"', { | 124 ['branding=="Chrome"', { |
138 'mac_product_name%': 'Google Chrome', | 125 'mac_product_name%': 'Google Chrome', |
139 }, { # else: branding!="Chrome" | 126 }, { # else: branding!="Chrome" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 }], | 159 }], |
173 ], | 160 ], |
174 }, | 161 }, |
175 'target_defaults': { | 162 'target_defaults': { |
176 'variables': { | 163 'variables': { |
177 'mac_release_optimization%': '2' # Use -O2 unless overridden | 164 'mac_release_optimization%': '2' # Use -O2 unless overridden |
178 }, | 165 }, |
179 'conditions': [ | 166 'conditions': [ |
180 ['branding=="Chrome"', { | 167 ['branding=="Chrome"', { |
181 'defines': ['GOOGLE_CHROME_BUILD'], | 168 'defines': ['GOOGLE_CHROME_BUILD'], |
| 169 'conditions': [ |
| 170 ['OS=="linux"', { |
| 171 'cflags': [ '-gstabs' ], |
| 172 }], |
| 173 ], |
182 }, { # else: branding!="Chrome" | 174 }, { # else: branding!="Chrome" |
183 'defines': ['CHROMIUM_BUILD'], | 175 'defines': ['CHROMIUM_BUILD'], |
184 }], | 176 }], |
185 ['toolkit_views==1', { | 177 ['toolkit_views==1', { |
186 'defines': ['TOOLKIT_VIEWS=1'], | 178 'defines': ['TOOLKIT_VIEWS=1'], |
187 }], | 179 }], |
188 ['chromeos==1', { | 180 ['chromeos==1', { |
189 'defines': ['OS_CHROMEOS=1'], | 181 'defines': ['OS_CHROMEOS=1'], |
190 }], | 182 }], |
191 ['coverage!=0', { | 183 ['coverage!=0', { |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 '-mfloat-abi=softfp', | 532 '-mfloat-abi=softfp', |
541 ], | 533 ], |
542 }], | 534 }], |
543 ], | 535 ], |
544 }], | 536 }], |
545 ['no_strict_aliasing==1', { | 537 ['no_strict_aliasing==1', { |
546 'cflags': [ | 538 'cflags': [ |
547 '-fno-strict-aliasing', | 539 '-fno-strict-aliasing', |
548 ], | 540 ], |
549 }], | 541 }], |
550 ['linux_breakpad==1', { | |
551 'cflags': [ '-gstabs' ], | |
552 'defines': ['USE_LINUX_BREAKPAD'], | |
553 }], | |
554 ], | 542 ], |
555 }, | 543 }, |
556 }], | 544 }], |
557 ['OS=="mac"', { | 545 ['OS=="mac"', { |
558 'target_defaults': { | 546 'target_defaults': { |
559 'variables': { | 547 'variables': { |
560 # This should be 'mac_real_dsym%', but there seems to be a bug | 548 # This should be 'mac_real_dsym%', but there seems to be a bug |
561 # with % in variables that are intended to be set to different | 549 # with % in variables that are intended to be set to different |
562 # values in different targets, like this one. | 550 # values in different targets, like this one. |
563 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. | 551 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases. |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 # settings in target dicts. SYMROOT is a special case, because many other | 758 # settings in target dicts. SYMROOT is a special case, because many other |
771 # Xcode variables depend on it, including variables such as | 759 # Xcode variables depend on it, including variables such as |
772 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 760 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
773 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 761 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
774 # files to appear (when present) in the UI as actual files and not red | 762 # files to appear (when present) in the UI as actual files and not red |
775 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 763 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
776 # and therefore SYMROOT, needs to be set at the project level. | 764 # and therefore SYMROOT, needs to be set at the project level. |
777 'SYMROOT': '<(DEPTH)/xcodebuild', | 765 'SYMROOT': '<(DEPTH)/xcodebuild', |
778 }, | 766 }, |
779 } | 767 } |
OLD | NEW |