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.
7 ['OS=="linux" and branding=="Chrome" and enable_remoting_host==1', {
9 'build_deb_script': 'host/installer/linux/build-deb.sh',
10 'deb_filename': 'host/installer/<!(["<(build_deb_script)", "-p", "-s", "<(DEPTH)"])',
11 'packaging_outputs': [
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)/remoting_native_messaging_host.debug',
21 # Store the installer package(s) into a zip file so there is a
22 # consistent filename to reference for build archiving (i.e. in
23 # FILES.cfg). This also avoids possible conflicts with "wildcard"
24 # package handling in other build/signing scripts.
25 'target_name': 'remoting_me2me_host_archive',
28 'remoting_me2me_host_deb_installer',
32 'action_name': 'build_linux_installer_zip',
34 '<@(packaging_outputs)',
37 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip',
39 'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ],
44 'target_name': 'remoting_me2me_host_deb_installer',
47 '<(icu_gyp_path):icudata',
48 'remoting_it2me_native_messaging_host',
49 'remoting_me2me_host',
50 'remoting_me2me_native_messaging_host',
51 'remoting_native_messaging_manifests',
53 'remoting_start_host',
57 'action_name': 'build_debian_package',
59 '<(build_deb_script)',
60 'host/installer/linux/Makefile',
61 'host/installer/linux/debian/chrome-remote-desktop.init',
62 'host/installer/linux/debian/chrome-remote-desktop.pam',
63 'host/installer/linux/debian/compat',
64 'host/installer/linux/debian/control',
65 'host/installer/linux/debian/copyright',
66 'host/installer/linux/debian/postinst',
67 'host/installer/linux/debian/preinst',
68 'host/installer/linux/debian/rules',
71 '<@(packaging_outputs)',
73 'action': [ '<(build_deb_script)', '-s', '<(DEPTH)' ],
78 }], # OS=="linux" and branding=="Chrome"
80 ['OS=="linux" and enable_remoting_host==1', {
82 # Linux breakpad processing
84 'target_name': 'remoting_linux_symbols',
87 ['linux_dump_symbols==1', {
90 'action_name': 'dump_symbols',
92 'plugin_file': '<(host_plugin_prefix)remoting_host_plugin.<(host_plugin_extension)',
95 '<(DEPTH)/build/linux/dump_app_syms',
96 '<(PRODUCT_DIR)/dump_syms',
97 '<(PRODUCT_DIR)/<(plugin_file)',
100 '<(PRODUCT_DIR)/<(plugin_file).breakpad.<(target_arch)',
102 'action': ['<(DEPTH)/build/linux/dump_app_syms',
103 '<(PRODUCT_DIR)/dump_syms',
104 '<(linux_strip_binary)',
105 '<(PRODUCT_DIR)/<(plugin_file)',
107 'message': 'Dumping breakpad symbols to <(_outputs)',
108 'process_outputs_as_sources': 1,
112 'remoting_host_plugin',
113 '../breakpad/breakpad.gyp:dump_syms',
115 }], # 'linux_dump_symbols==1'
116 ], # end of 'conditions'
117 }, # end of target 'linux_symbols'
119 'target_name': 'remoting_start_host',
120 'type': 'executable',
122 'remoting_host_setup_base',
125 'host/setup/host_starter.cc',
126 'host/setup/host_starter.h',
127 'host/setup/start_host.cc',
130 ['linux_use_tcmalloc==1', {
132 '../base/allocator/allocator.gyp:allocator',
136 }, # end of target 'remoting_start_host'
137 ], # end of 'targets'
140 ], # end of 'conditions'