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.
8 'dest_dir': '<(PRODUCT_DIR)/syzygy',
9 'syzygy_exe_dir': '<(DEPTH)/third_party/syzygy/binaries/exe',
11 # Copy the SyzyASan runtime and logger to the syzygy directory.
14 'target_name': 'copy_syzyasan_binaries',
17 '<(dest_dir)/agent_logger.exe',
18 '<(dest_dir)/syzyasan_rtl.dll',
19 '<(dest_dir)/syzyasan_rtl.dll.pdb',
23 'destination': '<(dest_dir)',
25 '<(syzygy_exe_dir)/agent_logger.exe',
26 '<(syzygy_exe_dir)/syzyasan_rtl.dll',
27 '<(syzygy_exe_dir)/syzyasan_rtl.dll.pdb',
34 ['OS=="win" and fastbuild==0', {
36 ['syzygy_optimize==1 or syzyasan==1', {
42 'target_name': 'chrome_dll_syzygy',
51 ['chrome_multiple_dll==1', {
53 # Prevent chrome_child.dll from being syzyasan-instrumented for the
56 # Here's the truth table for this logic:
57 # +----------+-----------------+-----------+--------------+
58 # | syzyasan | syzygy_optimize | buildtype | instrument ? |
59 # +----------+-----------------+-----------+--------------+
61 # +----------+-----------------+-----------+--------------+
63 # +----------+-----------------+-----------+--------------+
65 # +----------+-----------------+-----------+--------------+
66 # | 1 | 0 | Official | N |
67 # +----------+-----------------+-----------+--------------+
68 # | 1 | 1 | ----Invalid---- |
69 # +----------+-----------------+-----------+--------------+
70 ['(syzyasan==1 and buildtype!="Official") or syzygy_optimize==1', {
72 'dll_name': 'chrome_child',
76 'target_name': 'chrome_child_dll_syzygy',
85 # For the official SyzyASan builds just copy chrome_child.dll to the
87 ['syzyasan==1 and buildtype=="Official"', {
90 'target_name': 'chrome_child_dll_syzygy',
93 '<(PRODUCT_DIR)/chrome_child.dll',
94 '<(PRODUCT_DIR)/chrome_child.dll.pdb',
97 '<(PRODUCT_DIR)/syzygy/chrome_child.dll',
98 '<(PRODUCT_DIR)/syzygy/chrome_child.dll.pdb',
102 'destination': '<(PRODUCT_DIR)/syzygy',
104 '<(PRODUCT_DIR)/chrome_child.dll',
105 '<(PRODUCT_DIR)/chrome_child.dll.pdb',