| 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/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//third_party/protobuf/proto_library.gni") | 7 import("//third_party/protobuf/proto_library.gni") |
| 8 | 8 |
| 9 assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos") | 9 assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos") |
| 10 | 10 |
| 11 declare_args() { | 11 declare_args() { |
| 12 # Use binder. Binder related code is compiled only when true. | 12 # Use binder. Binder related code is compiled only when true. |
| 13 use_binder = false | 13 use_binder = false |
| 14 } | 14 } |
| 15 | 15 |
| 16 component("chromeos") { | 16 component("chromeos") { |
| 17 configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 17 configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
| 18 public_deps = [ | 18 public_deps = [ |
| 19 "//dbus", | 19 "//dbus", |
| 20 ] | 20 ] |
| 21 deps = [ | 21 deps = [ |
| 22 ":attestation_proto", | 22 ":attestation_proto", |
| 23 ":authpolicy_proto", | 23 ":authpolicy_proto", |
| 24 ":biod_proto", |
| 24 ":cryptohome_proto", | 25 ":cryptohome_proto", |
| 25 ":power_manager_proto", | 26 ":power_manager_proto", |
| 26 "//base", | 27 "//base", |
| 27 "//base:i18n", | 28 "//base:i18n", |
| 28 "//base/third_party/dynamic_annotations", | 29 "//base/third_party/dynamic_annotations", |
| 29 "//chrome/browser/chromeos:device_policy_proto", | 30 "//chrome/browser/chromeos:device_policy_proto", |
| 30 "//components/device_event_log", | 31 "//components/device_event_log", |
| 31 "//components/onc", | 32 "//components/onc", |
| 32 "//components/policy:cloud_policy_proto_generated_compile", | 33 "//components/policy:cloud_policy_proto_generated_compile", |
| 33 "//components/policy/proto", | 34 "//components/policy/proto", |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 # This must be a static library instead of a source set because some of the | 492 # This must be a static library instead of a source set because some of the |
| 492 # files pull in things with dependencies that aren't linked in all cases. | 493 # files pull in things with dependencies that aren't linked in all cases. |
| 493 # | 494 # |
| 494 # TODO this should probably be changed such that it links in all cases and | 495 # TODO this should probably be changed such that it links in all cases and |
| 495 # can be converted to a source set. | 496 # can be converted to a source set. |
| 496 static_library("test_support") { | 497 static_library("test_support") { |
| 497 testonly = true | 498 testonly = true |
| 498 configs += [ "//build/config/linux/dbus" ] | 499 configs += [ "//build/config/linux/dbus" ] |
| 499 public_deps = [ | 500 public_deps = [ |
| 500 ":attestation_proto", | 501 ":attestation_proto", |
| 502 ":biod_proto", |
| 501 ":chromeos", | 503 ":chromeos", |
| 502 ":cryptohome_proto", | 504 ":cryptohome_proto", |
| 503 ":power_manager_proto", | 505 ":power_manager_proto", |
| 504 ] | 506 ] |
| 505 deps = [ | 507 deps = [ |
| 506 ":test_support_without_gmock", | 508 ":test_support_without_gmock", |
| 507 "//components/signin/core/account_id", | 509 "//components/signin/core/account_id", |
| 508 "//dbus:test_support", | 510 "//dbus:test_support", |
| 509 "//google_apis", | 511 "//google_apis", |
| 510 "//net:test_support", | 512 "//net:test_support", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 "network/onc/onc_test_utils.cc", | 563 "network/onc/onc_test_utils.cc", |
| 562 "network/onc/onc_test_utils.h", | 564 "network/onc/onc_test_utils.h", |
| 563 ] | 565 ] |
| 564 } | 566 } |
| 565 | 567 |
| 566 static_library("test_support_without_gmock") { | 568 static_library("test_support_without_gmock") { |
| 567 testonly = true | 569 testonly = true |
| 568 configs += [ "//build/config/linux/dbus" ] | 570 configs += [ "//build/config/linux/dbus" ] |
| 569 deps = [ | 571 deps = [ |
| 570 ":attestation_proto", | 572 ":attestation_proto", |
| 573 ":biod_proto", |
| 571 ":chromeos", | 574 ":chromeos", |
| 572 ":cryptohome_proto", | 575 ":cryptohome_proto", |
| 573 ":power_manager_proto", | 576 ":power_manager_proto", |
| 574 "//components/policy/proto", | 577 "//components/policy/proto", |
| 575 "//crypto", | 578 "//crypto", |
| 576 ] | 579 ] |
| 577 sources = [ | 580 sources = [ |
| 578 "dbus/fake_cros_disks_client.cc", | 581 "dbus/fake_cros_disks_client.cc", |
| 579 "dbus/fake_cros_disks_client.h", | 582 "dbus/fake_cros_disks_client.h", |
| 580 "dbus/fake_session_manager_client.cc", | 583 "dbus/fake_session_manager_client.cc", |
| 581 "dbus/fake_session_manager_client.h", | 584 "dbus/fake_session_manager_client.h", |
| 582 "dbus/fake_shill_manager_client.cc", | 585 "dbus/fake_shill_manager_client.cc", |
| 583 "dbus/fake_shill_manager_client.h", | 586 "dbus/fake_shill_manager_client.h", |
| 584 "dbus/fake_update_engine_client.cc", | 587 "dbus/fake_update_engine_client.cc", |
| 585 "dbus/fake_update_engine_client.h", | 588 "dbus/fake_update_engine_client.h", |
| 586 ] | 589 ] |
| 587 } | 590 } |
| 588 | 591 |
| 589 test("chromeos_unittests") { | 592 test("chromeos_unittests") { |
| 590 configs += [ | 593 configs += [ |
| 591 "//build/config/linux/dbus", | 594 "//build/config/linux/dbus", |
| 592 "//third_party/nss:system_nss_no_ssl_config", | 595 "//third_party/nss:system_nss_no_ssl_config", |
| 593 ] | 596 ] |
| 594 deps = [ | 597 deps = [ |
| 595 ":attestation_proto", | 598 ":attestation_proto", |
| 599 ":biod_proto", |
| 596 ":cryptohome_proto", | 600 ":cryptohome_proto", |
| 597 ":power_manager_proto", | 601 ":power_manager_proto", |
| 598 ":test_support", | 602 ":test_support", |
| 599 "//base/test:run_all_unittests", | 603 "//base/test:run_all_unittests", |
| 600 "//base/test:test_support", | 604 "//base/test:test_support", |
| 601 "//components/onc", | 605 "//components/onc", |
| 602 "//components/prefs:test_support", | 606 "//components/prefs:test_support", |
| 603 "//components/proxy_config", | 607 "//components/proxy_config", |
| 604 "//components/signin/core/account_id", | 608 "//components/signin/core/account_id", |
| 605 "//crypto", | 609 "//crypto", |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 proto_out_dir = "chromeos/cryptohome" | 753 proto_out_dir = "chromeos/cryptohome" |
| 750 } | 754 } |
| 751 | 755 |
| 752 proto_library("authpolicy_proto") { | 756 proto_library("authpolicy_proto") { |
| 753 sources = [ | 757 sources = [ |
| 754 "//third_party/cros_system_api/dbus/authpolicy/active_directory_info.proto", | 758 "//third_party/cros_system_api/dbus/authpolicy/active_directory_info.proto", |
| 755 ] | 759 ] |
| 756 | 760 |
| 757 proto_out_dir = "chromeos/dbus/authpolicy" | 761 proto_out_dir = "chromeos/dbus/authpolicy" |
| 758 } | 762 } |
| 763 |
| 764 proto_library("biod_proto") { |
| 765 sources = [ |
| 766 "//third_party/cros_system_api/dbus/biod/constants.proto", |
| 767 "//third_party/cros_system_api/dbus/biod/messages.proto", |
| 768 ] |
| 769 |
| 770 proto_out_dir = "chromeos/dbus/biod" |
| 771 } |
| OLD | NEW |