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

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

Issue 2438773003: Update CRD ChromeOS Host build files to be better in line with GN style. (Closed)
Patch Set: Merge branch 'master' into chromeos_gn Created 4 years, 1 month 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/util/process_version.gni") 5 import("//build/util/process_version.gni")
6 import("//remoting/build/config/remoting_build.gni") 6 import("//remoting/build/config/remoting_build.gni")
7 7
8 group("all_tests") { 8 group("all_tests") {
9 testonly = true 9 testonly = true
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 "audio_capturer_win.cc", 62 "audio_capturer_win.cc",
63 "audio_capturer_win.h", 63 "audio_capturer_win.h",
64 "audio_silence_detector.cc", 64 "audio_silence_detector.cc",
65 "audio_silence_detector.h", 65 "audio_silence_detector.h",
66 "backoff_timer.cc", 66 "backoff_timer.cc",
67 "backoff_timer.h", 67 "backoff_timer.h",
68 "basic_desktop_environment.cc", 68 "basic_desktop_environment.cc",
69 "basic_desktop_environment.h", 69 "basic_desktop_environment.h",
70 "branding.cc", 70 "branding.cc",
71 "branding.h", 71 "branding.h",
72 "chromeos/aura_desktop_capturer.cc",
73 "chromeos/aura_desktop_capturer.h",
74 "chromeos/clipboard_aura.cc",
75 "chromeos/clipboard_aura.h",
76 "chromeos/message_box.cc",
77 "chromeos/message_box.h",
78 "chromeos/mouse_cursor_monitor_aura.cc",
79 "chromeos/mouse_cursor_monitor_aura.h",
80 "chromeos/point_transformer.cc",
81 "chromeos/point_transformer.h",
82 "chromeos/skia_bitmap_desktop_frame.cc",
83 "chromeos/skia_bitmap_desktop_frame.h",
84 "chromoting_host.cc", 72 "chromoting_host.cc",
85 "chromoting_host.h", 73 "chromoting_host.h",
86 "chromoting_host_context.cc", 74 "chromoting_host_context.cc",
87 "chromoting_host_context.h", 75 "chromoting_host_context.h",
88 "chromoting_messages.cc", 76 "chromoting_messages.cc",
89 "chromoting_messages.h", 77 "chromoting_messages.h",
90 "chromoting_param_traits.cc", 78 "chromoting_param_traits.cc",
91 "chromoting_param_traits.h", 79 "chromoting_param_traits.h",
92 "client_session.cc", 80 "client_session.cc",
93 "client_session.h", 81 "client_session.h",
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 "ipc_mouse_cursor_monitor.cc", 186 "ipc_mouse_cursor_monitor.cc",
199 "ipc_mouse_cursor_monitor.h", 187 "ipc_mouse_cursor_monitor.h",
200 "ipc_screen_controls.cc", 188 "ipc_screen_controls.cc",
201 "ipc_screen_controls.h", 189 "ipc_screen_controls.h",
202 "ipc_util.h", 190 "ipc_util.h",
203 "ipc_util_win.cc", 191 "ipc_util_win.cc",
204 "ipc_video_frame_capturer.cc", 192 "ipc_video_frame_capturer.cc",
205 "ipc_video_frame_capturer.h", 193 "ipc_video_frame_capturer.h",
206 "it2me_desktop_environment.cc", 194 "it2me_desktop_environment.cc",
207 "it2me_desktop_environment.h", 195 "it2me_desktop_environment.h",
208 "linux/audio_pipe_reader.cc",
209 "linux/audio_pipe_reader.h",
210 "linux/certificate_watcher.cc",
211 "linux/certificate_watcher.h",
212 "linux/unicode_to_keysym.cc",
213 "linux/unicode_to_keysym.h",
214 "linux/x11_character_injector.cc",
215 "linux/x11_character_injector.h",
216 "linux/x11_keyboard_impl.cc",
217 "linux/x11_keyboard_impl.h",
218 "linux/x11_util.cc",
219 "linux/x11_util.h",
220 "linux/x_server_clipboard.cc",
221 "linux/x_server_clipboard.h",
222 "local_input_monitor.h", 196 "local_input_monitor.h",
223 "local_input_monitor_chromeos.cc", 197 "local_input_monitor_chromeos.cc",
224 "local_input_monitor_mac.mm", 198 "local_input_monitor_mac.mm",
225 "local_input_monitor_win.cc", 199 "local_input_monitor_win.cc",
226 "local_input_monitor_x11.cc", 200 "local_input_monitor_x11.cc",
227 "logging.h", 201 "logging.h",
228 "logging_linux.cc", 202 "logging_linux.cc",
229 "logging_mac.cc", 203 "logging_mac.cc",
230 "logging_win.cc", 204 "logging_win.cc",
231 "me2me_desktop_environment.cc", 205 "me2me_desktop_environment.cc",
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 "//ui/events:dom_keycode_converter", 295 "//ui/events:dom_keycode_converter",
322 "//ui/events/platform", 296 "//ui/events/platform",
323 ] 297 ]
324 298
325 public_deps = [] 299 public_deps = []
326 300
327 if (enable_configuration_policy) { 301 if (enable_configuration_policy) {
328 deps += [ "//components/policy:generated" ] 302 deps += [ "//components/policy:generated" ]
329 } 303 }
330 304
331 if (is_linux && !is_chromeos) { 305 if (is_linux) {
332 libs += [ "pam" ] 306 public_deps += [ "//remoting/host/linux" ]
Sergey Ulanov 2016/11/23 22:35:30 I don't think we need any of these files on Chrome
nicholss 2017/04/24 18:01:03 Done.
307 if (!is_chromeos) {
308 libs += [ "pam" ]
309 }
333 } 310 }
334 311
335 if (use_x11) { 312 if (use_x11) {
336 configs += [ 313 configs += [
337 "//build/config/linux:x11", 314 "//build/config/linux:x11",
338 "//build/config/linux:xrandr", 315 "//build/config/linux:xrandr",
339 ] 316 ]
340 if (is_desktop_linux) {
341 if (use_gtk3) {
342 deps += [ "//build/config/linux/gtk3" ]
343 } else {
344 deps += [ "//build/config/linux/gtk2" ]
345 }
346 }
347 } else { 317 } else {
348 sources -= [ 318 sources -= [
349 "clipboard_x11.cc", 319 "clipboard_x11.cc",
350 "desktop_resizer_x11.cc", 320 "desktop_resizer_x11.cc",
351 "input_injector_x11.cc", 321 "input_injector_x11.cc",
352 "local_input_monitor_x11.cc", 322 "local_input_monitor_x11.cc",
353 ] 323 ]
354 if (is_linux) {
355 # These will already be filtered out on non-Linux.
356 sources -= [
357 "linux/unicode_to_keysym.cc",
358 "linux/x11_keyboard_impl.cc",
359 "linux/x11_keyboard_impl.h",
360 "linux/x11_util.cc",
361 "linux/x_server_clipboard.cc",
362 "linux/x_server_clipboard.h",
363 ]
364 }
365 } 324 }
366 325
367 if (!use_ozone) { 326 if (!use_ozone) {
368 sources -= [ "desktop_resizer_ozone.cc" ] 327 sources -= [ "desktop_resizer_ozone.cc" ]
369 } 328 }
370 329
371 if (is_chromeos) { 330 if (is_chromeos) {
372 # TODO(GYP): crbug.com/481627. These should only be included 331 # TODO(GYP): crbug.com/481627. These should only be included
373 # when enable_me2me_host is true. 332 # when enable_me2me_host is true.
374 sources -= [ 333 sources -= [
334 "continue_window_linux.cc",
335 "curtain_mode_linux.cc",
336 "disconnect_window_linux.cc",
375 "me2me_desktop_environment.cc", 337 "me2me_desktop_environment.cc",
376 "me2me_desktop_environment.h", 338 "me2me_desktop_environment.h",
377 ] 339 ]
378 deps += [ 340 deps += [ "//remoting/host/chromeos" ]
379 "//cc",
380 "//gpu/command_buffer/common",
381 "//ppapi/host",
382 "//skia",
383 "//ui/aura",
384 "//ui/compositor",
385 "//ui/events",
386 "//ui/views",
387 ]
388 341
389 if (use_ash) { 342 if (use_ash) {
390 deps += [ "//ash" ] 343 deps += [ "//ash" ]
391 } 344 }
392 345
393 if (use_ozone) { 346 if (use_ozone) {
394 deps += [ "//ui/ozone" ] 347 deps += [ "//ui/ozone" ]
395 sources -= [ "desktop_resizer_ozone.cc" ] 348 sources -= [ "desktop_resizer_ozone.cc" ]
396 } else { 349 } else {
397 sources -= [ 350 sources -= [
398 "clipboard_x11.cc", 351 "clipboard_x11.cc",
399 "desktop_resizer_x11.cc", 352 "desktop_resizer_x11.cc",
400 "input_injector_chromeos.cc", 353 "input_injector_chromeos.cc",
401 "input_injector_chromeos.h", 354 "input_injector_chromeos.h",
402 "linux/x_server_clipboard.cc",
403 "linux/x_server_clipboard.h",
404 "local_input_monitor_x11.cc", 355 "local_input_monitor_x11.cc",
405 ] 356 ]
406 } 357 }
407
408 sources -= [
409 "continue_window_linux.cc",
410 "curtain_mode_linux.cc",
411 "disconnect_window_linux.cc",
412 ]
413 } 358 }
414 359
415 if (is_mac) { 360 if (is_mac) {
416 libs += [ 361 libs += [
417 "Accelerate.framework", 362 "Accelerate.framework",
418 "Carbon.framework", 363 "Carbon.framework",
419 ] 364 ]
420 365
421 # TODO(nicholss): When we can delete GYP builds,
422 # this flag and usage can be removed.
423 defines += [ "GN_BUILD=1" ]
424 deps += [ 366 deps += [
425 ":remoting_version", 367 ":remoting_version",
426 "//third_party/google_toolbox_for_mac", 368 "//third_party/google_toolbox_for_mac",
427 ] 369 ]
428 } 370 }
429 371
430 if (is_win) { 372 if (is_win) {
431 deps += [ 373 deps += [
432 "//remoting/host/win", 374 "//remoting/host/win",
433 "//remoting/host/win:messages", 375 "//remoting/host/win:messages",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 425 }
484 } 426 }
485 427
486 # The host portions of the remoting unit tests. 428 # The host portions of the remoting unit tests.
487 source_set("unit_tests") { 429 source_set("unit_tests") {
488 testonly = true 430 testonly = true
489 431
490 sources = [ 432 sources = [
491 "audio_silence_detector_unittest.cc", 433 "audio_silence_detector_unittest.cc",
492 "backoff_timer_unittest.cc", 434 "backoff_timer_unittest.cc",
493 "chromeos/aura_desktop_capturer_unittest.cc",
494 "chromeos/clipboard_aura_unittest.cc",
495 "chromoting_host_context_unittest.cc", 435 "chromoting_host_context_unittest.cc",
496 "chromoting_host_unittest.cc", 436 "chromoting_host_unittest.cc",
497 "client_session_unittest.cc", 437 "client_session_unittest.cc",
498 "config_file_watcher_unittest.cc", 438 "config_file_watcher_unittest.cc",
499 "daemon_process_unittest.cc", 439 "daemon_process_unittest.cc",
500 "desktop_process_unittest.cc", 440 "desktop_process_unittest.cc",
501 "gcd_rest_client_unittest.cc", 441 "gcd_rest_client_unittest.cc",
502 "gcd_state_updater_unittest.cc", 442 "gcd_state_updater_unittest.cc",
503 "heartbeat_sender_unittest.cc", 443 "heartbeat_sender_unittest.cc",
504 "host_attributes_unittest.cc", 444 "host_attributes_unittest.cc",
505 "host_change_notification_listener_unittest.cc", 445 "host_change_notification_listener_unittest.cc",
506 "host_config_unittest.cc", 446 "host_config_unittest.cc",
507 "host_extension_session_manager_unittest.cc", 447 "host_extension_session_manager_unittest.cc",
508 "host_power_save_blocker_unittest.cc", 448 "host_power_save_blocker_unittest.cc",
509 "host_session_options_unittest.cc", 449 "host_session_options_unittest.cc",
510 "host_status_logger_unittest.cc", 450 "host_status_logger_unittest.cc",
511 "ipc_desktop_environment_unittest.cc", 451 "ipc_desktop_environment_unittest.cc",
512 "it2me/it2me_confirmation_dialog_proxy_unittest.cc", 452 "it2me/it2me_confirmation_dialog_proxy_unittest.cc",
513 "it2me/it2me_host_unittest.cc", 453 "it2me/it2me_host_unittest.cc",
514 "it2me/it2me_native_messaging_host_unittest.cc", 454 "it2me/it2me_native_messaging_host_unittest.cc",
515 "linux/audio_pipe_reader_unittest.cc",
516 "linux/certificate_watcher_unittest.cc",
517 "linux/unicode_to_keysym_unittest.cc",
518 "linux/x11_character_injector_unittest.cc",
519 "linux/x_server_clipboard_unittest.cc",
520 "local_input_monitor_unittest.cc", 455 "local_input_monitor_unittest.cc",
521 "mouse_cursor_monitor_proxy_unittest.cc", 456 "mouse_cursor_monitor_proxy_unittest.cc",
522 "mouse_shape_pump_unittest.cc", 457 "mouse_shape_pump_unittest.cc",
523 "native_messaging/native_messaging_reader_unittest.cc", 458 "native_messaging/native_messaging_reader_unittest.cc",
524 "native_messaging/native_messaging_writer_unittest.cc", 459 "native_messaging/native_messaging_writer_unittest.cc",
525 "pairing_registry_delegate_linux_unittest.cc", 460 "pairing_registry_delegate_linux_unittest.cc",
526 "pairing_registry_delegate_win_unittest.cc", 461 "pairing_registry_delegate_win_unittest.cc",
527 "pin_hash_unittest.cc", 462 "pin_hash_unittest.cc",
528 "policy_watcher_unittest.cc", 463 "policy_watcher_unittest.cc",
529 "register_support_host_request_unittest.cc", 464 "register_support_host_request_unittest.cc",
530 "remote_input_filter_unittest.cc", 465 "remote_input_filter_unittest.cc",
531 "resizing_host_observer_unittest.cc", 466 "resizing_host_observer_unittest.cc",
532 "resources_unittest.cc", 467 "resources_unittest.cc",
533 "screen_resolution_unittest.cc", 468 "screen_resolution_unittest.cc",
534 "server_log_entry_host_unittest.cc", 469 "server_log_entry_host_unittest.cc",
535 "setup/me2me_native_messaging_host_unittest.cc", 470 "setup/me2me_native_messaging_host_unittest.cc",
536 "setup/oauth_helper_unittest.cc", 471 "setup/oauth_helper_unittest.cc",
537 "setup/pin_validator_unittest.cc", 472 "setup/pin_validator_unittest.cc",
538 "third_party_auth_config_unittest.cc", 473 "third_party_auth_config_unittest.cc",
539 "token_validator_base_unittest.cc", 474 "token_validator_base_unittest.cc",
540 "token_validator_factory_impl_unittest.cc", 475 "token_validator_factory_impl_unittest.cc",
541 "touch_injector_win_unittest.cc", 476 "touch_injector_win_unittest.cc",
542 ] 477 ]
543 478
544 if (!use_x11 && is_linux) {
545 sources -= [ "linux/unicode_to_keysym_unittest.cc" ]
546 }
547 if (use_ozone || is_chromeos) { 479 if (use_ozone || is_chromeos) {
548 sources -= [ "local_input_monitor_unittest.cc" ] 480 sources -= [ "local_input_monitor_unittest.cc" ]
549 } 481 }
550 if (is_chromeos) {
551 sources -= [ "linux/x_server_clipboard_unittest.cc" ]
552 }
553 482
554 configs += [ "//remoting/build/config:version" ] 483 configs += [ "//remoting/build/config:version" ]
555 484
556 deps = [ 485 deps = [
557 ":host", 486 ":host",
558 ":test_support", 487 ":test_support",
559 "//remoting/host/it2me:common", 488 "//remoting/host/it2me:common",
560 "//remoting/host/native_messaging", 489 "//remoting/host/native_messaging",
561 "//remoting/host/security_key:unit_tests", 490 "//remoting/host/security_key:unit_tests",
562 "//remoting/host/setup", 491 "//remoting/host/setup",
563 "//remoting/proto", 492 "//remoting/proto",
564 "//remoting/resources", 493 "//remoting/resources",
565 "//skia", 494 "//skia",
566 "//testing/gmock", 495 "//testing/gmock",
567 "//testing/gtest", 496 "//testing/gtest",
568 ] 497 ]
498
499 if (is_linux && !is_chromeos) {
500 deps += [ "//remoting/host/linux:unit_tests" ]
501 }
502
503 if (is_chromeos) {
504 deps += [
505 "//remoting/host/chromeos:unit_tests",
506 "//remoting/host/linux", # for AudioPipeReader
Sergey Ulanov 2016/11/23 22:35:30 This shouldn't be needed. AudioCapturerLinux is co
nicholss 2017/04/24 18:01:03 Done.
507 ]
508 }
509
569 if (is_win) { 510 if (is_win) {
570 deps += [ "//remoting/host/win:unit_tests" ] 511 deps += [ "//remoting/host/win:unit_tests" ]
571 } 512 }
572 513
573 if (enable_configuration_policy) { 514 if (enable_configuration_policy) {
574 deps += [ "//components/policy/core/browser:test_support" ] 515 deps += [ "//components/policy/core/browser:test_support" ]
575 } 516 }
576 } 517 }
577 518
578 group("remoting_host_branded") { 519 group("remoting_host_branded") {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 } 685 }
745 686
746 if (enable_webrtc) { 687 if (enable_webrtc) {
747 deps += [ 688 deps += [
748 "//third_party/libjingle/webrtc:libjingle_webrtc", 689 "//third_party/libjingle/webrtc:libjingle_webrtc",
749 "//third_party/webrtc/libjingle/xmllite", 690 "//third_party/webrtc/libjingle/xmllite",
750 "//third_party/webrtc/libjingle/xmpp", 691 "//third_party/webrtc/libjingle/xmpp",
751 ] 692 ]
752 } 693 }
753 694
754 if (is_desktop_linux) {
755 if (use_gtk3) {
756 deps += [ "//build/config/linux/gtk3" ]
757 } else {
758 deps += [ "//build/config/linux/gtk2" ]
759 }
760 }
761 if ((is_linux && !is_chromeos) || is_mac) { 695 if ((is_linux && !is_chromeos) || is_mac) {
762 libs = [ "pam" ] 696 libs = [ "pam" ]
763 } 697 }
764 698
765 if (is_mac && is_official_build) { 699 if (is_mac && is_official_build) {
766 sources += [ "internal/internal_mac-inl.h" ] 700 sources += [ "internal/internal_mac-inl.h" ]
767 } 701 }
768 702
769 if (remoting_multi_process != 0) { 703 if (remoting_multi_process != 0) {
770 deps += [ "//mojo/edk/system" ] 704 deps += [ "//mojo/edk/system" ]
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 group("remoting_me2me_host_archive") { 778 group("remoting_me2me_host_archive") {
845 deps = [ 779 deps = [
846 "//remoting/host/installer/mac:remoting_me2me_host_archive", 780 "//remoting/host/installer/mac:remoting_me2me_host_archive",
847 ] 781 ]
848 } 782 }
849 } else { 783 } else {
850 group("remoting_me2me_host_archive") { 784 group("remoting_me2me_host_archive") {
851 } 785 }
852 } 786 }
853 } 787 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698