Revert of non-new-profile-management creates a "no-op" style account_reconcilor,...
[chromium-blink-merge.git] / remoting / remoting_host_linux.gypi
blob5187bd23eee9847cd29a49dd59e9f487dd31c1dd
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     ['OS=="linux" and branding=="Chrome" and enable_remoting_host==1', {
8       'variables': {
9         'build_deb_script': 'host/installer/linux/build-deb.sh',
10         'deb_filename': 'host/installer/<!(["<(build_deb_script)", "-p", "-s", "<(DEPTH)"])',
11         'packaging_outputs': [
12           '<(deb_filename)',
13           '<!(echo <(deb_filename) | sed -e "s/.deb$/.changes/")',
14           '<(PRODUCT_DIR)/remoting_me2me_host.debug',
15           '<(PRODUCT_DIR)/remoting_start_host.debug',
16           '<(PRODUCT_DIR)/native_messaging_host.debug',
17           '<(PRODUCT_DIR)/remote_assistance_host.debug',
18         ]
19       },
20       'targets': [
21         {
22           # Store the installer package(s) into a zip file so there is a
23           # consistent filename to reference for build archiving (i.e. in
24           # FILES.cfg). This also avoids possible conflicts with "wildcard"
25           # package handling in other build/signing scripts.
26           'target_name': 'remoting_me2me_host_archive',
27           'type': 'none',
28           'dependencies': [
29             'remoting_me2me_host_deb_installer',
30           ],
31           'actions': [
32             {
33               'action_name': 'build_linux_installer_zip',
34               'inputs': [
35                 '<@(packaging_outputs)',
36               ],
37               'outputs': [
38                 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip',
39               ],
40               'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ],
41             },
42           ],
43         },
44         {
45           'target_name': 'remoting_me2me_host_deb_installer',
46           'type': 'none',
47           'dependencies': [
48             '<(icu_gyp_path):icudata',
49             'remoting_it2me_native_messaging_host',
50             'remoting_me2me_host',
51             'remoting_me2me_native_messaging_host',
52             'remoting_native_messaging_manifests',
53             'remoting_resources',
54             'remoting_start_host',
55           ],
56           'actions': [
57             {
58               'action_name': 'build_debian_package',
59               'inputs': [
60                 '<(build_deb_script)',
61                 'host/installer/linux/Makefile',
62                 'host/installer/linux/debian/chrome-remote-desktop.init',
63                 'host/installer/linux/debian/chrome-remote-desktop.pam',
64                 'host/installer/linux/debian/compat',
65                 'host/installer/linux/debian/control',
66                 'host/installer/linux/debian/copyright',
67                 'host/installer/linux/debian/postinst',
68                 'host/installer/linux/debian/preinst',
69                 'host/installer/linux/debian/rules',
70               ],
71               'outputs': [
72                 '<@(packaging_outputs)',
73               ],
74               'action': [ '<(build_deb_script)', '-s', '<(DEPTH)' ],
75             },
76           ],
77         },
78       ],
79     }],  # OS=="linux" and branding=="Chrome"
81     ['OS=="linux" and enable_remoting_host==1', {
82       'targets': [
83         # Linux breakpad processing
84         {
85           'target_name': 'remoting_linux_symbols',
86           'type': 'none',
87           'conditions': [
88             ['linux_dump_symbols==1', {
89               'actions': [
90                 {
91                   'action_name': 'dump_symbols',
92                   'variables': {
93                     'plugin_file': '<(host_plugin_prefix)remoting_host_plugin.<(host_plugin_extension)',
94                   },
95                   'inputs': [
96                     '<(DEPTH)/build/linux/dump_app_syms',
97                     '<(PRODUCT_DIR)/dump_syms',
98                     '<(PRODUCT_DIR)/<(plugin_file)',
99                   ],
100                   'outputs': [
101                     '<(PRODUCT_DIR)/<(plugin_file).breakpad.<(target_arch)',
102                   ],
103                   'action': ['<(DEPTH)/build/linux/dump_app_syms',
104                              '<(PRODUCT_DIR)/dump_syms',
105                              '<(linux_strip_binary)',
106                              '<(PRODUCT_DIR)/<(plugin_file)',
107                              '<@(_outputs)'],
108                   'message': 'Dumping breakpad symbols to <(_outputs)',
109                   'process_outputs_as_sources': 1,
110                 },
111               ],
112               'dependencies': [
113                 'remoting_host_plugin',
114                 '../breakpad/breakpad.gyp:dump_syms',
115               ],
116             }],  # 'linux_dump_symbols==1'
117           ],  # end of 'conditions'
118         },  # end of target 'linux_symbols'
119         {
120           'target_name': 'remoting_start_host',
121           'type': 'executable',
122           'dependencies': [
123             'remoting_host_setup_base',
124           ],
125           'sources': [
126             'host/setup/host_starter.cc',
127             'host/setup/host_starter.h',
128             'host/setup/start_host.cc',
129           ],
130           'conditions': [
131             ['use_allocator!="none"', {
132               'dependencies': [
133                 '../base/allocator/allocator.gyp:allocator',
134               ],
135             }],
136           ],
137         },  # end of target 'remoting_start_host'
138       ],  # end of 'targets'
139     }],  # 'OS=="linux"'
141   ],  # end of 'conditions'