| 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 gypi_values = exec_script("//build/gypi_to_gn.py", | 16 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 17 [ rebase_path("chromeos.gyp") ], | 17 [ rebase_path("chromeos.gyp") ], |
| 18 "scope", | 18 "scope", |
| 19 [ "chromeos.gyp" ]) | 19 [ "chromeos.gyp" ]) |
| 20 | 20 |
| 21 component("chromeos") { | 21 component("chromeos") { |
| 22 configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 22 configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
| 23 public_deps = [ | 23 public_deps = [ |
| 24 "//dbus", | 24 "//dbus", |
| 25 ] | 25 ] |
| 26 deps = [ | 26 deps = [ |
| 27 ":attestation_proto", | |
| 28 ":cryptohome_proto", | 27 ":cryptohome_proto", |
| 29 ":power_manager_proto", | 28 ":power_manager_proto", |
| 30 "//base", | 29 "//base", |
| 31 "//base:i18n", | 30 "//base:i18n", |
| 32 "//base/third_party/dynamic_annotations", | 31 "//base/third_party/dynamic_annotations", |
| 33 "//components/device_event_log", | 32 "//components/device_event_log", |
| 34 "//components/onc", | 33 "//components/onc", |
| 35 "//components/policy/proto", | 34 "//components/policy/proto", |
| 36 "//components/prefs", | 35 "//components/prefs", |
| 37 "//components/proxy_config", | 36 "//components/proxy_config", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 55 | 54 |
| 56 # This must be a static library instead of a source set because some of the | 55 # This must be a static library instead of a source set because some of the |
| 57 # files pull in things with dependencies that aren't linked in all cases. | 56 # files pull in things with dependencies that aren't linked in all cases. |
| 58 # | 57 # |
| 59 # TODO this should probably be changed such that it links in all cases and | 58 # TODO this should probably be changed such that it links in all cases and |
| 60 # can be converted to a source set. | 59 # can be converted to a source set. |
| 61 static_library("test_support") { | 60 static_library("test_support") { |
| 62 testonly = true | 61 testonly = true |
| 63 configs += [ "//build/config/linux/dbus" ] | 62 configs += [ "//build/config/linux/dbus" ] |
| 64 public_deps = [ | 63 public_deps = [ |
| 65 ":attestation_proto", | |
| 66 ":chromeos", | 64 ":chromeos", |
| 67 ":cryptohome_proto", | 65 ":cryptohome_proto", |
| 68 ":power_manager_proto", | 66 ":power_manager_proto", |
| 69 ] | 67 ] |
| 70 deps = [ | 68 deps = [ |
| 71 ":test_support_without_gmock", | 69 ":test_support_without_gmock", |
| 72 "//components/signin/core/account_id", | 70 "//components/signin/core/account_id", |
| 73 "//dbus:test_support", | 71 "//dbus:test_support", |
| 74 "//google_apis", | 72 "//google_apis", |
| 75 "//net:test_support", | 73 "//net:test_support", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 "network/mock_network_device_handler.h", | 117 "network/mock_network_device_handler.h", |
| 120 "network/onc/onc_test_utils.cc", | 118 "network/onc/onc_test_utils.cc", |
| 121 "network/onc/onc_test_utils.h", | 119 "network/onc/onc_test_utils.h", |
| 122 ] | 120 ] |
| 123 } | 121 } |
| 124 | 122 |
| 125 static_library("test_support_without_gmock") { | 123 static_library("test_support_without_gmock") { |
| 126 testonly = true | 124 testonly = true |
| 127 configs += [ "//build/config/linux/dbus" ] | 125 configs += [ "//build/config/linux/dbus" ] |
| 128 deps = [ | 126 deps = [ |
| 129 ":attestation_proto", | |
| 130 ":chromeos", | 127 ":chromeos", |
| 131 ":cryptohome_proto", | 128 ":cryptohome_proto", |
| 132 ":power_manager_proto", | 129 ":power_manager_proto", |
| 133 "//crypto", | 130 "//crypto", |
| 134 ] | 131 ] |
| 135 sources = [ | 132 sources = [ |
| 136 "dbus/fake_cros_disks_client.cc", | 133 "dbus/fake_cros_disks_client.cc", |
| 137 "dbus/fake_cros_disks_client.h", | 134 "dbus/fake_cros_disks_client.h", |
| 138 "dbus/fake_session_manager_client.cc", | 135 "dbus/fake_session_manager_client.cc", |
| 139 "dbus/fake_session_manager_client.h", | 136 "dbus/fake_session_manager_client.h", |
| 140 "dbus/fake_shill_manager_client.cc", | 137 "dbus/fake_shill_manager_client.cc", |
| 141 "dbus/fake_shill_manager_client.h", | 138 "dbus/fake_shill_manager_client.h", |
| 142 "dbus/fake_update_engine_client.cc", | 139 "dbus/fake_update_engine_client.cc", |
| 143 "dbus/fake_update_engine_client.h", | 140 "dbus/fake_update_engine_client.h", |
| 144 ] | 141 ] |
| 145 } | 142 } |
| 146 | 143 |
| 147 test("chromeos_unittests") { | 144 test("chromeos_unittests") { |
| 148 configs += [ | 145 configs += [ |
| 149 "//build/config/linux/dbus", | 146 "//build/config/linux/dbus", |
| 150 "//third_party/nss:system_nss_no_ssl_config", | 147 "//third_party/nss:system_nss_no_ssl_config", |
| 151 ] | 148 ] |
| 152 deps = [ | 149 deps = [ |
| 153 ":attestation_proto", | |
| 154 ":cryptohome_proto", | 150 ":cryptohome_proto", |
| 155 ":power_manager_proto", | 151 ":power_manager_proto", |
| 156 ":test_support", | 152 ":test_support", |
| 157 "//base/test:run_all_unittests", | 153 "//base/test:run_all_unittests", |
| 158 "//base/test:test_support", | 154 "//base/test:test_support", |
| 159 "//components/onc", | 155 "//components/onc", |
| 160 "//components/prefs:test_support", | 156 "//components/prefs:test_support", |
| 161 "//components/proxy_config", | 157 "//components/proxy_config", |
| 162 "//components/signin/core/account_id", | 158 "//components/signin/core/account_id", |
| 163 "//crypto", | 159 "//crypto", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 194 |
| 199 proto_library("cryptohome_proto") { | 195 proto_library("cryptohome_proto") { |
| 200 sources = [ | 196 sources = [ |
| 201 "//third_party/cros_system_api/dbus/cryptohome/key.proto", | 197 "//third_party/cros_system_api/dbus/cryptohome/key.proto", |
| 202 "//third_party/cros_system_api/dbus/cryptohome/rpc.proto", | 198 "//third_party/cros_system_api/dbus/cryptohome/rpc.proto", |
| 203 ] | 199 ] |
| 204 | 200 |
| 205 proto_out_dir = "chromeos/dbus/cryptohome" | 201 proto_out_dir = "chromeos/dbus/cryptohome" |
| 206 } | 202 } |
| 207 | 203 |
| 208 proto_library("attestation_proto") { | |
| 209 sources = [ | |
| 210 "dbus/proto/attestation.proto", | |
| 211 ] | |
| 212 | |
| 213 proto_out_dir = "chromeos/attestation" | |
| 214 } | |
| 215 | |
| 216 proto_library("cryptohome_signkey_proto") { | 204 proto_library("cryptohome_signkey_proto") { |
| 217 sources = [ | 205 sources = [ |
| 218 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", | 206 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
| 219 ] | 207 ] |
| 220 | 208 |
| 221 proto_out_dir = "chromeos/cryptohome" | 209 proto_out_dir = "chromeos/cryptohome" |
| 222 } | 210 } |
| OLD | NEW |