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

Side by Side Diff: base/base.gyp

Issue 177353002: Add use_allocator instead of linux_use_tcmalloc to switch the allocator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready with use_allocator Created 6 years, 9 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 | Annotate | Revision Log
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 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ['OS == "linux"', { 173 ['OS == "linux"', {
174 'link_settings': { 174 'link_settings': {
175 'libraries': [ 175 'libraries': [
176 # We need rt for clock_gettime(). 176 # We need rt for clock_gettime().
177 '-lrt', 177 '-lrt',
178 # For 'native_library_linux.cc' 178 # For 'native_library_linux.cc'
179 '-ldl', 179 '-ldl',
180 ], 180 ],
181 }, 181 },
182 'conditions': [ 182 'conditions': [
183 ['linux_use_tcmalloc==0', { 183 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
184 ['use_allocator!="tcmalloc" and (use_allocator!="see_use_tcmalloc" o r linux_use_tcmalloc==0)', {
184 'defines': [ 185 'defines': [
185 'NO_TCMALLOC', 186 'NO_TCMALLOC',
186 ], 187 ],
187 'direct_dependent_settings': { 188 'direct_dependent_settings': {
188 'defines': [ 189 'defines': [
189 'NO_TCMALLOC', 190 'NO_TCMALLOC',
190 ], 191 ],
191 }, 192 },
192 }], 193 }],
193 ], 194 ],
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 }, { # use_glib == 0 748 }, { # use_glib == 0
748 'sources!': [ 749 'sources!': [
749 'message_loop/message_pump_glib_unittest.cc', 750 'message_loop/message_pump_glib_unittest.cc',
750 ] 751 ]
751 }], 752 }],
752 ['use_ozone == 1', { 753 ['use_ozone == 1', {
753 'sources!': [ 754 'sources!': [
754 'message_loop/message_pump_glib_unittest.cc', 755 'message_loop/message_pump_glib_unittest.cc',
755 ] 756 ]
756 }], 757 }],
757 ['OS == "linux" and linux_use_tcmalloc==1', { 758 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
759 ['OS == "linux" and ((use_allocator!="none" and use_allocator!="see_use_ tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
758 'dependencies': [ 760 'dependencies': [
759 'allocator/allocator.gyp:allocator', 761 'allocator/allocator.gyp:allocator',
760 ], 762 ],
761 }, 763 },
762 ], 764 ],
763 ['OS == "win"', { 765 ['OS == "win"', {
764 'sources!': [ 766 'sources!': [
765 'file_descriptor_shuffle_unittest.cc', 767 'file_descriptor_shuffle_unittest.cc',
766 'files/dir_reader_posix_unittest.cc', 768 'files/dir_reader_posix_unittest.cc',
767 'threading/worker_pool_posix_unittest.cc', 769 'threading/worker_pool_posix_unittest.cc',
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 'base_unittests.isolate', 1444 'base_unittests.isolate',
1443 ], 1445 ],
1444 'sources': [ 1446 'sources': [
1445 'base_unittests.isolate', 1447 'base_unittests.isolate',
1446 ], 1448 ],
1447 }, 1449 },
1448 ], 1450 ],
1449 }], 1451 }],
1450 ], 1452 ],
1451 } 1453 }
OLDNEW
« ash/ash.gyp ('K') | « ash/ash.gyp ('k') | base/security_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698