Bring the browser window to the front when clicking on deprecated accelerator notific...
[chromium-blink-merge.git] / remoting / remoting_host_linux.gypi
blobf9b89ea10c58402987ffc8f18db0e2ea12b63db7
1 # Copyright 2014 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.
6   'conditions': [
7     ['(branding=="Chrome" and enable_remoting_host==1 and chromeos==0) or (archive_chromoting_tests==1)', {
9       'variables': {
10         'build_deb_script': 'host/installer/linux/build-deb.sh',
11         'deb_filename': 'host/installer/<!(["<(build_deb_script)", "-p", "-s", "<(DEPTH)"])',
12         'packaging_outputs': [
13           '<(deb_filename)',
14           '<!(echo <(deb_filename) | sed -e "s/.deb$/.changes/")',
15           '<(PRODUCT_DIR)/remoting_me2me_host.debug',
16           '<(PRODUCT_DIR)/remoting_start_host.debug',
17           '<(PRODUCT_DIR)/native_messaging_host.debug',
18           '<(PRODUCT_DIR)/remote_assistance_host.debug',
19         ]
20       },
22       'targets': [
23         {
24           # Store the installer package(s) into a zip file so there is a
25           # consistent filename to reference for build archiving (i.e. in
26           # FILES.cfg). This also avoids possible conflicts with "wildcard"
27           # package handling in other build/signing scripts.
28           'target_name': 'remoting_me2me_host_archive',
29           'type': 'none',
30           'dependencies': [
31             'remoting_me2me_host_deb_installer',
32           ],
33           'actions': [
34             {
35               'action_name': 'build_linux_installer_zip',
36               'inputs': [
37                 '<@(packaging_outputs)',
38               ],
39               'outputs': [
40                 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip',
41               ],
42               'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ],
43             },
44             {
45               # Copy the debian package file, which has version info in it,
46               # to a consistent filename for use on Chromoting swarming bots.
47               'action_name': 'Copy debian package.',
48               'inputs': [
49                 '<@(deb_filename)',
50               ],
51               'outputs': [
52                 '<(PRODUCT_DIR)/remoting-me2me-host.deb',
53               ],
54               'action': [ 'cp', '<@(_inputs)', '<@(_outputs)'],
55             },
56           ],
57         }, {
58           'target_name': 'remoting_me2me_host_deb_installer',
59           'type': 'none',
60           'dependencies': [
61             '<(icu_gyp_path):icudata',
62             'remoting_it2me_native_messaging_host',
63             'remoting_me2me_host',
64             'remoting_me2me_native_messaging_host',
65             'remoting_native_messaging_manifests',
66             'remoting_resources',
67             'remoting_start_host',
68           ],
69           'actions': [
70             {
71               'action_name': 'build_debian_package',
72               'inputs': [
73                 '<(build_deb_script)',
74                 'host/installer/linux/Makefile',
75                 'host/installer/linux/debian/chrome-remote-desktop.init',
76                 'host/installer/linux/debian/chrome-remote-desktop.pam',
77                 'host/installer/linux/debian/compat',
78                 'host/installer/linux/debian/control',
79                 'host/installer/linux/debian/copyright',
80                 'host/installer/linux/debian/postinst',
81                 'host/installer/linux/debian/preinst',
82                 'host/installer/linux/debian/rules',
83               ],
84               'outputs': [
85                 '<@(packaging_outputs)',
86               ],
87               'action': [ '<(build_deb_script)', '-s', '<(DEPTH)' ],
88             },
89           ],
90         },
91       ],  # end of 'targets'
92     }, {
93       # Dummy targets.
94       'targets': [
95         {
96           'target_name': 'remoting_me2me_host_archive',
97           'type': 'none',
98         },
99       ],  # end of 'targets'
100     }],  # branding=="Chrome"
102     ['enable_remoting_host==1', {
103       'targets': [
104         # Linux breakpad processing
105         # The following target is disabled temporarily because it was failing
106         # on build bots. See crbug.com/386886 .
107         #
108         # {
109         #   'target_name': 'remoting_linux_symbols',
110         #   'type': 'none',
111         #   'conditions': [
112         #     ['linux_dump_symbols==1', {
113         #       'actions': [
114         #         {
115         #           'action_name': 'dump_symbols',
116         #           'inputs': [
117         #             '<(DEPTH)/build/linux/dump_app_syms',
118         #             '<(PRODUCT_DIR)/dump_syms',
119         #             '<(PRODUCT_DIR)/remoting_me2me_host',
120         #           ],
121         #           'outputs': [
122         #             '<(PRODUCT_DIR)/remoting_me2me_host.breakpad.<(target_arch)',
123         #           ],
124         #           'action': ['<(DEPTH)/build/linux/dump_app_syms',
125         #                      '<(PRODUCT_DIR)/dump_syms',
126         #                      '<(linux_strip_binary)',
127         #                      '<(PRODUCT_DIR)/remoting_me2me_host',
128         #                      '<@(_outputs)'],
129         #           'message': 'Dumping breakpad symbols to <(_outputs)',
130         #           'process_outputs_as_sources': 1,
131         #         },
132         #       ],
133         #       'dependencies': [
134         #         'remoting_me2me_host',
135         #         '../breakpad/breakpad.gyp:dump_syms',
136         #       ],
137         #     }],  # 'linux_dump_symbols==1'
138         #   ],  # end of 'conditions'
139         # },  # end of target 'remoting_linux_symbols'
140       ],  # end of 'targets'
141     }],  # 'enable_remoting_host==1'
143   ],  # end of 'conditions'