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

Side by Side Diff: remoting/host/it2me/BUILD.gn

Issue 2185693003: Adding an It2Me host binary which is uiaccess enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@elevated
Patch Set: Merging! 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/win/chromoting.wxs ('k') | remoting/host/predefines_win.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//remoting/remoting_enable.gni") 6 import("//remoting/remoting_enable.gni")
7 import("//remoting/remoting_locales.gni") 7 import("//remoting/remoting_locales.gni")
8 import("//remoting/remoting_version.gni") 8 import("//remoting/remoting_version.gni")
9 9
10 if (is_win) { 10 if (is_win) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 if (!is_chromeos && !is_android && enable_remoting_host) { 53 if (!is_chromeos && !is_android && enable_remoting_host) {
54 if (is_win) { 54 if (is_win) {
55 # GYP version: 55 # GYP version:
56 # //remoting/remoting_host_win.gypi:remoting_it2me_native_messaging_host 56 # //remoting/remoting_host_win.gypi:remoting_it2me_native_messaging_host
57 executable("remote_assistance_host") { 57 executable("remote_assistance_host") {
58 configs += [ "//build/config/compiler:wexit_time_destructors" ] 58 configs += [ "//build/config/compiler:wexit_time_destructors" ]
59 59
60 deps = [ 60 deps = [
61 "//base/allocator", 61 "//base/allocator",
62 "//remoting/host:dpi_aware_exe_manifest",
62 "//remoting/host:remoting_core", 63 "//remoting/host:remoting_core",
63 "//remoting/host:remoting_windows_resources", 64 "//remoting/host:remoting_windows_resources",
64 ] 65 ]
65 66
66 sources = [ 67 sources = [
67 "$root_gen_dir/remoting/version.rc", 68 "$root_gen_dir/remoting/version.rc",
68 "it2me_native_messaging_host_entry_point.cc", 69 "it2me_native_messaging_host_entry_point.cc",
69 ] 70 ]
70 71
71 defines = host_predefines + [ "BINARY=BINARY_REMOTE_ASSISTANCE_HOST" ] 72 defines = host_predefines + [ "BINARY=BINARY_REMOTE_ASSISTANCE_HOST" ]
72 73
73 ldflags = [ 74 ldflags = [
74 "/MANIFEST:EMBED",
75 "/MANIFESTINPUT:" +
76 rebase_path("../win/common-controls.manifest", root_build_dir),
77 "/MANIFESTINPUT:" +
78 rebase_path("../win/dpi_aware.manifest", root_build_dir),
79
80 # "/NODEFAULTLIB", TODO(zijiehe): Why IgnoreAllDefaultLibraries: true in 75 # "/NODEFAULTLIB", TODO(zijiehe): Why IgnoreAllDefaultLibraries: true in
81 # GYP does not take effect? 76 # GYP does not take effect?
82 "comctl32.lib", 77 "comctl32.lib",
83 ] 78 ]
84 } 79 }
80
81 # GYP version:
82 # //remoting/remoting_host_win.gypi:remoting_it2me_native_messaging_host_uia ccess
83 executable("remote_assistance_host_uiaccess") {
84 configs += [ "//build/config/compiler:wexit_time_destructors" ]
85
86 deps = [
87 "//base/allocator",
88 "//remoting/host:remoting_core",
89 "//remoting/host:remoting_windows_resources",
90 ]
91
92 sources = [
93 "$root_gen_dir/remoting/version.rc",
94 "it2me_native_messaging_host_entry_point.cc",
95 ]
96
97 defines = host_predefines + [ "BINARY=BINARY_HOST_IT2ME_UIACCESS" ]
98
99 ldflags = [
100 # "/NODEFAULTLIB", TODO(zijiehe): Why IgnoreAllDefaultLibraries: true in
101 # GYP does not take effect?
102 "comctl32.lib",
103 ]
104
105 # uiAccess requires a signed build to work correctly, so only enable the
106 # manifest flag when the binary will be properly signed.
107 if (is_official_build) {
108 deps += [ "//remoting/host:dpi_aware_uiaccess_exe_manifest" ]
109 } else {
110 deps += [ "//remoting/host:dpi_aware_exe_manifest" ]
111 }
112 }
85 } else { 113 } else {
86 if (is_mac) { 114 if (is_mac) {
87 app_target_type = "mac_app_bundle" 115 app_target_type = "mac_app_bundle"
88 116
89 # remote_assistance_host-InfoPlist.strings 117 # remote_assistance_host-InfoPlist.strings
90 foreach(locale, remoting_locales_with_underscores) { 118 foreach(locale, remoting_locales_with_underscores) {
91 bundle_data("remote_assistance_host_strings_${locale}_bundle_data") { 119 bundle_data("remote_assistance_host_strings_${locale}_bundle_data") {
92 sources = [ 120 sources = [
93 "$root_gen_dir/remoting/host/remote_assistance_host-InfoPlist.string s/$locale.lproj/InfoPlist.strings", 121 "$root_gen_dir/remoting/host/remote_assistance_host-InfoPlist.string s/$locale.lproj/InfoPlist.strings",
94 ] 122 ]
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 if (enable_webrtc) { 208 if (enable_webrtc) {
181 deps += [ "//third_party/libjingle:libjingle_webrtc" ] 209 deps += [ "//third_party/libjingle:libjingle_webrtc" ]
182 } 210 }
183 211
184 if (is_desktop_linux) { 212 if (is_desktop_linux) {
185 deps += [ "//build/config/linux/gtk2" ] 213 deps += [ "//build/config/linux/gtk2" ]
186 } 214 }
187 } 215 }
188 } 216 }
189 } 217 }
OLDNEW
« no previous file with comments | « remoting/host/installer/win/chromoting.wxs ('k') | remoting/host/predefines_win.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698