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

Side by Side Diff: remoting/BUILD.gn

Issue 1749053002: Move //remoting/remoting_host_win.gypi:* to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move changes in components folder to remoting folder. Created 4 years, 8 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 | « no previous file | remoting/host/BUILD.gn » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//build/util/version.gni") 7 import("//build/util/version.gni")
8 import("//remoting/remoting_version.gni") 8 import("//remoting/remoting_version.gni")
9 import("//remoting/remoting_enable.gni") 9 import("//remoting/remoting_enable.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 20 matching lines...) Expand all
31 #"//remoting:remoting_webapp_unittests", 31 #"//remoting:remoting_webapp_unittests",
32 ] 32 ]
33 33
34 # TODO(GYP): add is_mac 34 # TODO(GYP): add is_mac
35 if ((is_linux && !is_chromeos) || is_win) { 35 if ((is_linux && !is_chromeos) || is_win) {
36 deps += [ "//remoting/webapp" ] 36 deps += [ "//remoting/webapp" ]
37 } 37 }
38 38
39 if (is_win) { 39 if (is_win) {
40 deps += [ 40 deps += [
41 #"//remoting:remoting_breakpad_tester", 41 "//remoting:remoting_breakpad_tester",
42 #"//remoting:remoting_console", 42 "//remoting/host:remoting_console",
43 #"//remoting:remoting_desktop", 43 "//remoting/host:remoting_desktop",
44 #"//remoting:remoting_host_installation", 44
45 # "//remoting:remoting_host_installation",
45 ] 46 ]
46 } 47 }
47 48
48 if (is_android) { 49 if (is_android) {
49 deps += [ 50 deps += [
50 "//remoting/android:remoting_apk", 51 "//remoting/android:remoting_apk",
51 "//remoting/android:remoting_test_apk", 52 "//remoting/android:remoting_test_apk",
52 ] 53 ]
53 } 54 }
54 55
(...skipping 25 matching lines...) Expand all
80 } 81 }
81 82
82 if (is_win) { 83 if (is_win) {
83 # GYP version: remoting/remoting_host_win.gypi:remoting_breakpad_tester 84 # GYP version: remoting/remoting_host_win.gypi:remoting_breakpad_tester
84 executable("remoting_breakpad_tester") { 85 executable("remoting_breakpad_tester") {
85 deps = [ 86 deps = [
86 "//base", 87 "//base",
87 "//remoting/host", 88 "//remoting/host",
88 ] 89 ]
89 90
91 configs += [ "//build/config/compiler:wexit_time_destructors" ]
92
90 sources = [ 93 sources = [
91 "tools/breakpad_tester_win.cc", 94 "tools/breakpad_tester_win.cc",
92 ] 95 ]
93 } 96 }
94 } 97 }
95 98
96 # GYP version: remoting/remoting_test.gypi:remoting_test_support 99 # GYP version: remoting/remoting_test.gypi:remoting_test_support
97 source_set("test_support") { 100 source_set("test_support") {
98 testonly = true 101 testonly = true
99 102
100 deps = [ 103 deps = [
101 "//base", 104 "//base",
102 "//net", 105 "//net",
103 "//remoting/base", 106 "//remoting/base",
104 "//remoting/client", 107 "//remoting/client",
105 "//remoting/codec", 108 "//remoting/codec",
106 "//remoting/protocol:test_support", 109 "//remoting/protocol:test_support",
107 "//remoting/resources", 110 "//remoting/resources",
108 "//remoting/signaling:test_support", 111 "//remoting/signaling:test_support",
109 "//remoting/test:test_support", 112 "//remoting/test:test_support",
110 "//testing/gmock", 113 "//testing/gmock",
111 "//testing/gtest", 114 "//testing/gtest",
112 ] 115 ]
113 116
114 if (enable_configuration_policy) { 117 if (enable_configuration_policy) {
115 deps += [ "//components/policy:test_support" ] 118 deps += [
119 "//components/policy:test_support",
120
121 # TODO(zijiehe): This should belong to //components/policy:test_support
122 "//components/prefs",
123 ]
116 } 124 }
117 125
118 if (enable_remoting_host) { 126 if (enable_remoting_host) {
119 deps += [ "//remoting/host:test_support" ] 127 deps += [ "//remoting/host:test_support" ]
120 } 128 }
121 } 129 }
122 130
123 # TODO(GYP) remoting_unittests on Mac. Needs to be tested. 131 # TODO(GYP) remoting_unittests on Mac. Needs to be tested.
124 if (!is_mac) { 132 if (!is_mac) {
125 test("remoting_unittests") { 133 test("remoting_unittests") {
134 defines = []
135 libs = []
136
126 configs += [ 137 configs += [
127 ":version", 138 ":version",
128 139
129 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 140 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
130 "//build/config/compiler:no_size_t_to_int_warning", 141 "//build/config/compiler:no_size_t_to_int_warning",
131 ] 142 ]
132 143
133 data = [ 144 data = [
134 "//net/data/ssl/certificates/ok_cert.pem", 145 "//net/data/ssl/certificates/ok_cert.pem",
135 "//net/data/ssl/certificates/unittest.key.bin", 146 "//net/data/ssl/certificates/unittest.key.bin",
136 "//net/data/ssl/certificates/unittest.selfsigned.der", 147 "//net/data/ssl/certificates/unittest.selfsigned.der",
137 ] 148 ]
138 149
139 deps = [ 150 deps = [
140 ":test_support", 151 ":test_support",
152 "//base",
141 "//google_apis", 153 "//google_apis",
142 "//remoting/base:unit_tests", 154 "//remoting/base:unit_tests",
143 "//remoting/client:unit_tests", 155 "//remoting/client:unit_tests",
144 "//remoting/protocol:unit_tests", 156 "//remoting/protocol:unit_tests",
145 "//remoting/signaling:unit_tests", 157 "//remoting/signaling:unit_tests",
146 "//remoting/test:unit_tests", 158 "//remoting/test:unit_tests",
147 "//testing/gmock", 159 "//testing/gmock",
148 "//testing/gtest", 160 "//testing/gtest",
149 "//third_party/webrtc", 161 "//third_party/webrtc",
150 ] 162 ]
151 163
152 if (enable_remoting_host) { 164 if (enable_remoting_host) {
153 deps += [ 165 deps += [
154 "//remoting/codec:unit_tests", 166 "//remoting/codec:unit_tests",
155 "//remoting/host:unit_tests", 167 "//remoting/host:unit_tests",
156 "//ui/gfx", 168 "//ui/gfx",
157 ] 169 ]
158 } 170 }
159 171
160 if (enable_webrtc) { 172 if (enable_webrtc) {
161 deps += [ "//third_party/libjingle:libjingle_webrtc" ] 173 deps += [ "//third_party/libjingle:libjingle_webrtc" ]
162 } 174 }
163 175
164 if (is_android) { 176 if (is_android) {
165 deps += [ "//net/android:net_java" ] 177 deps += [ "//net/android:net_java" ]
166 } 178 }
179
180 if (is_win) {
181 defines += [ "_ALT_NO_EXCEPTIONS" ]
182
183 libs += [
184 "rpcrt4.lib",
185 "wtsapi32.lib",
186 ]
187 }
188
189 if (enable_configuration_policy) {
190 deps += [ "//components/policy:policy_component_test_support" ]
191 }
167 } 192 }
168 193
169 if (enable_remoting_host) { 194 if (enable_remoting_host) {
170 test("remoting_perftests") { 195 test("remoting_perftests") {
171 sources = [ 196 sources = [
172 "test/codec_perftest.cc", 197 "test/codec_perftest.cc",
173 "test/protocol_perftest.cc", 198 "test/protocol_perftest.cc",
174 ] 199 ]
175 200
176 configs += [ ":version" ] 201 configs += [ ":version" ]
(...skipping 12 matching lines...) Expand all
189 214
190 if (enable_webrtc) { 215 if (enable_webrtc) {
191 deps += [ "//third_party/libjingle:libjingle_webrtc" ] 216 deps += [ "//third_party/libjingle:libjingle_webrtc" ]
192 } 217 }
193 } 218 }
194 } 219 }
195 } else { 220 } else {
196 group("remoting_unittests") { 221 group("remoting_unittests") {
197 } 222 }
198 } 223 }
OLDNEW
« no previous file with comments | « no previous file | remoting/host/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698