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

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

Issue 2132963002: Revert of Allocator shims working on VS2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « base/allocator/BUILD.gn ('k') | base/allocator/allocator_check.cc » ('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 { 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ['OS=="win" and win_use_allocator_shim==1', { 42 ['OS=="win" and win_use_allocator_shim==1', {
43 'msvs_settings': { 43 'msvs_settings': {
44 # TODO(sgk): merge this with build/common.gypi settings 44 # TODO(sgk): merge this with build/common.gypi settings
45 'VCLibrarianTool': { 45 'VCLibrarianTool': {
46 'AdditionalOptions': ['/ignore:4006,4221'], 46 'AdditionalOptions': ['/ignore:4006,4221'],
47 }, 47 },
48 'VCLinkerTool': { 48 'VCLinkerTool': {
49 'AdditionalOptions': ['/ignore:4006'], 49 'AdditionalOptions': ['/ignore:4006'],
50 }, 50 },
51 }, 51 },
52 'dependencies': [
53 'libcmt',
54 ],
52 'include_dirs': [ 55 'include_dirs': [
53 '../..', 56 '../..',
54 ], 57 ],
55 'sources': [ 58 'sources': [
56 'allocator_shim_win.cc', 59 'allocator_shim_win.cc',
57 'allocator_shim_win.h',
58 ], 60 ],
61 'link_settings': {
62 'msvs_settings': {
63 'VCLinkerTool': {
64 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'],
65 'AdditionalDependencies': [
66 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib'
67 ],
68 },
69 },
70 },
59 'configurations': { 71 'configurations': {
60 'Debug_Base': { 72 'Debug_Base': {
61 'msvs_settings': { 73 'msvs_settings': {
62 'VCCLCompilerTool': { 74 'VCCLCompilerTool': {
63 'RuntimeLibrary': '0', 75 'RuntimeLibrary': '0',
64 }, 76 },
65 }, 77 },
66 }, 78 },
67 }, 79 },
68 }], # OS=="win" 80 }], # OS=="win"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 'includes': [ '../../build/buildflag_header.gypi' ], 386 'includes': [ '../../build/buildflag_header.gypi' ],
375 'variables': { 387 'variables': {
376 'buildflag_header_path': 'base/allocator/features.h', 388 'buildflag_header_path': 'base/allocator/features.h',
377 'buildflag_flags': [ 389 'buildflag_flags': [
378 'USE_EXPERIMENTAL_ALLOCATOR_SHIM=<(use_experimental_allocator_shim)', 390 'USE_EXPERIMENTAL_ALLOCATOR_SHIM=<(use_experimental_allocator_shim)',
379 ], 391 ],
380 }, 392 },
381 }, # 'allocator_features' target. 393 }, # 'allocator_features' target.
382 ], # targets. 394 ], # targets.
383 'conditions': [ 395 'conditions': [
396 ['OS=="win" and win_use_allocator_shim==1', {
397 'targets': [
398 {
399 'target_name': 'libcmt',
400 'toolsets': ['host', 'target'],
401 'type': 'none',
402 'actions': [
403 {
404 'action_name': 'libcmt',
405 'inputs': [
406 'prep_libc.py',
407 ],
408 'outputs': [
409 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib',
410 ],
411 'action': [
412 'python',
413 'prep_libc.py',
414 '$(VCInstallDir)lib',
415 '<(SHARED_INTERMEDIATE_DIR)/allocator',
416 '<(target_arch)',
417 ],
418 },
419 ],
420 },
421 ],
422 }],
384 ['use_experimental_allocator_shim==1', { 423 ['use_experimental_allocator_shim==1', {
385 'targets': [ 424 'targets': [
386 { 425 {
387 # GN: //base/allocator:unified_allocator_shim 426 # GN: //base/allocator:unified_allocator_shim
388 'target_name': 'unified_allocator_shim', 427 'target_name': 'unified_allocator_shim',
389 'toolsets': ['host', 'target'], 428 'toolsets': ['host', 'target'],
390 'type': 'static_library', 429 'type': 'static_library',
391 'defines': [ 'BASE_IMPLEMENTATION' ], 430 'defines': [ 'BASE_IMPLEMENTATION' ],
392 'sources': [ 431 'sources': [
393 'allocator_shim.cc', 432 'allocator_shim.cc',
(...skipping 16 matching lines...) Expand all
410 'sources': [ 449 'sources': [
411 'allocator_shim_default_dispatch_to_glibc.cc', 450 'allocator_shim_default_dispatch_to_glibc.cc',
412 ], 451 ],
413 }], 452 }],
414 ] 453 ]
415 }, # 'unified_allocator_shim' target. 454 }, # 'unified_allocator_shim' target.
416 ], 455 ],
417 }] 456 }]
418 ], 457 ],
419 } 458 }
OLDNEW
« no previous file with comments | « base/allocator/BUILD.gn ('k') | base/allocator/allocator_check.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698