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 'conditions': [ 6 ['OS=="win" and asan==1', { 7 'variables': { 8 'dest_dir': '<(PRODUCT_DIR)/syzygy', 9 'syzygy_exe_dir': '<(DEPTH)/third_party/syzygy/binaries/exe', 10 }, 11 # Copy the SyzyASan runtime and logger to the syzygy directory. 12 'targets': [ 13 { 14 'target_name': 'copy_syzyasan_binaries', 15 'type': 'none', 16 'outputs': [ 17 '<(dest_dir)/agent_logger.exe', 18 '<(dest_dir)/syzyasan_rtl.dll', 19 '<(dest_dir)/syzyasan_rtl.dll.pdb', 20 ], 21 'copies': [ 22 { 23 'destination': '<(dest_dir)', 24 'files': [ 25 '<(syzygy_exe_dir)/agent_logger.exe', 26 '<(syzygy_exe_dir)/syzyasan_rtl.dll', 27 '<(syzygy_exe_dir)/syzyasan_rtl.dll.pdb', 28 ], 29 }, 30 ], 31 }, 32 ], 33 }], 34 ['OS=="win" and fastbuild==0', { 35 'variables': { 36 'dll_name': 'chrome', 37 }, 38 'targets': [ 39 { 40 'target_name': 'chrome_dll_syzygy', 41 'type': 'none', 42 'sources' : [], 43 'includes': [ 44 'chrome_syzygy.gypi', 45 ], 46 }, 47 ], 48 }], 49 # Note, not else. 50 ['OS=="win" and fastbuild==0 and chrome_multiple_dll==1 and ' 51 '(asan!=1 or buildtype!="Official")', { 52 'variables': { 53 'dll_name': 'chrome_child', 54 }, 55 'targets': [ 56 { 57 'target_name': 'chrome_child_dll_syzygy', 58 'type': 'none', 59 'sources' : [], 60 'includes': [ 61 'chrome_syzygy.gypi', 62 ], 63 }, 64 ], 65 }, { 66 'conditions': [ 67 ['OS=="win" and fastbuild==0 and chrome_multiple_dll==1 and ' 68 'asan==1 and buildtype=="Official"', { 69 'targets': [ 70 { 71 'target_name': 'chrome_child_dll_syzygy', 72 'type': 'none', 73 'inputs': [ 74 '<(PRODUCT_DIR)/chrome_child.dll', 75 '<(PRODUCT_DIR)/chrome_child.dll.pdb', 76 ], 77 'outputs': [ 78 '<(PRODUCT_DIR)/syzygy/chrome_child.dll', 79 '<(PRODUCT_DIR)/syzygy/chrome_child.dll.pdb', 80 ], 81 'copies': [ 82 { 83 'destination': '<(PRODUCT_DIR)/syzygy', 84 'files': [ 85 '<(PRODUCT_DIR)/chrome_child.dll', 86 '<(PRODUCT_DIR)/chrome_child.dll.pdb', 87 ], 88 }, 89 ], 90 }], 91 }], 92 ], 93 }], 94 ], 95 } 96