OLD | NEW |
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/util/process_version.gni") | 5 import("//build/util/process_version.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 import("//remoting/build/config/remoting_build.gni") | 7 import("//remoting/build/config/remoting_build.gni") |
8 | 8 |
9 group("all_tests") { | 9 group("all_tests") { |
10 testonly = true | 10 testonly = true |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 # remoting_unittests requires that remoting_me2me_host.cc not be pulled in, | 50 # remoting_unittests requires that remoting_me2me_host.cc not be pulled in, |
51 # which in turn depends on remoting_me2me_host_static which isn't part of that | 51 # which in turn depends on remoting_me2me_host_static which isn't part of that |
52 # build. | 52 # build. |
53 # | 53 # |
54 # TODO fix this, successful builds should not depend on static libraries | 54 # TODO fix this, successful builds should not depend on static libraries |
55 # stripping code. | 55 # stripping code. |
56 static_library("host") { | 56 static_library("host") { |
57 sources = [ | 57 sources = [ |
58 "audio_capturer.cc", | 58 "audio_capturer.cc", |
59 "audio_capturer.h", | 59 "audio_capturer.h", |
| 60 "audio_capturer_chromeos.cc", |
60 "audio_capturer_linux.cc", | 61 "audio_capturer_linux.cc", |
61 "audio_capturer_linux.h", | 62 "audio_capturer_linux.h", |
62 "audio_capturer_mac.cc", | 63 "audio_capturer_mac.cc", |
63 "audio_capturer_win.cc", | 64 "audio_capturer_win.cc", |
64 "audio_capturer_win.h", | 65 "audio_capturer_win.h", |
65 "audio_silence_detector.cc", | 66 "audio_silence_detector.cc", |
66 "audio_silence_detector.h", | 67 "audio_silence_detector.h", |
67 "backoff_timer.cc", | 68 "backoff_timer.cc", |
68 "backoff_timer.h", | 69 "backoff_timer.h", |
69 "basic_desktop_environment.cc", | 70 "basic_desktop_environment.cc", |
70 "basic_desktop_environment.h", | 71 "basic_desktop_environment.h", |
71 "branding.cc", | 72 "branding.cc", |
72 "branding.h", | 73 "branding.h", |
73 "chromeos/aura_desktop_capturer.cc", | |
74 "chromeos/aura_desktop_capturer.h", | |
75 "chromeos/clipboard_aura.cc", | |
76 "chromeos/clipboard_aura.h", | |
77 "chromeos/message_box.cc", | |
78 "chromeos/message_box.h", | |
79 "chromeos/mouse_cursor_monitor_aura.cc", | |
80 "chromeos/mouse_cursor_monitor_aura.h", | |
81 "chromeos/point_transformer.cc", | |
82 "chromeos/point_transformer.h", | |
83 "chromeos/skia_bitmap_desktop_frame.cc", | |
84 "chromeos/skia_bitmap_desktop_frame.h", | |
85 "chromoting_host.cc", | 74 "chromoting_host.cc", |
86 "chromoting_host.h", | 75 "chromoting_host.h", |
87 "chromoting_host_context.cc", | 76 "chromoting_host_context.cc", |
88 "chromoting_host_context.h", | 77 "chromoting_host_context.h", |
89 "chromoting_messages.cc", | 78 "chromoting_messages.cc", |
90 "chromoting_messages.h", | 79 "chromoting_messages.h", |
91 "chromoting_param_traits.cc", | 80 "chromoting_param_traits.cc", |
92 "chromoting_param_traits.h", | 81 "chromoting_param_traits.h", |
93 "client_session.cc", | 82 "client_session.cc", |
94 "client_session.h", | 83 "client_session.h", |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 "ipc_input_injector.cc", | 188 "ipc_input_injector.cc", |
200 "ipc_input_injector.h", | 189 "ipc_input_injector.h", |
201 "ipc_mouse_cursor_monitor.cc", | 190 "ipc_mouse_cursor_monitor.cc", |
202 "ipc_mouse_cursor_monitor.h", | 191 "ipc_mouse_cursor_monitor.h", |
203 "ipc_screen_controls.cc", | 192 "ipc_screen_controls.cc", |
204 "ipc_screen_controls.h", | 193 "ipc_screen_controls.h", |
205 "ipc_video_frame_capturer.cc", | 194 "ipc_video_frame_capturer.cc", |
206 "ipc_video_frame_capturer.h", | 195 "ipc_video_frame_capturer.h", |
207 "it2me_desktop_environment.cc", | 196 "it2me_desktop_environment.cc", |
208 "it2me_desktop_environment.h", | 197 "it2me_desktop_environment.h", |
209 "linux/audio_pipe_reader.cc", | |
210 "linux/audio_pipe_reader.h", | |
211 "linux/certificate_watcher.cc", | |
212 "linux/certificate_watcher.h", | |
213 "linux/unicode_to_keysym.cc", | |
214 "linux/unicode_to_keysym.h", | |
215 "linux/x11_character_injector.cc", | |
216 "linux/x11_character_injector.h", | |
217 "linux/x11_keyboard_impl.cc", | |
218 "linux/x11_keyboard_impl.h", | |
219 "linux/x11_util.cc", | |
220 "linux/x11_util.h", | |
221 "linux/x_server_clipboard.cc", | |
222 "linux/x_server_clipboard.h", | |
223 "local_input_monitor.h", | 198 "local_input_monitor.h", |
224 "local_input_monitor_chromeos.cc", | 199 "local_input_monitor_chromeos.cc", |
225 "local_input_monitor_mac.mm", | 200 "local_input_monitor_mac.mm", |
226 "local_input_monitor_win.cc", | 201 "local_input_monitor_win.cc", |
227 "local_input_monitor_x11.cc", | 202 "local_input_monitor_x11.cc", |
228 "logging.h", | 203 "logging.h", |
229 "logging_linux.cc", | 204 "logging_linux.cc", |
230 "logging_mac.cc", | 205 "logging_mac.cc", |
231 "logging_win.cc", | 206 "logging_win.cc", |
232 "me2me_desktop_environment.cc", | 207 "me2me_desktop_environment.cc", |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 294 |
320 public_deps = [ | 295 public_deps = [ |
321 "//ipc", | 296 "//ipc", |
322 ] | 297 ] |
323 | 298 |
324 if (!is_ios) { | 299 if (!is_ios) { |
325 deps += [ "//components/policy:generated" ] | 300 deps += [ "//components/policy:generated" ] |
326 } | 301 } |
327 | 302 |
328 if (is_linux && !is_chromeos) { | 303 if (is_linux && !is_chromeos) { |
| 304 public_deps += [ "//remoting/host/linux" ] |
329 libs += [ "pam" ] | 305 libs += [ "pam" ] |
330 } | 306 } |
331 | 307 |
332 if (use_x11) { | 308 if (use_x11) { |
333 configs += [ | 309 configs += [ |
334 "//build/config/linux:x11", | 310 "//build/config/linux:x11", |
335 "//build/config/linux:xrandr", | 311 "//build/config/linux:xrandr", |
336 ] | 312 ] |
| 313 deps += [ "//remoting/host/linux:x11" ] |
337 if (is_desktop_linux) { | 314 if (is_desktop_linux) { |
338 deps += [ "//build/config/linux/gtk" ] | 315 deps += [ "//build/config/linux/gtk" ] |
339 } | 316 } |
340 } else { | 317 } else { |
341 sources -= [ | 318 sources -= [ |
342 "clipboard_x11.cc", | 319 "clipboard_x11.cc", |
343 "desktop_resizer_x11.cc", | 320 "desktop_resizer_x11.cc", |
344 "input_injector_x11.cc", | 321 "input_injector_x11.cc", |
345 "local_input_monitor_x11.cc", | 322 "local_input_monitor_x11.cc", |
346 ] | 323 ] |
347 if (is_linux) { | |
348 # These will already be filtered out on non-Linux. | |
349 sources -= [ | |
350 "linux/unicode_to_keysym.cc", | |
351 "linux/x11_keyboard_impl.cc", | |
352 "linux/x11_keyboard_impl.h", | |
353 "linux/x11_util.cc", | |
354 "linux/x_server_clipboard.cc", | |
355 "linux/x_server_clipboard.h", | |
356 ] | |
357 } | |
358 } | 324 } |
359 | 325 |
360 if (!use_ozone) { | 326 if (!use_ozone) { |
361 sources -= [ "desktop_resizer_ozone.cc" ] | 327 sources -= [ "desktop_resizer_ozone.cc" ] |
362 } | 328 } |
363 | 329 |
364 if (is_chromeos) { | 330 if (is_chromeos) { |
365 # TODO(GYP): crbug.com/481627. These should only be included | 331 # TODO(GYP): crbug.com/481627. These should only be included |
366 # when enable_me2me_host is true. | 332 # when enable_me2me_host is true. |
367 sources -= [ | 333 sources -= [ |
| 334 "audio_capturer_linux.cc", |
| 335 "audio_capturer_linux.h", |
| 336 "continue_window_linux.cc", |
| 337 "curtain_mode_linux.cc", |
| 338 "disconnect_window_linux.cc", |
368 "me2me_desktop_environment.cc", | 339 "me2me_desktop_environment.cc", |
369 "me2me_desktop_environment.h", | 340 "me2me_desktop_environment.h", |
370 ] | 341 ] |
371 deps += [ | 342 deps += [ "//remoting/host/chromeos" ] |
372 "//cc", | |
373 "//gpu/command_buffer/common", | |
374 "//ppapi/host", | |
375 "//skia", | |
376 "//ui/aura", | |
377 "//ui/compositor", | |
378 "//ui/events", | |
379 "//ui/views", | |
380 ] | |
381 | 343 |
382 if (use_ash) { | 344 if (use_ash) { |
383 deps += [ "//ash" ] | 345 deps += [ "//ash" ] |
384 } | 346 } |
385 | 347 |
386 if (use_ozone) { | 348 if (use_ozone) { |
387 deps += [ "//ui/ozone" ] | 349 deps += [ "//ui/ozone" ] |
388 sources -= [ "desktop_resizer_ozone.cc" ] | 350 sources -= [ "desktop_resizer_ozone.cc" ] |
389 } else { | 351 } else { |
390 sources -= [ | 352 sources -= [ |
391 "clipboard_x11.cc", | 353 "clipboard_x11.cc", |
392 "desktop_resizer_x11.cc", | 354 "desktop_resizer_x11.cc", |
393 "input_injector_chromeos.cc", | 355 "input_injector_chromeos.cc", |
394 "input_injector_chromeos.h", | 356 "input_injector_chromeos.h", |
395 "linux/x_server_clipboard.cc", | |
396 "linux/x_server_clipboard.h", | |
397 "local_input_monitor_x11.cc", | 357 "local_input_monitor_x11.cc", |
398 ] | 358 ] |
399 } | 359 } |
400 | |
401 sources -= [ | |
402 "continue_window_linux.cc", | |
403 "curtain_mode_linux.cc", | |
404 "disconnect_window_linux.cc", | |
405 ] | |
406 } | 360 } |
407 | 361 |
408 if (is_mac) { | 362 if (is_mac) { |
409 libs += [ | 363 libs += [ |
410 "Accelerate.framework", | 364 "Accelerate.framework", |
411 "Carbon.framework", | 365 "Carbon.framework", |
412 ] | 366 ] |
413 | 367 |
414 # TODO(nicholss): When we can delete GYP builds, | |
415 # this flag and usage can be removed. | |
416 defines += [ "GN_BUILD=1" ] | |
417 deps += [ | 368 deps += [ |
418 ":remoting_version", | 369 ":remoting_version", |
419 "//third_party/google_toolbox_for_mac", | 370 "//third_party/google_toolbox_for_mac", |
420 ] | 371 ] |
421 } | 372 } |
422 | 373 |
423 if (is_win) { | 374 if (is_win) { |
424 deps += [ | 375 deps += [ |
425 "//remoting/host/win", | 376 "//remoting/host/win", |
426 "//remoting/host/win:messages", | 377 "//remoting/host/win:messages", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 } | 423 } |
473 } | 424 } |
474 | 425 |
475 # The host portions of the remoting unit tests. | 426 # The host portions of the remoting unit tests. |
476 source_set("unit_tests") { | 427 source_set("unit_tests") { |
477 testonly = true | 428 testonly = true |
478 | 429 |
479 sources = [ | 430 sources = [ |
480 "audio_silence_detector_unittest.cc", | 431 "audio_silence_detector_unittest.cc", |
481 "backoff_timer_unittest.cc", | 432 "backoff_timer_unittest.cc", |
482 "chromeos/aura_desktop_capturer_unittest.cc", | |
483 "chromeos/clipboard_aura_unittest.cc", | |
484 "chromoting_host_context_unittest.cc", | 433 "chromoting_host_context_unittest.cc", |
485 "chromoting_host_unittest.cc", | 434 "chromoting_host_unittest.cc", |
486 "client_session_unittest.cc", | 435 "client_session_unittest.cc", |
487 "config_file_watcher_unittest.cc", | 436 "config_file_watcher_unittest.cc", |
488 "daemon_process_unittest.cc", | 437 "daemon_process_unittest.cc", |
489 "desktop_process_unittest.cc", | 438 "desktop_process_unittest.cc", |
490 "gcd_rest_client_unittest.cc", | 439 "gcd_rest_client_unittest.cc", |
491 "gcd_state_updater_unittest.cc", | 440 "gcd_state_updater_unittest.cc", |
492 "heartbeat_sender_unittest.cc", | 441 "heartbeat_sender_unittest.cc", |
493 "host_attributes_unittest.cc", | 442 "host_attributes_unittest.cc", |
494 "host_change_notification_listener_unittest.cc", | 443 "host_change_notification_listener_unittest.cc", |
495 "host_config_unittest.cc", | 444 "host_config_unittest.cc", |
496 "host_experiment_session_plugin_unittest.cc", | 445 "host_experiment_session_plugin_unittest.cc", |
497 "host_extension_session_manager_unittest.cc", | 446 "host_extension_session_manager_unittest.cc", |
498 "host_power_save_blocker_unittest.cc", | 447 "host_power_save_blocker_unittest.cc", |
499 "host_session_options_unittest.cc", | 448 "host_session_options_unittest.cc", |
500 "host_status_logger_unittest.cc", | 449 "host_status_logger_unittest.cc", |
501 "ipc_desktop_environment_unittest.cc", | 450 "ipc_desktop_environment_unittest.cc", |
502 "it2me/it2me_confirmation_dialog_proxy_unittest.cc", | 451 "it2me/it2me_confirmation_dialog_proxy_unittest.cc", |
503 "it2me/it2me_host_unittest.cc", | 452 "it2me/it2me_host_unittest.cc", |
504 "it2me/it2me_native_messaging_host_unittest.cc", | 453 "it2me/it2me_native_messaging_host_unittest.cc", |
505 "linux/audio_pipe_reader_unittest.cc", | |
506 "linux/certificate_watcher_unittest.cc", | |
507 "linux/unicode_to_keysym_unittest.cc", | |
508 "linux/x11_character_injector_unittest.cc", | |
509 "linux/x_server_clipboard_unittest.cc", | |
510 "local_input_monitor_unittest.cc", | 454 "local_input_monitor_unittest.cc", |
511 "mouse_cursor_monitor_proxy_unittest.cc", | 455 "mouse_cursor_monitor_proxy_unittest.cc", |
512 "mouse_shape_pump_unittest.cc", | 456 "mouse_shape_pump_unittest.cc", |
513 "native_messaging/native_messaging_reader_unittest.cc", | 457 "native_messaging/native_messaging_reader_unittest.cc", |
514 "native_messaging/native_messaging_writer_unittest.cc", | 458 "native_messaging/native_messaging_writer_unittest.cc", |
515 "pairing_registry_delegate_linux_unittest.cc", | 459 "pairing_registry_delegate_linux_unittest.cc", |
516 "pairing_registry_delegate_win_unittest.cc", | 460 "pairing_registry_delegate_win_unittest.cc", |
517 "pin_hash_unittest.cc", | 461 "pin_hash_unittest.cc", |
518 "policy_watcher_unittest.cc", | 462 "policy_watcher_unittest.cc", |
519 "register_support_host_request_unittest.cc", | 463 "register_support_host_request_unittest.cc", |
520 "remote_input_filter_unittest.cc", | 464 "remote_input_filter_unittest.cc", |
521 "resizing_host_observer_unittest.cc", | 465 "resizing_host_observer_unittest.cc", |
522 "resources_unittest.cc", | 466 "resources_unittest.cc", |
523 "screen_resolution_unittest.cc", | 467 "screen_resolution_unittest.cc", |
524 "server_log_entry_host_unittest.cc", | 468 "server_log_entry_host_unittest.cc", |
525 "setup/me2me_native_messaging_host_unittest.cc", | 469 "setup/me2me_native_messaging_host_unittest.cc", |
526 "setup/pin_validator_unittest.cc", | 470 "setup/pin_validator_unittest.cc", |
527 "third_party_auth_config_unittest.cc", | 471 "third_party_auth_config_unittest.cc", |
528 "token_validator_base_unittest.cc", | 472 "token_validator_base_unittest.cc", |
529 "token_validator_factory_impl_unittest.cc", | 473 "token_validator_factory_impl_unittest.cc", |
530 "touch_injector_win_unittest.cc", | 474 "touch_injector_win_unittest.cc", |
531 ] | 475 ] |
532 | 476 |
533 if (!use_x11 && is_linux) { | |
534 sources -= [ "linux/unicode_to_keysym_unittest.cc" ] | |
535 } | |
536 if (use_ozone || is_chromeos) { | 477 if (use_ozone || is_chromeos) { |
537 sources -= [ "local_input_monitor_unittest.cc" ] | 478 sources -= [ "local_input_monitor_unittest.cc" ] |
538 } | 479 } |
539 if (is_chromeos) { | |
540 sources -= [ "linux/x_server_clipboard_unittest.cc" ] | |
541 } | |
542 | 480 |
543 configs += [ "//remoting/build/config:version" ] | 481 configs += [ "//remoting/build/config:version" ] |
544 | 482 |
545 deps = [ | 483 deps = [ |
546 ":host", | 484 ":host", |
547 ":test_support", | 485 ":test_support", |
548 "//remoting/host/it2me:common", | 486 "//remoting/host/it2me:common", |
549 "//remoting/host/native_messaging", | 487 "//remoting/host/native_messaging", |
550 "//remoting/host/security_key:unit_tests", | 488 "//remoting/host/security_key:unit_tests", |
551 "//remoting/host/setup", | 489 "//remoting/host/setup", |
552 "//remoting/proto", | 490 "//remoting/proto", |
553 "//remoting/resources", | 491 "//remoting/resources", |
554 "//skia", | 492 "//skia", |
555 "//testing/gmock", | 493 "//testing/gmock", |
556 "//testing/gtest", | 494 "//testing/gtest", |
557 ] | 495 ] |
| 496 |
| 497 if (is_linux && !is_chromeos) { |
| 498 deps += [ "//remoting/host/linux:unit_tests" ] |
| 499 } |
| 500 |
| 501 if (is_chromeos) { |
| 502 deps += [ |
| 503 "//remoting/host/chromeos:unit_tests", |
| 504 "//remoting/host/linux", # for AudioPipeReader |
| 505 ] |
| 506 } |
| 507 |
558 if (is_win) { | 508 if (is_win) { |
559 deps += [ "//remoting/host/win:unit_tests" ] | 509 deps += [ "//remoting/host/win:unit_tests" ] |
560 } | 510 } |
561 | 511 |
562 if (!is_ios) { | 512 if (!is_ios) { |
563 deps += [ "//components/policy/core/browser:test_support" ] | 513 deps += [ "//components/policy/core/browser:test_support" ] |
564 } | 514 } |
565 } | 515 } |
566 | 516 |
567 group("remoting_host_branded") { | 517 group("remoting_host_branded") { |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 group("remoting_me2me_host_archive") { | 783 group("remoting_me2me_host_archive") { |
834 deps = [ | 784 deps = [ |
835 "//remoting/host/installer/mac:remoting_me2me_host_archive", | 785 "//remoting/host/installer/mac:remoting_me2me_host_archive", |
836 ] | 786 ] |
837 } | 787 } |
838 } else { | 788 } else { |
839 group("remoting_me2me_host_archive") { | 789 group("remoting_me2me_host_archive") { |
840 } | 790 } |
841 } | 791 } |
842 } | 792 } |
OLD | NEW |