Disable input view by default.
[chromium-blink-merge.git] / chrome / chrome_syzygy.gyp
blobb52e702acf3fcdf4973bd7b52bff381d6b6103be
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.
5   'conditions': [
6     ['syzyasan==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       'conditions': [
36         ['syzygy_optimize==1 or syzyasan==1', {
37           'variables': {
38             'dll_name': 'chrome',
39           },
40           'targets': [
41             {
42               'target_name': 'chrome_dll_syzygy',
43               'type': 'none',
44               'sources' : [],
45               'includes': [
46                 'chrome_syzygy.gypi',
47               ],
48             },
49           ],
50         }],
51         ['chrome_multiple_dll==1', {
52           'conditions': [
53             # Prevent chrome_child.dll from being syzyasan-instrumented for the
54             # official builds.
55             #
56             # Here's the truth table for this logic:
57             # +----------+-----------------+-----------+--------------+
58             # | syzyasan | syzygy_optimize | buildtype | instrument ? |
59             # +----------+-----------------+-----------+--------------+
60             # |    0     |        0        |    any    |      N       |
61             # +----------+-----------------+-----------+--------------+
62             # |    0     |        1        |    any    |      Y       |
63             # +----------+-----------------+-----------+--------------+
64             # |    1     |        0        |     -     |      Y       |
65             # +----------+-----------------+-----------+--------------+
66             # |    1     |        0        |  Official |      N       |
67             # +----------+-----------------+-----------+--------------+
68             # |    1     |        1        |     ----Invalid----      |
69             # +----------+-----------------+-----------+--------------+
70             ['(syzyasan==1 and buildtype!="Official") or syzygy_optimize==1', {
71               'variables': {
72                 'dll_name': 'chrome_child',
73               },
74               'targets': [
75                 {
76                   'target_name': 'chrome_child_dll_syzygy',
77                   'type': 'none',
78                   'sources' : [],
79                   'includes': [
80                     'chrome_syzygy.gypi',
81                   ],
82                 },
83               ],
84             }],
85             # For the official SyzyASan builds just copy chrome_child.dll to the
86             # Syzygy directory.
87             ['syzyasan==1 and buildtype=="Official"', {
88               'targets': [
89               {
90                 'target_name': 'chrome_child_dll_syzygy',
91                 'type': 'none',
92                 'inputs': [
93                   '<(PRODUCT_DIR)/chrome_child.dll',
94                   '<(PRODUCT_DIR)/chrome_child.dll.pdb',
95                 ],
96                 'outputs': [
97                   '<(PRODUCT_DIR)/syzygy/chrome_child.dll',
98                   '<(PRODUCT_DIR)/syzygy/chrome_child.dll.pdb',
99                 ],
100                 'copies': [
101                   {
102                     'destination': '<(PRODUCT_DIR)/syzygy',
103                     'files': [
104                       '<(PRODUCT_DIR)/chrome_child.dll',
105                       '<(PRODUCT_DIR)/chrome_child.dll.pdb',
106                     ],
107                   },
108                 ],
109               }],
110             }],
111           ],
112         }],
113       ],
114     }],
115   ],