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

Side by Side Diff: build/common.gypi

Issue 324403006: Add a new FORCE_DETERMINISTIC_BUILD define. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to force_deterministic_build Created 6 years, 6 months 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 | « no previous file | build/config/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 'arm_version%': '<(arm_version)', 264 'arm_version%': '<(arm_version)',
265 'sysroot%': '<(sysroot)', 265 'sysroot%': '<(sysroot)',
266 'chroot_cmd%': '<(chroot_cmd)', 266 'chroot_cmd%': '<(chroot_cmd)',
267 'system_libdir%': '<(system_libdir)', 267 'system_libdir%': '<(system_libdir)',
268 268
269 # Set to 1 to enable fast builds. Set to 2 for even faster builds 269 # Set to 1 to enable fast builds. Set to 2 for even faster builds
270 # (it disables debug info for fastest compilation - only for use 270 # (it disables debug info for fastest compilation - only for use
271 # on compile-only bots). 271 # on compile-only bots).
272 'fastbuild%': 0, 272 'fastbuild%': 0,
273 273
274 # Set to 1 to force deterministic builds (this isn't working yet but this
275 # flag will help us to get there). See http://crbug.com/314403.
276 # TODO(sebmarchand): Update this comment once this flag guarantee a
277 # deterministic build.
278 'force_deterministic_build%': 0,
279
274 # Set to 1 to force Visual C++ to use legacy debug information format /Z7. 280 # Set to 1 to force Visual C++ to use legacy debug information format /Z7.
275 # This is useful for parallel compilation tools which can't support /Zi. 281 # This is useful for parallel compilation tools which can't support /Zi.
276 # Only used on Windows. 282 # Only used on Windows.
277 'win_z7%' : 0, 283 'win_z7%' : 0,
278 284
279 # Set to 1 to enable dcheck in release. 285 # Set to 1 to enable dcheck in release.
280 'dcheck_always_on%': 0, 286 'dcheck_always_on%': 0,
281 287
282 # Set to 1 to make a build that disables unshipped tracing events. 288 # Set to 1 to make a build that disables unshipped tracing events.
283 # Note: this setting is ignored if buildtype=="Official". 289 # Note: this setting is ignored if buildtype=="Official".
284 'tracing_like_official_build%': 0, 290 'tracing_like_official_build%': 0,
285 291
286 # Disable image loader component extension by default. 292 # Disable image loader component extension by default.
287 'image_loader_extension%': 0, 293 'image_loader_extension%': 0,
288 294
289 # Set NEON compilation flags. 295 # Set NEON compilation flags.
290 'arm_neon%': 1, 296 'arm_neon%': 1,
291 297
292 # Detect NEON support at run-time. 298 # Detect NEON support at run-time.
293 'arm_neon_optional%': 0, 299 'arm_neon_optional%': 0,
294 300
295
296 # Use libjpeg-turbo as the JPEG codec used by Chromium. 301 # Use libjpeg-turbo as the JPEG codec used by Chromium.
297 'use_libjpeg_turbo%': 1, 302 'use_libjpeg_turbo%': 1,
298 303
299 # Use system libjpeg. Note that the system's libjepg will be used even if 304 # Use system libjpeg. Note that the system's libjepg will be used even if
300 # use_libjpeg_turbo is set. 305 # use_libjpeg_turbo is set.
301 'use_system_libjpeg%': 0, 306 'use_system_libjpeg%': 0,
302 307
303 # By default, component is set to static_library and it can be overriden 308 # By default, component is set to static_library and it can be overriden
304 # by the GYP command line or by ~/.gyp/include.gypi. 309 # by the GYP command line or by ~/.gyp/include.gypi.
305 'component%': 'static_library', 310 'component%': 'static_library',
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 'desktop_linux%': '<(desktop_linux)', 1019 'desktop_linux%': '<(desktop_linux)',
1015 'use_x11%': '<(use_x11)', 1020 'use_x11%': '<(use_x11)',
1016 'use_gnome_keyring%': '<(use_gnome_keyring)', 1021 'use_gnome_keyring%': '<(use_gnome_keyring)',
1017 'linux_fpic%': '<(linux_fpic)', 1022 'linux_fpic%': '<(linux_fpic)',
1018 'chromeos%': '<(chromeos)', 1023 'chromeos%': '<(chromeos)',
1019 'enable_viewport%': '<(enable_viewport)', 1024 'enable_viewport%': '<(enable_viewport)',
1020 'enable_hidpi%': '<(enable_hidpi)', 1025 'enable_hidpi%': '<(enable_hidpi)',
1021 'use_xi2_mt%':'<(use_xi2_mt)', 1026 'use_xi2_mt%':'<(use_xi2_mt)',
1022 'image_loader_extension%': '<(image_loader_extension)', 1027 'image_loader_extension%': '<(image_loader_extension)',
1023 'fastbuild%': '<(fastbuild)', 1028 'fastbuild%': '<(fastbuild)',
1029 'force_deterministic_build%': '<(force_deterministic_build)',
1024 'win_z7%': '<(win_z7)', 1030 'win_z7%': '<(win_z7)',
1025 'dcheck_always_on%': '<(dcheck_always_on)', 1031 'dcheck_always_on%': '<(dcheck_always_on)',
1026 'tracing_like_official_build%': '<(tracing_like_official_build)', 1032 'tracing_like_official_build%': '<(tracing_like_official_build)',
1027 'arm_version%': '<(arm_version)', 1033 'arm_version%': '<(arm_version)',
1028 'arm_neon%': '<(arm_neon)', 1034 'arm_neon%': '<(arm_neon)',
1029 'arm_neon_optional%': '<(arm_neon_optional)', 1035 'arm_neon_optional%': '<(arm_neon_optional)',
1030 'sysroot%': '<(sysroot)', 1036 'sysroot%': '<(sysroot)',
1031 'chroot_cmd%': '<(chroot_cmd)', 1037 'chroot_cmd%': '<(chroot_cmd)',
1032 'system_libdir%': '<(system_libdir)', 1038 'system_libdir%': '<(system_libdir)',
1033 'component%': '<(component)', 1039 'component%': '<(component)',
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 ['OS=="android" and fastbuild==1', { 2569 ['OS=="android" and fastbuild==1', {
2564 'variables': { 2570 'variables': {
2565 'debug_extra_cflags': '-g1', 2571 'debug_extra_cflags': '-g1',
2566 'release_extra_cflags': '-g1', 2572 'release_extra_cflags': '-g1',
2567 }, 2573 },
2568 }], 2574 }],
2569 ], 2575 ],
2570 }], # clang!=1 2576 }], # clang!=1
2571 ], 2577 ],
2572 }], # fastbuild!=0 2578 }], # fastbuild!=0
2579 ['force_deterministic_build==1', {
2580 'defines': [
2581 'FORCE_DETERMINISTIC_BUILD',
2582 ],
2583 }], # force_deterministic_build==1
2573 ['dcheck_always_on!=0', { 2584 ['dcheck_always_on!=0', {
2574 'defines': ['DCHECK_ALWAYS_ON=1'], 2585 'defines': ['DCHECK_ALWAYS_ON=1'],
2575 }], # dcheck_always_on!=0 2586 }], # dcheck_always_on!=0
2576 ['tracing_like_official_build!=0', { 2587 ['tracing_like_official_build!=0', {
2577 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], 2588 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'],
2578 }], # tracing_like_official_build!=0 2589 }], # tracing_like_official_build!=0
2579 ['win_use_allocator_shim==0', { 2590 ['win_use_allocator_shim==0', {
2580 'conditions': [ 2591 'conditions': [
2581 ['OS=="win"', { 2592 ['OS=="win"', {
2582 'defines': ['NO_TCMALLOC'], 2593 'defines': ['NO_TCMALLOC'],
(...skipping 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after
5438 # settings in target dicts. SYMROOT is a special case, because many other 5449 # settings in target dicts. SYMROOT is a special case, because many other
5439 # Xcode variables depend on it, including variables such as 5450 # Xcode variables depend on it, including variables such as
5440 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5451 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5441 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5452 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5442 # files to appear (when present) in the UI as actual files and not red 5453 # files to appear (when present) in the UI as actual files and not red
5443 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5454 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5444 # and therefore SYMROOT, needs to be set at the project level. 5455 # and therefore SYMROOT, needs to be set at the project level.
5445 'SYMROOT': '<(DEPTH)/xcodebuild', 5456 'SYMROOT': '<(DEPTH)/xcodebuild',
5446 }, 5457 },
5447 } 5458 }
OLDNEW
« no previous file with comments | « no previous file | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698