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

Side by Side Diff: chrome/chrome_syzygy.gypi

Issue 773253004: Move Syzygy build related things to their own directory with an OWNERS file, and add an allocation … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix. Created 6 years 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
OLDNEW
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"
11 # subdirectory. 11 # subdirectory.
12 # This target won't build in fastbuild, since there are no PDBs. 12 # This target won't build in fastbuild, since there are no PDBs.
13 'dependencies': [ 13 'dependencies': [
14 '<(DEPTH)/chrome/chrome.gyp:<(dll_name)_dll', 14 '<(DEPTH)/chrome/chrome.gyp:<(dll_name)_dll',
15 ], 15 ],
16 'conditions': [ 16 'conditions': [
17 ['syzyasan==0 and syzygy_optimize==1', { 17 ['syzyasan==0 and syzygy_optimize==1', {
18 # Reorder chrome DLL executable. 18 # Reorder chrome DLL executable.
19 # If there's a matching chrome.dll-ordering.json file present in 19 # If there's a matching chrome.dll-ordering.json file present in
20 # the output directory, chrome.dll will be ordered according to 20 # the output directory, chrome.dll will be ordered according to
21 # that, otherwise it will be randomized. 21 # that, otherwise it will be randomized.
22 'actions': [ 22 'actions': [
23 { 23 {
24 'action_name': 'Reorder Chrome with Syzygy', 24 'action_name': 'Reorder Chrome with Syzygy',
25 'inputs': [ 25 'inputs': [
26 '<(DEPTH)/chrome/tools/build/win/syzygy/reorder.py',
26 '<(PRODUCT_DIR)/<(dll_name).dll', 27 '<(PRODUCT_DIR)/<(dll_name).dll',
27 '<(PRODUCT_DIR)/<(dll_name).dll.pdb', 28 '<(PRODUCT_DIR)/<(dll_name).dll.pdb',
28 ], 29 ],
29 'outputs': [ 30 'outputs': [
30 '<(dest_dir)/<(dll_name).dll', 31 '<(dest_dir)/<(dll_name).dll',
31 '<(dest_dir)/<(dll_name).dll.pdb', 32 '<(dest_dir)/<(dll_name).dll.pdb',
32 ], 33 ],
33 'action': [ 34 'action': [
34 'python', 35 'python',
35 '<(DEPTH)/chrome/tools/build/win/syzygy_reorder.py', 36 '<(DEPTH)/chrome/tools/build/win/syzygy/reorder.py',
36 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll', 37 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll',
37 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb', 38 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb',
38 '--destination_dir', '<(dest_dir)', 39 '--destination_dir', '<(dest_dir)',
39 ], 40 ],
40 }, 41 },
41 ], 42 ],
42 }], 43 }],
43 ['syzyasan==1 and syzygy_optimize==0', { 44 ['syzyasan==1 and syzygy_optimize==0', {
44 # Instrument chrome DLL executable with SyzyAsan. 45 # Instrument chrome DLL executable with SyzyAsan.
45 'actions': [ 46 'actions': [
46 { 47 {
47 'action_name': 'Instrument Chrome with SyzyAsan', 48 'action_name': 'Instrument Chrome with SyzyAsan',
48 'inputs': [ 49 'inputs': [
49 '<(DEPTH)/chrome/tools/build/win/win-syzyasan-filter.txt', 50 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
51 '<(DEPTH)/chrome/tools/build/win/syzygy/'
52 'syzyasan-allocation-filter.txt',
53 '<(DEPTH)/chrome/tools/build/win/syzygy/'
54 'syzyasan-instrumentation-filter.txt',
50 '<(PRODUCT_DIR)/<(dll_name).dll', 55 '<(PRODUCT_DIR)/<(dll_name).dll',
51 ], 56 ],
52 'outputs': [ 57 'outputs': [
53 '<(dest_dir)/<(dll_name).dll', 58 '<(dest_dir)/<(dll_name).dll',
54 '<(dest_dir)/<(dll_name).dll.pdb', 59 '<(dest_dir)/<(dll_name).dll.pdb',
55 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json', 60 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json',
56 ], 61 ],
57 'action': [ 62 'action': [
58 'python', 63 'python',
59 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py', 64 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
60 '--mode', 'asan', 65 '--mode', 'asan',
61 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll', 66 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll',
62 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb', 67 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb',
63 '--filter', 68 '--filter',
64 '<(DEPTH)/chrome/tools/build/win/win-syzyasan-filter.txt', 69 '<(DEPTH)/chrome/tools/build/win/syzygy/'
70 'syzyasan-instrumentation-filter.txt',
65 '--output-filter-file', 71 '--output-filter-file',
66 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json', 72 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json',
73 '--allocation-filter-file', '<(DEPTH)/chrome/tools/build/win/syzygy'
74 'syzyasan-allocation-filter.txt',
67 '--destination_dir', '<(dest_dir)', 75 '--destination_dir', '<(dest_dir)',
68 ], 76 ],
69 }, 77 },
70 ], 78 ],
71 'dependencies': [ 79 'dependencies': [
72 'copy_syzyasan_binaries', 80 'copy_syzyasan_binaries',
73 ], 81 ],
74 }], 82 }],
75 ], 83 ],
76 } 84 }
OLDNEW
« no previous file with comments | « no previous file | chrome/tools/build/win/OWNERS » ('j') | chrome/tools/build/win/syzygy/instrument.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698