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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 'VCLinkerTool': { | 48 'VCLinkerTool': { |
49 'AdditionalOptions': ['/ignore:4006'], | 49 'AdditionalOptions': ['/ignore:4006'], |
50 }, | 50 }, |
51 }, | 51 }, |
52 'include_dirs': [ | 52 'include_dirs': [ |
53 '../..', | 53 '../..', |
54 ], | 54 ], |
55 'sources': [ | 55 'sources': [ |
56 'allocator_shim_win.cc', | 56 'allocator_shim_win.cc', |
57 'allocator_shim_win.h', | 57 'allocator_shim_win.h', |
58 'winheap_stubs_win.cc', | |
59 'winheap_stubs_win.h', | |
58 ], | 60 ], |
59 'configurations': { | 61 'configurations': { |
60 'Debug_Base': { | 62 'Debug_Base': { |
61 'msvs_settings': { | 63 'msvs_settings': { |
62 'VCCLCompilerTool': { | 64 'VCCLCompilerTool': { |
63 'RuntimeLibrary': '0', | 65 'RuntimeLibrary': '0', |
64 }, | 66 }, |
65 }, | 67 }, |
66 }, | 68 }, |
67 }, | 69 }, |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
380 # GN: //base/allocator:features | 382 # GN: //base/allocator:features |
381 # When referenced from a target that might be compiled in the host | 383 # When referenced from a target that might be compiled in the host |
382 # toolchain, always refer to 'allocator_features#target'. | 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 'variables': { | 387 'variables': { |
386 'buildflag_header_path': 'base/allocator/features.h', | 388 'buildflag_header_path': 'base/allocator/features.h', |
387 'buildflag_flags': [ | 389 'buildflag_flags': [ |
388 'USE_EXPERIMENTAL_ALLOCATOR_SHIM=<(use_experimental_allocator_shim)', | 390 'USE_EXPERIMENTAL_ALLOCATOR_SHIM=<(use_experimental_allocator_shim)', |
389 ], | 391 ], |
392 'conditions': [ | |
Sigurður Ásgeirsson
2016/07/18 13:42:04
This is a little less eye-bleed ugly - thanks!
I'
| |
393 ['<(use_experimental_allocator_shim) or <(win_use_allocator_shim)', | |
394 {'buildflag_flags': [ 'ENABLE_WIN_ALLOCATOR_SHIM_TESTS=1' ],}, | |
395 {'buildflag_flags': [ 'ENABLE_WIN_ALLOCATOR_SHIM_TESTS=0' ],} | |
396 ], | |
397 ], | |
390 }, | 398 }, |
391 }, # 'allocator_features' target. | 399 }, # 'allocator_features' target. |
392 ], # targets. | 400 ], # targets. |
393 'conditions': [ | 401 'conditions': [ |
394 ['use_experimental_allocator_shim==1', { | 402 ['use_experimental_allocator_shim==1', { |
395 'targets': [ | 403 'targets': [ |
396 { | 404 { |
397 # GN: //base/allocator:unified_allocator_shim | 405 # GN: //base/allocator:unified_allocator_shim |
398 'target_name': 'unified_allocator_shim', | 406 'target_name': 'unified_allocator_shim', |
399 'toolsets': ['host', 'target'], | 407 'toolsets': ['host', 'target'], |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
441 '-Wl,-wrap,valloc', | 449 '-Wl,-wrap,valloc', |
442 ], | 450 ], |
443 }, | 451 }, |
444 }], | 452 }], |
445 ] | 453 ] |
446 }, # 'unified_allocator_shim' target. | 454 }, # 'unified_allocator_shim' target. |
447 ], | 455 ], |
448 }] | 456 }] |
449 ], | 457 ], |
450 } | 458 } |
OLD | NEW |