OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # The .natvis files define "native visualizers" for the Visual Studio debugger |
| 6 # that allow one to define how custom types appear. |
| 7 # |
| 8 # One can use them by adding them to a project in visual studio, and they can |
| 9 # be embedded in a project's PDB file using the undocumented linker flag |
| 10 # /NATVIS. These configs would generally be added to all_dependent_configs |
| 11 # on a target so all targets that link to them will reference the visualizers |
| 12 # from their PDB files. |
| 13 # |
| 14 # See https://msdn.microsoft.com/en-us/library/jj620914.aspx for how they work. |
| 15 # |
| 16 # Since these only add ldflags, the targets themselves are not rebuilt when the |
| 17 # natvis files are updated. To debug, erase the .pdb file and build to re-link. |
| 18 |
| 19 assert(is_win) |
| 20 |
| 21 config("chrome") { |
| 22 ldflags = [ "/NATVIS:" + rebase_path("chrome.natvis", root_build_dir) ] |
| 23 } |
| 24 |
| 25 config("skia") { |
| 26 ldflags = [ "/NATVIS:" + rebase_path("skia.natvis", root_build_dir) ] |
| 27 } |
| 28 |
| 29 config("webkit") { |
| 30 ldflags = [ "/NATVIS:" + rebase_path("webkit.natvis", root_build_dir) ] |
| 31 } |
OLD | NEW |