| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 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 'variables': { | |
| 6 'dest_dir': '<(PRODUCT_DIR)/syzygy', | |
| 7 }, | |
| 8 'conditions': [ | |
| 9 ['syzyasan==1', { | |
| 10 'variables': { | |
| 11 'syzygy_exe_dir': '<(DEPTH)/third_party/syzygy/binaries/exe', | |
| 12 }, | |
| 13 # Copy the SyzyASan runtime and logger to the syzygy directory. | |
| 14 'targets': [ | |
| 15 { | |
| 16 'target_name': 'copy_syzyasan_binaries', | |
| 17 'type': 'none', | |
| 18 'outputs': [ | |
| 19 '<(dest_dir)/agent_logger.exe', | |
| 20 '<(dest_dir)/syzyasan_rtl.dll', | |
| 21 '<(dest_dir)/syzyasan_rtl.dll.pdb', | |
| 22 ], | |
| 23 'copies': [ | |
| 24 { | |
| 25 'destination': '<(dest_dir)', | |
| 26 'files': [ | |
| 27 '<(syzygy_exe_dir)/agent_logger.exe', | |
| 28 '<(syzygy_exe_dir)/minidump_symbolizer.py', | |
| 29 '<(syzygy_exe_dir)/syzyasan_rtl.dll', | |
| 30 '<(syzygy_exe_dir)/syzyasan_rtl.dll.pdb', | |
| 31 ], | |
| 32 }, | |
| 33 ], | |
| 34 }, | |
| 35 ], | |
| 36 }], | |
| 37 ['OS=="win" and fastbuild==0', { | |
| 38 'conditions': [ | |
| 39 ['syzygy_optimize==1 or syzyasan==1', { | |
| 40 'variables': { | |
| 41 'dll_name': 'chrome', | |
| 42 }, | |
| 43 'targets': [ | |
| 44 # GN version: //chrome/tools/build/win/syzygy:chrome_dll_syzygy | |
| 45 { | |
| 46 'target_name': 'chrome_dll_syzygy', | |
| 47 'type': 'none', | |
| 48 'sources' : [], | |
| 49 'includes': [ | |
| 50 'chrome_syzygy.gypi', | |
| 51 ], | |
| 52 }, | |
| 53 ], | |
| 54 }], | |
| 55 ['chrome_multiple_dll==1', { | |
| 56 'conditions': [ | |
| 57 ['syzyasan==1 or syzygy_optimize==1', { | |
| 58 'variables': { | |
| 59 'dll_name': 'chrome_child', | |
| 60 }, | |
| 61 'targets': [ | |
| 62 # GN version: //chrome/tools/build/win/syzygy:chrome_child_dll_s
yzygy | |
| 63 { | |
| 64 'target_name': 'chrome_child_dll_syzygy', | |
| 65 'type': 'none', | |
| 66 # For the official SyzyASan builds just copy chrome_child.dll | |
| 67 # to the Syzygy directory. | |
| 68 'conditions': [ | |
| 69 ['syzyasan==1 and buildtype=="Official"', { | |
| 70 'dependencies': [ | |
| 71 'chrome_child_dll_syzygy_copy' | |
| 72 ], | |
| 73 }], | |
| 74 ], | |
| 75 # For the official SyzyASan builds also put an instrumented | |
| 76 # version of chrome_child.dll into syzygy/instrumented. | |
| 77 'variables': { | |
| 78 'conditions': [ | |
| 79 ['syzyasan==1 and buildtype=="Official"', { | |
| 80 'dest_dir': '<(PRODUCT_DIR)/syzygy/instrumented', | |
| 81 }], | |
| 82 ], | |
| 83 }, | |
| 84 'sources' : [], | |
| 85 'includes': [ | |
| 86 'chrome_syzygy.gypi', | |
| 87 ], | |
| 88 }, | |
| 89 ], | |
| 90 }], | |
| 91 # For the official SyzyASan builds just copy chrome_child.dll to the | |
| 92 # Syzygy directory. | |
| 93 ['syzyasan==1 and buildtype=="Official"', { | |
| 94 'targets': [ | |
| 95 { | |
| 96 # GN version: //chrome/tools/build/win/syzygy:chrome_child_dll_s
yzygy_copy | |
| 97 'target_name': 'chrome_child_dll_syzygy_copy', | |
| 98 'type': 'none', | |
| 99 'inputs': [ | |
| 100 '<(PRODUCT_DIR)/chrome_child.dll', | |
| 101 '<(PRODUCT_DIR)/chrome_child.dll.pdb', | |
| 102 ], | |
| 103 'outputs': [ | |
| 104 '<(dest_dir)/chrome_child.dll', | |
| 105 '<(dest_dir)/chrome_child.dll.pdb', | |
| 106 ], | |
| 107 'copies': [ | |
| 108 { | |
| 109 'destination': '<(dest_dir)', | |
| 110 'files': [ | |
| 111 '<(PRODUCT_DIR)/chrome_child.dll', | |
| 112 '<(PRODUCT_DIR)/chrome_child.dll.pdb', | |
| 113 ], | |
| 114 }, | |
| 115 ], | |
| 116 }], | |
| 117 }], | |
| 118 ], | |
| 119 }], | |
| 120 ], | |
| 121 }], | |
| 122 ], | |
| 123 } | |
| OLD | NEW |