| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'jemalloc_dir': '../../third_party/jemalloc/chromium', | 7 'jemalloc_dir': '../../third_party/jemalloc/chromium', |
| 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', | 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', |
| 9 }, | 9 }, |
| 10 'targets': [ | 10 'targets': [ |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 '<(tcmalloc_dir)/src/memory_region_map.h', | 197 '<(tcmalloc_dir)/src/memory_region_map.h', |
| 198 '<(tcmalloc_dir)/src/profiledata.cc', | 198 '<(tcmalloc_dir)/src/profiledata.cc', |
| 199 '<(tcmalloc_dir)/src/profiledata.h', | 199 '<(tcmalloc_dir)/src/profiledata.h', |
| 200 '<(tcmalloc_dir)/src/profile-handler.cc', | 200 '<(tcmalloc_dir)/src/profile-handler.cc', |
| 201 '<(tcmalloc_dir)/src/profile-handler.h', | 201 '<(tcmalloc_dir)/src/profile-handler.h', |
| 202 '<(tcmalloc_dir)/src/profiler.cc', | 202 '<(tcmalloc_dir)/src/profiler.cc', |
| 203 ], | 203 ], |
| 204 }], | 204 }], |
| 205 ['OS=="linux"', { | 205 ['OS=="linux"', { |
| 206 'sources!': [ | 206 'sources!': [ |
| 207 '<(tcmalloc_dir)/src/page_heap.cc', | |
| 208 '<(tcmalloc_dir)/src/system-alloc.h', | 207 '<(tcmalloc_dir)/src/system-alloc.h', |
| 209 '<(tcmalloc_dir)/src/windows/port.cc', | 208 '<(tcmalloc_dir)/src/windows/port.cc', |
| 210 '<(tcmalloc_dir)/src/windows/port.h', | 209 '<(tcmalloc_dir)/src/windows/port.h', |
| 211 | 210 |
| 212 # TODO(willchan): Support allocator shim later on. | 211 # TODO(willchan): Support allocator shim later on. |
| 213 'allocator_shim.cc', | 212 'allocator_shim.cc', |
| 214 | 213 |
| 215 # TODO(willchan): support jemalloc on other platforms | 214 # TODO(willchan): support jemalloc on other platforms |
| 216 # jemalloc files | 215 # jemalloc files |
| 217 '<(jemalloc_dir)/jemalloc.c', | 216 '<(jemalloc_dir)/jemalloc.c', |
| 218 '<(jemalloc_dir)/jemalloc.h', | 217 '<(jemalloc_dir)/jemalloc.h', |
| 219 '<(jemalloc_dir)/ql.h', | 218 '<(jemalloc_dir)/ql.h', |
| 220 '<(jemalloc_dir)/qr.h', | 219 '<(jemalloc_dir)/qr.h', |
| 221 '<(jemalloc_dir)/rb.h', | 220 '<(jemalloc_dir)/rb.h', |
| 221 |
| 222 # TODO(willchan): Return to using this when page_heap_linux.cc |
| 223 # becomes unnecessary. |
| 224 '<(tcmalloc_dir)/src/page_heap.cc', |
| 225 ], |
| 226 # TODO(willchan): This is actually just a branched copy of the |
| 227 # vanilla upstream page_heap.cc. The current forked copy of |
| 228 # page_heap.cc has Windows-specific code in it so Linux can't |
| 229 # use it. These need to be refactored so we can track changes |
| 230 # to the upstream page_heap.cc without duplication. |
| 231 'sources': [ |
| 232 '<(tcmalloc_dir)/src/page_heap_linux.cc', |
| 222 ], | 233 ], |
| 223 'cflags!': [ | 234 'cflags!': [ |
| 224 '-fvisibility=hidden', | 235 '-fvisibility=hidden', |
| 225 ], | 236 ], |
| 226 'link_settings': { | 237 'link_settings': { |
| 227 'ldflags': [ | 238 'ldflags': [ |
| 228 # Don't let linker rip this symbol out, otherwise the heap&cpu | 239 # Don't let linker rip this symbol out, otherwise the heap&cpu |
| 229 # profilers will not initialize properly on startup. | 240 # profilers will not initialize properly on startup. |
| 230 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', | 241 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', |
| 231 # Do the same for heap leak checker. | 242 # Do the same for heap leak checker. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 ], | 293 ], |
| 283 }], | 294 }], |
| 284 ], | 295 ], |
| 285 } | 296 } |
| 286 | 297 |
| 287 # Local Variables: | 298 # Local Variables: |
| 288 # tab-width:2 | 299 # tab-width:2 |
| 289 # indent-tabs-mode:nil | 300 # indent-tabs-mode:nil |
| 290 # End: | 301 # End: |
| 291 # vim: set expandtab tabstop=2 shiftwidth=2: | 302 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |