| 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/allocator.gni") | 5 import("//build/config/allocator.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.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 gypi_values = exec_script( | 11 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 12 "//build/gypi_to_gn.py", | 12 [ rebase_path("chromeos.gyp") ], |
| 13 [ rebase_path("chromeos.gyp") ], | 13 "scope", |
| 14 "scope", | 14 [ "chromeos.gyp" ]) |
| 15 [ "chromeos.gyp" ]) | |
| 16 | 15 |
| 17 component("chromeos") { | 16 component("chromeos") { |
| 18 configs += [ | 17 configs += [ "//net/third_party/nss/ssl:ssl_config" ] |
| 19 "//net/third_party/nss/ssl:ssl_config", | 18 public_deps = [ |
| 19 "//dbus", |
| 20 ] | 20 ] |
| 21 public_deps = [ "//dbus" ] | |
| 22 deps = [ | 21 deps = [ |
| 23 "//base", | 22 "//base", |
| 24 "//base:prefs", | 23 "//base:prefs", |
| 25 "//base/third_party/dynamic_annotations", | 24 "//base/third_party/dynamic_annotations", |
| 26 "//chromeos/ime:gencode", | 25 "//chromeos/ime:gencode", |
| 27 "//components/policy/proto", | 26 "//components/policy/proto", |
| 28 "//components/onc", | 27 "//components/onc", |
| 29 "//crypto", | 28 "//crypto", |
| 30 "//google_apis", | 29 "//google_apis", |
| 31 "//net/third_party/nss/ssl:libssl", | 30 "//net/third_party/nss/ssl:libssl", |
| 32 "//third_party/icu", | 31 "//third_party/icu", |
| 33 "//third_party/libxml", | 32 "//third_party/libxml", |
| 34 "//third_party/protobuf:protobuf_lite", | 33 "//third_party/protobuf:protobuf_lite", |
| 35 "//ui/accelerometer", | 34 "//ui/accelerometer", |
| 36 "//url", | 35 "//url", |
| 37 ":cryptohome_proto", | 36 ":cryptohome_proto", |
| 38 ":power_manager_proto" | 37 ":power_manager_proto", |
| 39 ] | 38 ] |
| 40 sources = gypi_values.chromeos_sources | 39 sources = gypi_values.chromeos_sources |
| 41 defines = [ "CHROMEOS_IMPLEMENTATION" ] | 40 defines = [ "CHROMEOS_IMPLEMENTATION" ] |
| 42 } | 41 } |
| 43 | 42 |
| 44 static_library("test_support") { | 43 static_library("test_support") { |
| 45 testonly = true | 44 testonly = true |
| 46 configs += [ | 45 configs += [ "//build/config/linux:dbus" ] |
| 47 "//build/config/linux:dbus", | |
| 48 ] | |
| 49 deps = [ | 46 deps = [ |
| 50 "//testing/gmock", | 47 "//testing/gmock", |
| 51 ":chromeos", | 48 ":chromeos", |
| 52 ":cryptohome_proto", | 49 ":cryptohome_proto", |
| 53 ":power_manager_proto", | 50 ":power_manager_proto", |
| 54 ":test_support_without_gmock", | 51 ":test_support_without_gmock", |
| 55 ] | 52 ] |
| 56 sources = [ | 53 sources = [ |
| 57 "attestation/mock_attestation_flow.cc", | 54 "attestation/mock_attestation_flow.cc", |
| 58 "attestation/mock_attestation_flow.h", | 55 "attestation/mock_attestation_flow.h", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 "network/mock_managed_network_configuration_handler.h", | 89 "network/mock_managed_network_configuration_handler.h", |
| 93 "network/onc/onc_test_utils.cc", | 90 "network/onc/onc_test_utils.cc", |
| 94 "network/onc/onc_test_utils.h", | 91 "network/onc/onc_test_utils.h", |
| 95 "system/fake_statistics_provider.cc", | 92 "system/fake_statistics_provider.cc", |
| 96 "system/fake_statistics_provider.h", | 93 "system/fake_statistics_provider.h", |
| 97 ] | 94 ] |
| 98 } | 95 } |
| 99 | 96 |
| 100 static_library("test_support_without_gmock") { | 97 static_library("test_support_without_gmock") { |
| 101 testonly = true | 98 testonly = true |
| 102 configs += [ | 99 configs += [ "//build/config/linux:dbus" ] |
| 103 "//build/config/linux:dbus", | |
| 104 ] | |
| 105 deps = [ | 100 deps = [ |
| 106 "//crypto", | 101 "//crypto", |
| 107 ":chromeos", | 102 ":chromeos", |
| 108 ":cryptohome_proto", | 103 ":cryptohome_proto", |
| 109 ":power_manager_proto", | 104 ":power_manager_proto", |
| 110 ] | 105 ] |
| 111 sources = [ | 106 sources = [ |
| 112 "dbus/fake_cros_disks_client.cc", | 107 "dbus/fake_cros_disks_client.cc", |
| 113 "dbus/fake_cros_disks_client.h", | 108 "dbus/fake_cros_disks_client.h", |
| 114 "dbus/fake_power_manager_client.cc", | 109 "dbus/fake_power_manager_client.cc", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 proto_out_dir = "chromeos/dbus/cryptohome" | 170 proto_out_dir = "chromeos/dbus/cryptohome" |
| 176 } | 171 } |
| 177 | 172 |
| 178 proto_library("cryptohome_signkey_proto") { | 173 proto_library("cryptohome_signkey_proto") { |
| 179 sources = [ | 174 sources = [ |
| 180 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", | 175 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
| 181 ] | 176 ] |
| 182 | 177 |
| 183 proto_out_dir = "chromeos/cryptohome" | 178 proto_out_dir = "chromeos/cryptohome" |
| 184 } | 179 } |
| OLD | NEW |