| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 { |
| 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)/remoting_native_messaging_host.debug', |
| 17 ] |
| 18 }, |
| 19 'targets': [ |
| 20 { |
| 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', |
| 26 'type': 'none', |
| 27 'dependencies': [ |
| 28 'remoting_me2me_host_deb_installer', |
| 29 ], |
| 30 'actions': [ |
| 31 { |
| 32 'action_name': 'build_linux_installer_zip', |
| 33 'inputs': [ |
| 34 '<@(packaging_outputs)', |
| 35 ], |
| 36 'outputs': [ |
| 37 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', |
| 38 ], |
| 39 'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ], |
| 40 }, |
| 41 ], |
| 42 }, |
| 43 { |
| 44 'target_name': 'remoting_me2me_host_deb_installer', |
| 45 'type': 'none', |
| 46 'dependencies': [ |
| 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', |
| 52 'remoting_resources', |
| 53 'remoting_start_host', |
| 54 ], |
| 55 'actions': [ |
| 56 { |
| 57 'action_name': 'build_debian_package', |
| 58 'inputs': [ |
| 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', |
| 69 ], |
| 70 'outputs': [ |
| 71 '<@(packaging_outputs)', |
| 72 ], |
| 73 'action': [ '<(build_deb_script)', '-s', '<(DEPTH)' ], |
| 74 }, |
| 75 ], |
| 76 }, |
| 77 ], |
| 78 }], # OS=="linux" and branding=="Chrome" |
| 79 |
| 80 ['OS=="linux" and enable_remoting_host==1', { |
| 81 'targets': [ |
| 82 # Linux breakpad processing |
| 83 { |
| 84 'target_name': 'remoting_linux_symbols', |
| 85 'type': 'none', |
| 86 'conditions': [ |
| 87 ['linux_dump_symbols==1', { |
| 88 'actions': [ |
| 89 { |
| 90 'action_name': 'dump_symbols', |
| 91 'variables': { |
| 92 'plugin_file': '<(host_plugin_prefix)remoting_host_plugin.<(
host_plugin_extension)', |
| 93 }, |
| 94 'inputs': [ |
| 95 '<(DEPTH)/build/linux/dump_app_syms', |
| 96 '<(PRODUCT_DIR)/dump_syms', |
| 97 '<(PRODUCT_DIR)/<(plugin_file)', |
| 98 ], |
| 99 'outputs': [ |
| 100 '<(PRODUCT_DIR)/<(plugin_file).breakpad.<(target_arch)', |
| 101 ], |
| 102 'action': ['<(DEPTH)/build/linux/dump_app_syms', |
| 103 '<(PRODUCT_DIR)/dump_syms', |
| 104 '<(linux_strip_binary)', |
| 105 '<(PRODUCT_DIR)/<(plugin_file)', |
| 106 '<@(_outputs)'], |
| 107 'message': 'Dumping breakpad symbols to <(_outputs)', |
| 108 'process_outputs_as_sources': 1, |
| 109 }, |
| 110 ], |
| 111 'dependencies': [ |
| 112 'remoting_host_plugin', |
| 113 '../breakpad/breakpad.gyp:dump_syms', |
| 114 ], |
| 115 }], # 'linux_dump_symbols==1' |
| 116 ], # end of 'conditions' |
| 117 }, # end of target 'linux_symbols' |
| 118 { |
| 119 'target_name': 'remoting_start_host', |
| 120 'type': 'executable', |
| 121 'dependencies': [ |
| 122 'remoting_host_setup_base', |
| 123 ], |
| 124 'sources': [ |
| 125 'host/setup/host_starter.cc', |
| 126 'host/setup/host_starter.h', |
| 127 'host/setup/start_host.cc', |
| 128 ], |
| 129 'conditions': [ |
| 130 ['linux_use_tcmalloc==1', { |
| 131 'dependencies': [ |
| 132 '../base/allocator/allocator.gyp:allocator', |
| 133 ], |
| 134 }], |
| 135 ], |
| 136 }, # end of target 'remoting_start_host' |
| 137 ], # end of 'targets' |
| 138 }], # 'OS=="linux"' |
| 139 |
| 140 ], # end of 'conditions' |
| 141 } |
| OLD | NEW |