| OLD | NEW |
| 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 { | 5 { |
| 6 'target_defaults': { | 6 'target_defaults': { |
| 7 'variables': { | 7 'variables': { |
| 8 # This code gets run a lot and debugged rarely, so it should be fast | 8 # This code gets run a lot and debugged rarely, so it should be fast |
| 9 # by default. See http://crbug.com/388949. | 9 # by default. See http://crbug.com/388949. |
| 10 'debug_optimize': '2', | 10 'debug_optimize': '2', |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 'target_conditions' : [ | 373 'target_conditions' : [ |
| 374 ['_toolset=="target"', { | 374 ['_toolset=="target"', { |
| 375 'cflags!': [ '-finstrument-functions' ], | 375 'cflags!': [ '-finstrument-functions' ], |
| 376 }], | 376 }], |
| 377 ], | 377 ], |
| 378 }], | 378 }], |
| 379 ], # conditions of 'allocator' target. | 379 ], # conditions of 'allocator' target. |
| 380 }, # 'allocator' target. | 380 }, # 'allocator' target. |
| 381 { | 381 { |
| 382 # GN: //base/allocator:features | 382 # GN: //base/allocator:features |
| 383 # When referenced from a target that might be compiled in the host |
| 384 # toolchain, always refer to 'allocator_features#target'. |
| 383 'target_name': 'allocator_features', | 385 'target_name': 'allocator_features', |
| 384 'includes': [ '../../build/buildflag_header.gypi' ], | 386 'includes': [ '../../build/buildflag_header.gypi' ], |
| 385 'toolsets': ['host', 'target'], | |
| 386 'variables': { | 387 'variables': { |
| 387 'buildflag_header_path': 'base/allocator/features.h', | 388 'buildflag_header_path': 'base/allocator/features.h', |
| 388 'buildflag_flags': [ | 389 'buildflag_flags': [ |
| 389 'USE_EXPERIMENTAL_ALLOCATOR_SHIM=<(use_experimental_allocator_shim)', | 390 'USE_EXPERIMENTAL_ALLOCATOR_SHIM=<(use_experimental_allocator_shim)', |
| 390 ], | 391 ], |
| 391 }, | 392 }, |
| 392 }, # 'allocator_features' target. | 393 }, # 'allocator_features' target. |
| 393 ], # targets. | 394 ], # targets. |
| 394 'conditions': [ | 395 'conditions': [ |
| 395 ['OS=="win" and win_use_allocator_shim==1', { | 396 ['OS=="win" and win_use_allocator_shim==1', { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 'sources': [ | 449 'sources': [ |
| 449 'allocator_shim_default_dispatch_to_glibc.cc', | 450 'allocator_shim_default_dispatch_to_glibc.cc', |
| 450 ], | 451 ], |
| 451 }], | 452 }], |
| 452 ] | 453 ] |
| 453 }, # 'unified_allocator_shim' target. | 454 }, # 'unified_allocator_shim' target. |
| 454 ], | 455 ], |
| 455 }] | 456 }] |
| 456 ], | 457 ], |
| 457 } | 458 } |
| OLD | NEW |