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

Side by Side Diff: base/allocator/allocator.gyp

Issue 2143693003: Start refactoring Windows allocator shim in prep for hooking in generic allocator shim on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back necessary includes. Created 4 years, 5 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
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 { 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
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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 { 381 {
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)',
391 'ENABLE_WIN_ALLOCATOR_SHIM_TESTS=<(use_experimental_allocator_shim)||< (win_use_allocator_shim)',
Primiano Tucci (use gerrit) 2016/07/13 17:42:49 uhm not sure about this part. At very least this s
Sigurður Ásgeirsson 2016/07/13 18:47:45 I tested the GYP build locally, and the tests run
389 ], 392 ],
390 }, 393 },
391 }, # 'allocator_features' target. 394 }, # 'allocator_features' target.
392 ], # targets. 395 ], # targets.
393 'conditions': [ 396 'conditions': [
394 ['use_experimental_allocator_shim==1', { 397 ['use_experimental_allocator_shim==1', {
395 'targets': [ 398 'targets': [
396 { 399 {
397 # GN: //base/allocator:unified_allocator_shim 400 # GN: //base/allocator:unified_allocator_shim
398 'target_name': 'unified_allocator_shim', 401 'target_name': 'unified_allocator_shim',
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 '-Wl,-wrap,valloc', 444 '-Wl,-wrap,valloc',
442 ], 445 ],
443 }, 446 },
444 }], 447 }],
445 ] 448 ]
446 }, # 'unified_allocator_shim' target. 449 }, # 'unified_allocator_shim' target.
447 ], 450 ],
448 }] 451 }]
449 ], 452 ],
450 } 453 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698