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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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/BUILD.gn ('k') | base/allocator/allocator_shim_win.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',
11 'win_debug_Optimization': '0', 11 'win_debug_Optimization': '0',
12 # Run time checks are incompatible with any level of optimizations. 12 # Run time checks are incompatible with any level of optimizations.
13 'win_debug_RuntimeChecks': '0', 13 'win_debug_RuntimeChecks': '0',
14 }, 14 },
15 }, 15 },
16 'variables': { 16 'variables': {
17 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', 17 'tcmalloc_dir': '../../third_party/tcmalloc/chromium',
18 'use_vtable_verify%': 0, 18 'use_vtable_verify%': 0,
19 }, 19 },
20 'targets': [ 20 'targets': [
21 # Only executables and not libraries should depend on the 21 # Only executables and not libraries should depend on the
22 # allocator target; only the application (the final executable) 22 # allocator target; only the application (the final executable)
23 # knows what allocator makes sense. 23 # knows what allocator makes sense.
24 { 24 {
25 'target_name': 'allocator', 25 'target_name': 'allocator',
26 'type': 'static_library', 26 'type': 'static_library',
27 # Make sure the allocation library is optimized to
28 # the hilt in official builds.
29 'variables': {
30 'optimize': 'max',
31 },
32 'direct_dependent_settings': { 27 'direct_dependent_settings': {
33 'configurations': { 28 'configurations': {
34 'Common_Base': { 29 'Common_Base': {
35 'msvs_settings': { 30 'msvs_settings': {
36 'VCLinkerTool': { 31 'VCLinkerTool': {
37 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'], 32 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'],
38 'AdditionalDependencies': [ 33 'AdditionalDependencies': [
39 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib' 34 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib'
40 ], 35 ],
41 }, 36 },
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 'cflags_cc!': [ 308 'cflags_cc!': [
314 '-fintercept-allocation-functions', 309 '-fintercept-allocation-functions',
315 ], 310 ],
316 }], 311 }],
317 ['OS=="win"', { 312 ['OS=="win"', {
318 'dependencies': [ 313 'dependencies': [
319 'libcmt', 314 'libcmt',
320 ], 315 ],
321 'sources': [ 316 'sources': [
322 'allocator_shim_win.cc', 317 'allocator_shim_win.cc',
323 'generic_allocators.cc',
324 ],
325 # sources! means that these are not compiled directly.
326 'sources!': [
327 # Included by allocator_shim_win.cc for maximal inlining.
328 'generic_allocators.cc',
329 ], 318 ],
330 }], 319 }],
331 ['profiling!=1', { 320 ['profiling!=1', {
332 'sources!': [ 321 'sources!': [
333 # cpuprofiler 322 # cpuprofiler
334 '<(tcmalloc_dir)/src/base/thread_lister.c', 323 '<(tcmalloc_dir)/src/base/thread_lister.c',
335 '<(tcmalloc_dir)/src/base/thread_lister.h', 324 '<(tcmalloc_dir)/src/base/thread_lister.h',
336 '<(tcmalloc_dir)/src/profiledata.cc', 325 '<(tcmalloc_dir)/src/profiledata.cc',
337 '<(tcmalloc_dir)/src/profiledata.h', 326 '<(tcmalloc_dir)/src/profiledata.h',
338 '<(tcmalloc_dir)/src/profile-handler.cc', 327 '<(tcmalloc_dir)/src/profile-handler.cc',
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 ], 563 ],
575 'dependencies': [ 564 'dependencies': [
576 '../../testing/gtest.gyp:gtest', 565 '../../testing/gtest.gyp:gtest',
577 'allocator', 566 'allocator',
578 ], 567 ],
579 }, 568 },
580 ], 569 ],
581 }], 570 }],
582 ], 571 ],
583 } 572 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/allocator/allocator_shim_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698