OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 import("//remoting/build/config/remoting_build.gni") |
| 6 import("//remoting/host/installer/win/generate_clsids.gni") |
| 7 import("//build/toolchain/win/midl.gni") |
| 8 import("//build/win/message_compiler.gni") |
| 9 |
| 10 action("remoting_me2me_host_archive") { |
| 11 script = "//remoting/host/installer/build-installer-archive.py" |
| 12 |
| 13 deps = [ |
| 14 "//remoting/host:remoting_native_messaging_manifests", |
| 15 "//remoting/host:remoting_start_host", |
| 16 "//remoting/host/installer:credits", |
| 17 "//remoting/host/it2me:remote_assistance_host", |
| 18 "//remoting/host/it2me:remote_assistance_host_uiaccess", |
| 19 "//remoting/host/win:remoting_core", |
| 20 "//remoting/host/win:remoting_desktop", |
| 21 "//remoting/host/win:remoting_me2me_host", |
| 22 "//remoting/host/win:remoting_native_messaging_host", |
| 23 "//third_party/icu:icudata", |
| 24 ] |
| 25 |
| 26 public_deps = [ |
| 27 "//remoting/host/security_key:remote_security_key", |
| 28 ] |
| 29 |
| 30 _output = "$root_out_dir/remoting-me2me-host-$target_os.zip" |
| 31 |
| 32 outputs = [ |
| 33 _output, |
| 34 ] |
| 35 if (is_chrome_branded) { |
| 36 _branding = "Chrome" |
| 37 } else { |
| 38 _branding = "Chromium" |
| 39 } |
| 40 |
| 41 if (is_official_build) { |
| 42 _official_build = "1" |
| 43 } else { |
| 44 _official_build = "0" |
| 45 } |
| 46 |
| 47 # Due to GN build issue http://crbug.com/633650, we need to actively set |
| 48 # inputs parameter to tell GN to depend on these files. So change to each |
| 49 # following files will trigger this target to be rebuilt. |
| 50 # TODO(zijiehe): Remove inputs parameter once bug 633650 has been |
| 51 # addressed. |
| 52 inputs = [ |
| 53 "$root_out_dir/remote_assistance_host.exe", |
| 54 "$root_out_dir/remote_security_key.exe", |
| 55 "$root_out_dir/remoting_core.dll", |
| 56 "$root_out_dir/remoting_desktop.exe", |
| 57 "$root_out_dir/remoting_host.exe", |
| 58 "$root_out_dir/remoting_native_messaging_host.exe", |
| 59 "$root_out_dir/remoting_start_host.exe", |
| 60 "$root_gen_dir/remoting/CREDITS.txt", |
| 61 "$root_out_dir/remoting/com.google.chrome.remote_assistance.json", |
| 62 "$root_out_dir/remoting/com.google.chrome.remote_desktop.json", |
| 63 "$root_out_dir/icudtl.dat", |
| 64 ] |
| 65 |
| 66 _generated_files = rebase_path(inputs, root_build_dir) |
| 67 _generated_files += [ rebase_path("//remoting/resources/chromoting.ico") ] |
| 68 |
| 69 # _generated_dst_files must contain the same files in the same order as |
| 70 # _generated_files, otherwise the Windows MSI will not be built correctly. |
| 71 _generated_dst_files = [ |
| 72 "files/remote_assistance_host.exe", |
| 73 "files/remote_security_key.exe", |
| 74 "files/remoting_core.dll", |
| 75 "files/remoting_desktop.exe", |
| 76 "files/remoting_host.exe", |
| 77 "files/remoting_native_messaging_host.exe", |
| 78 "files/remoting_start_host.exe", |
| 79 "files/CREDITS.txt", |
| 80 "files/com.google.chrome.remote_assistance.json", |
| 81 "files/com.google.chrome.remote_desktop.json", |
| 82 "files/icudtl.dat", |
| 83 "files/chromoting.ico", |
| 84 ] |
| 85 |
| 86 args = [ |
| 87 rebase_path("$root_gen_dir/remoting_installation", root_build_dir), |
| 88 rebase_path(_output, root_build_dir), |
| 89 "--source-file-roots", |
| 90 rebase_path("//remoting/host/installer/win"), |
| 91 "--source-files", |
| 92 rebase_path("//remoting/host/installer/win/chromoting.wxs"), |
| 93 rebase_path("//remoting/host/installer/win/parameters.json"), |
| 94 |
| 95 # Input files |
| 96 "--generated-files", |
| 97 ] + _generated_files + |
| 98 [ |
| 99 # Position of files in zip file |
| 100 "--generated-files-dst", |
| 101 ] + _generated_dst_files + |
| 102 [ |
| 103 # Defs |
| 104 "--defs", |
| 105 "BRANDING=$_branding", |
| 106 "DAEMON_CONTROLLER_CLSID={$daemon_controller_clsid}", |
| 107 "RDP_DESKTOP_SESSION_CLSID={$rdp_desktop_session_clsid}", |
| 108 "VERSION=$chrome_version_full", |
| 109 "OFFICIAL_BUILD=$_official_build", |
| 110 ] |
| 111 } |
| 112 |
| 113 # We do not release a 64 bits binary. So to avoid any potential |
| 114 # misunderstanding, we only build 32 bits MSI file. |
| 115 if (is_chrome_branded && !is_component_build && target_cpu == "x86") { |
| 116 # The script uses "ia32" instead of "x86". |
| 117 msi_script_arch = "ia32" |
| 118 |
| 119 action("remoting_host_installation") { |
| 120 deps = [ |
| 121 "//remoting/host:remoting_me2me_host_archive", |
| 122 ] |
| 123 script = "//remoting/tools/zip2msi.py" |
| 124 outputs = [ |
| 125 "$root_out_dir/chromoting.msi", |
| 126 ] |
| 127 args = [ |
| 128 "--wix_path", |
| 129 rebase_path("//third_party/wix"), |
| 130 "--intermediate_dir", |
| 131 rebase_path("$root_gen_dir/remoting_installation", root_build_dir), |
| 132 "--target_arch", |
| 133 msi_script_arch, |
| 134 rebase_path("$root_out_dir/remoting-me2me-host-$current_os.zip", |
| 135 root_build_dir), |
| 136 rebase_path(outputs[0], root_build_dir), |
| 137 ] |
| 138 } |
| 139 } else { |
| 140 group("remoting_host_installation") { |
| 141 } |
| 142 } |
OLD | NEW |