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

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

Issue 965633002: Add remoting and PPAPI tests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//remoting/remoting_version.gni") 7 import("//remoting/remoting_srcs.gni")
8 8
9 # This must be a static library instead of a source set because
10 # remoting_unittests requires that remoting_me2me_host.cc not be pulled in,
11 # which in turn depends on remoting_me2me_host_static which isn't part of that
12 # build.
13 #
14 # TODO fix this, successful builds should not depend on static libraries
15 # stripping code.
9 static_library("host") { 16 static_library("host") {
10 gypi_values = exec_script("//build/gypi_to_gn.py", 17 sources = rebase_path(remoting_host_srcs_gypi_values.remoting_host_sources, ". ", "//remoting")
11 [ rebase_path("../remoting_host_srcs.gypi") ],
12 "scope",
13 [ "../remoting_host_srcs.gypi" ])
14
15 sources = rebase_path(gypi_values.remoting_host_sources, ".", "//remoting")
16 18
17 libs = [] 19 libs = []
18 20
19 configs += [ "//build/config/compiler:wexit_time_destructors" ] 21 configs += [
22 "//build/config/compiler:wexit_time_destructors",
23 ]
20 24
21 defines = [ "WEBRTC_CHROMIUM_BUILD" ] 25 defines = [ "WEBRTC_CHROMIUM_BUILD" ]
22 26
23 deps = [ 27 deps = [
24 "//base:i18n", 28 "//base:i18n",
25 "//components/policy:policy", 29 "//components/policy:policy",
26 "//components/policy:policy_component_common", 30 "//components/policy:policy_component_common",
27 "//crypto", 31 "//crypto",
28 "//google_apis", 32 "//google_apis",
29 "//ipc", 33 "//ipc",
30 "//remoting/base", 34 "//remoting/base",
31 "//remoting/protocol", 35 "//remoting/protocol",
32 "//remoting/resources", 36 "//remoting/resources",
33 "//ui/events/platform", 37 "//ui/events/platform",
34 "//ui/events:dom4_keycode_converter", 38 "//ui/events:dom4_keycode_converter",
35 ] 39 ]
36 40
37 if (is_linux) { 41 if (is_linux) {
38 libs += [ "pam" ] 42 libs += [ "pam" ]
39 } 43 }
40 44
41 if (use_x11) { 45 if (use_x11) {
42 configs += [ 46 configs += [
43 #TODO : (kelvinp) Add GTK to the configs.
44 "//build/config/linux:x11", 47 "//build/config/linux:x11",
48 "//build/config/linux:xrandr",
49 "//chrome/browser/ui/libgtk2ui:gtk",
45 ] 50 ]
46 } else { 51 } else {
47 sources -= [ 52 sources -= [
48 "clipboard_x11.cc", 53 "clipboard_x11.cc",
49 "linux/x_server_clipboard.cc", 54 "linux/x_server_clipboard.cc",
50 "linux/x_server_clipboard.h", 55 "linux/x_server_clipboard.h",
51 ] 56 ]
52 } 57 }
53 58
54 if (is_chromeos) { 59 if (is_chromeos) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 105
101 deps += [ "//google_toolbox_for_mac" ] 106 deps += [ "//google_toolbox_for_mac" ]
102 } 107 }
103 108
104 if (enable_webrtc) { 109 if (enable_webrtc) {
105 deps += [ 110 deps += [
106 "//third_party/libjingle:libpeerconnection", 111 "//third_party/libjingle:libpeerconnection",
107 "//third_party/webrtc/modules/desktop_capture", 112 "//third_party/webrtc/modules/desktop_capture",
108 ] 113 ]
109 114
110 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting") 115 sources += rebase_path(remoting_host_srcs_gypi_values.remoting_cast_sources, ".", "//remoting")
111 } 116 }
112 } 117 }
118
119 source_set("test_support") {
120 testonly = true
121
122 sources = [
123 "fake_desktop_capturer.cc",
124 "fake_desktop_capturer.h",
125 "fake_desktop_environment.cc",
126 "fake_desktop_environment.h",
127 "fake_host_extension.cc",
128 "fake_host_extension.h",
129 "fake_host_status_monitor.h",
130 "fake_host_status_monitor.h",
131 "fake_mouse_cursor_monitor.cc",
132 "fake_mouse_cursor_monitor.h",
133 ]
134
135 deps = [
136 "//remoting/proto",
137 ]
138 public_deps = [ ":host" ]
139
140 if (enable_webrtc) {
141 public_deps += [
142 "//third_party/libjingle:libpeerconnection",
143 "//third_party/webrtc/modules/desktop_capture",
144 ]
145 }
146 }
147
148 # The host portions of the remoting unit tests.
149 source_set("unit_tests") {
150 testonly = true
151
152 sources = [
153 "audio_pump_unittest.cc",
154 "audio_silence_detector_unittest.cc",
155 "capture_scheduler_unittest.cc",
156 "chromeos/aura_desktop_capturer_unittest.cc",
157 "chromeos/clipboard_aura_unittest.cc",
158 "chromoting_host_context_unittest.cc",
159 "chromoting_host_unittest.cc",
160 "client_session_unittest.cc",
161 "config_file_watcher_unittest.cc",
162 "daemon_process_unittest.cc",
163 "desktop_process_unittest.cc",
164 "desktop_shape_tracker_unittest.cc",
165 "gnubby_auth_handler_posix_unittest.cc",
166 "heartbeat_sender_unittest.cc",
167 "host_change_notification_listener_unittest.cc",
168 "host_config_unittest.cc",
169 "host_extension_session_manager_unittest.cc",
170 "host_mock_objects.cc",
171 "host_status_logger_unittest.cc",
172 "ipc_desktop_environment_unittest.cc",
173 "it2me/it2me_confirmation_dialog_proxy_unittest.cc",
174 "it2me/it2me_native_messaging_host_unittest.cc",
175 "linux/audio_pipe_reader_unittest.cc",
176 "linux/unicode_to_keysym_unittest.cc",
177 "linux/x_server_clipboard_unittest.cc",
178 "local_input_monitor_unittest.cc",
179 "mouse_shape_pump_unittest.cc",
180 "native_messaging/native_messaging_reader_unittest.cc",
181 "native_messaging/native_messaging_writer_unittest.cc",
182 "pairing_registry_delegate_linux_unittest.cc",
183 "pairing_registry_delegate_win_unittest.cc",
184 "pin_hash_unittest.cc",
185 "policy_watcher_unittest.cc",
186 "register_support_host_request_unittest.cc",
187 "remote_input_filter_unittest.cc",
188 "resizing_host_observer_unittest.cc",
189 "screen_resolution_unittest.cc",
190 "server_log_entry_host_unittest.cc",
191 "setup/me2me_native_messaging_host_unittest.cc",
192 "setup/oauth_helper_unittest.cc",
193 "setup/pin_validator_unittest.cc",
194 "shaped_desktop_capturer_unittest.cc",
195 "token_validator_factory_impl_unittest.cc",
196 "video_frame_pump_unittest.cc",
197 "video_frame_recorder_unittest.cc",
198 "win/rdp_client_unittest.cc",
199 "win/worker_process_launcher.cc",
200 "win/worker_process_launcher.h",
201 "win/worker_process_launcher_unittest.cc",
202 ]
203
204 if (use_ozone) {
205 sources -= [ "local_input_monitor_unittest.cc" ]
206 }
207 if (is_chromeos) {
208 sources -= [
209 "linux/x_server_clipboard_unittest.cc",
210 "host/local_input_monitor_unittest.cc",
211 ]
212 }
213
214 deps = [
215 ":host",
216 ":test_support",
217 "//components/policy:policy_component_test_support",
218 "//remoting/host/setup",
219 "//remoting/host/it2me:common",
220 "//remoting/host/native_messaging",
221 "//remoting/proto",
222 "//testing/gmock",
223 "//testing/gtest",
224 ]
225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698