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

Side by Side Diff: chromeos/BUILD.gn

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

Powered by Google App Engine
This is Rietveld 408576698