Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: remoting/host/installer/win/BUILD.gn

Issue 2339163004: Revert of Moving CRD Windows targets to subdirectories. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/installer/BUILD.gn ('k') | remoting/host/installer/win/generate_clsids.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/win:remoting_core",
19 "//remoting/host/win:remoting_desktop",
20 "//remoting/host/win:remoting_me2me_host",
21 "//remoting/host/win:remoting_native_messaging_host",
22 "//third_party/icu:icudata",
23 ]
24
25 public_deps = [
26 "//remoting/host/security_key:remote_security_key",
27 ]
28
29 _output = "$root_out_dir/remoting-me2me-host-$target_os.zip"
30
31 outputs = [
32 _output,
33 ]
34 if (is_chrome_branded) {
35 _branding = "Chrome"
36 } else {
37 _branding = "Chromium"
38 }
39
40 if (is_official_build) {
41 _official_build = "1"
42 } else {
43 _official_build = "0"
44 }
45
46 # Due to GN build issue http://crbug.com/633650, we need to actively set
47 # inputs parameter to tell GN to depend on these files. So change to each
48 # following files will trigger this target to be rebuilt.
49 # TODO(zijiehe): Remove inputs parameter once bug 633650 has been
50 # addressed.
51 inputs = [
52 "$root_out_dir/remote_assistance_host.exe",
53 "$root_out_dir/remote_security_key.exe",
54 "$root_out_dir/remoting_core.dll",
55 "$root_out_dir/remoting_desktop.exe",
56 "$root_out_dir/remoting_host.exe",
57 "$root_out_dir/remoting_native_messaging_host.exe",
58 "$root_out_dir/remoting_start_host.exe",
59 "$root_gen_dir/remoting/CREDITS.txt",
60 "$root_out_dir/remoting/com.google.chrome.remote_assistance.json",
61 "$root_out_dir/remoting/com.google.chrome.remote_desktop.json",
62 "$root_out_dir/icudtl.dat",
63 ]
64
65 _generated_files = rebase_path(inputs, root_build_dir)
66 _generated_files += [ rebase_path("//remoting/resources/chromoting.ico") ]
67
68 # _generated_dst_files must contain the same files in the same order as
69 # _generated_files, otherwise the Windows MSI will not be built correctly.
70 _generated_dst_files = [
71 "files/remote_assistance_host.exe",
72 "files/remote_security_key.exe",
73 "files/remoting_core.dll",
74 "files/remoting_desktop.exe",
75 "files/remoting_host.exe",
76 "files/remoting_native_messaging_host.exe",
77 "files/remoting_start_host.exe",
78 "files/CREDITS.txt",
79 "files/com.google.chrome.remote_assistance.json",
80 "files/com.google.chrome.remote_desktop.json",
81 "files/icudtl.dat",
82 "files/chromoting.ico",
83 ]
84
85 args = [
86 rebase_path("$root_gen_dir/remoting_installation", root_build_dir),
87 rebase_path(_output, root_build_dir),
88 "--source-file-roots",
89 rebase_path("//remoting/host/installer/win"),
90 "--source-files",
91 rebase_path("//remoting/host/installer/win/chromoting.wxs"),
92 rebase_path("//remoting/host/installer/win/parameters.json"),
93
94 # Input files
95 "--generated-files",
96 ] + _generated_files +
97 [
98 # Position of files in zip file
99 "--generated-files-dst",
100 ] + _generated_dst_files +
101 [
102 # Defs
103 "--defs",
104 "BRANDING=$_branding",
105 "DAEMON_CONTROLLER_CLSID={$daemon_controller_clsid}",
106 "RDP_DESKTOP_SESSION_CLSID={$rdp_desktop_session_clsid}",
107 "VERSION=$chrome_version_full",
108 "OFFICIAL_BUILD=$_official_build",
109 ]
110 }
111
112 if (is_chrome_branded) {
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_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 }
140 } else {
141 group("remoting_host_installation") {
142 }
143 }
OLDNEW
« no previous file with comments | « remoting/host/installer/BUILD.gn ('k') | remoting/host/installer/win/generate_clsids.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698