OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 # Intended to be included by chrome_syzygy.gyp. A variable 'dll_name' should | 5 # Intended to be included by chrome_syzygy.gyp. A variable 'dll_name' should |
6 # be set to the base name of the DLL. This is used to generate the build steps | 6 # be set to the base name of the DLL. This is used to generate the build steps |
7 # for both chrome.dll and chrome_child.dll when in multiple dll mode. | 7 # for both chrome.dll and chrome_child.dll when in multiple dll mode. |
8 { | 8 { |
9 # Reorder or instrument the initial chrome DLL executable, placing the | 9 # Reorder or instrument the initial chrome DLL executable, placing the |
10 # optimized output and corresponding PDB file into the "syzygy" | 10 # optimized output and corresponding PDB file into the "syzygy" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 ], | 42 ], |
43 }], | 43 }], |
44 ['syzyasan==1 and syzygy_optimize==0', { | 44 ['syzyasan==1 and syzygy_optimize==0', { |
45 # Instrument chrome DLL executable with SyzyAsan. | 45 # Instrument chrome DLL executable with SyzyAsan. |
46 'actions': [ | 46 'actions': [ |
47 { | 47 { |
48 'action_name': 'Instrument Chrome with SyzyAsan', | 48 'action_name': 'Instrument Chrome with SyzyAsan', |
49 'inputs': [ | 49 'inputs': [ |
50 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py', | 50 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py', |
51 '<(DEPTH)/chrome/tools/build/win/syzygy/' | 51 '<(DEPTH)/chrome/tools/build/win/syzygy/' |
52 'syzyasan-allocation-filter.txt', | |
53 '<(DEPTH)/chrome/tools/build/win/syzygy/' | |
54 'syzyasan-instrumentation-filter.txt', | 52 'syzyasan-instrumentation-filter.txt', |
55 '<(PRODUCT_DIR)/<(dll_name).dll', | 53 '<(PRODUCT_DIR)/<(dll_name).dll', |
56 ], | 54 ], |
57 'outputs': [ | 55 'outputs': [ |
58 '<(dest_dir)/<(dll_name).dll', | 56 '<(dest_dir)/<(dll_name).dll', |
59 '<(dest_dir)/<(dll_name).dll.pdb', | 57 '<(dest_dir)/<(dll_name).dll.pdb', |
60 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json', | 58 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json', |
61 ], | 59 ], |
62 'action': [ | 60 'action': [ |
63 'python', | 61 'python', |
64 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py', | 62 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py', |
65 '--mode', 'asan', | 63 '--mode', 'asan', |
66 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll', | 64 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll', |
67 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb', | 65 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb', |
68 '--filter', | 66 '--filter', |
69 '<(DEPTH)/chrome/tools/build/win/syzygy/' | 67 '<(DEPTH)/chrome/tools/build/win/syzygy/' |
70 'syzyasan-instrumentation-filter.txt', | 68 'syzyasan-instrumentation-filter.txt', |
71 '--output-filter-file', | 69 '--output-filter-file', |
72 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json', | 70 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json', |
73 '--allocation-filter-file', '<(DEPTH)/chrome/tools/build/win/syzygy' | |
74 'syzyasan-allocation-filter.txt', | |
75 '--destination_dir', '<(dest_dir)', | 71 '--destination_dir', '<(dest_dir)', |
76 ], | 72 ], |
77 }, | 73 }, |
78 ], | 74 ], |
79 'dependencies': [ | 75 'dependencies': [ |
80 'copy_syzyasan_binaries', | 76 'copy_syzyasan_binaries', |
81 ], | 77 ], |
82 }], | 78 }], |
83 ], | 79 ], |
84 } | 80 } |
OLD | NEW |