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("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//third_party/protobuf/proto_library.gni") | 8 import("//third_party/protobuf/proto_library.gni") |
9 | 9 |
10 assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos") | 10 assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos") |
11 | 11 |
12 gypi_values = exec_script("//build/gypi_to_gn.py", | 12 gypi_values = exec_script("//build/gypi_to_gn.py", |
13 [ rebase_path("chromeos.gyp") ], | 13 [ rebase_path("chromeos.gyp") ], |
14 "scope", | 14 "scope", |
15 [ "chromeos.gyp" ]) | 15 [ "chromeos.gyp" ]) |
16 | 16 |
17 component("chromeos") { | 17 component("chromeos") { |
18 configs += [ "//net/third_party/nss/ssl:ssl_config" ] | 18 configs += [ "//net/third_party/nss/ssl:ssl_config" ] |
19 public_deps = [ | 19 public_deps = [ |
20 "//dbus", | 20 "//dbus", |
21 ] | 21 ] |
22 deps = [ | 22 deps = [ |
| 23 ":cryptohome_proto", |
| 24 ":power_manager_proto", |
23 "//base", | 25 "//base", |
24 "//base:i18n", | 26 "//base:i18n", |
25 "//base:prefs", | 27 "//base:prefs", |
26 "//base/third_party/dynamic_annotations", | 28 "//base/third_party/dynamic_annotations", |
27 "//chromeos/ime:gencode", | 29 "//chromeos/ime:gencode", |
28 "//components/device_event_log", | 30 "//components/device_event_log", |
| 31 "//components/onc", |
29 "//components/policy/proto", | 32 "//components/policy/proto", |
30 "//components/onc", | |
31 "//components/proxy_config", | 33 "//components/proxy_config", |
32 "//components/signin/core/account_id", | 34 "//components/signin/core/account_id", |
33 "//crypto", | 35 "//crypto", |
34 "//crypto:platform", | 36 "//crypto:platform", |
35 "//google_apis", | 37 "//google_apis", |
36 "//third_party/icu", | 38 "//third_party/icu", |
37 "//third_party/libxml", | 39 "//third_party/libxml", |
38 "//third_party/protobuf:protobuf_lite", | 40 "//third_party/protobuf:protobuf_lite", |
39 "//url", | 41 "//url", |
40 ":cryptohome_proto", | |
41 ":power_manager_proto", | |
42 ] | 42 ] |
43 sources = gypi_values.chromeos_sources | 43 sources = gypi_values.chromeos_sources |
44 defines = [ "CHROMEOS_IMPLEMENTATION" ] | 44 defines = [ "CHROMEOS_IMPLEMENTATION" ] |
45 } | 45 } |
46 | 46 |
47 # TYhis must be a static library instead of a source set because some of the | 47 # TYhis must be a static library instead of a source set because some of the |
48 # files pull in things with dependencies that aren't linked in all cases. | 48 # files pull in things with dependencies that aren't linked in all cases. |
49 # | 49 # |
50 # TODO this should probably be changed such that it links in all cases and | 50 # TODO this should probably be changed such that it links in all cases and |
51 # can be converted to a source set. | 51 # can be converted to a source set. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "network/onc/onc_test_utils.h", | 102 "network/onc/onc_test_utils.h", |
103 "system/fake_statistics_provider.cc", | 103 "system/fake_statistics_provider.cc", |
104 "system/fake_statistics_provider.h", | 104 "system/fake_statistics_provider.h", |
105 ] | 105 ] |
106 } | 106 } |
107 | 107 |
108 static_library("test_support_without_gmock") { | 108 static_library("test_support_without_gmock") { |
109 testonly = true | 109 testonly = true |
110 configs += [ "//build/config/linux:dbus" ] | 110 configs += [ "//build/config/linux:dbus" ] |
111 deps = [ | 111 deps = [ |
112 "//crypto", | |
113 ":chromeos", | 112 ":chromeos", |
114 ":cryptohome_proto", | 113 ":cryptohome_proto", |
115 ":power_manager_proto", | 114 ":power_manager_proto", |
| 115 "//crypto", |
116 ] | 116 ] |
117 sources = [ | 117 sources = [ |
118 "dbus/fake_cros_disks_client.cc", | 118 "dbus/fake_cros_disks_client.cc", |
119 "dbus/fake_cros_disks_client.h", | 119 "dbus/fake_cros_disks_client.h", |
120 "dbus/fake_session_manager_client.cc", | 120 "dbus/fake_session_manager_client.cc", |
121 "dbus/fake_session_manager_client.h", | 121 "dbus/fake_session_manager_client.h", |
122 "dbus/fake_shill_manager_client.cc", | 122 "dbus/fake_shill_manager_client.cc", |
123 "dbus/fake_shill_manager_client.h", | 123 "dbus/fake_shill_manager_client.h", |
124 "dbus/fake_update_engine_client.cc", | 124 "dbus/fake_update_engine_client.cc", |
125 "dbus/fake_update_engine_client.h", | 125 "dbus/fake_update_engine_client.h", |
126 ] | 126 ] |
127 } | 127 } |
128 | 128 |
129 test("chromeos_unittests") { | 129 test("chromeos_unittests") { |
130 configs += [ | 130 configs += [ |
131 "//build/config/linux:dbus", | 131 "//build/config/linux:dbus", |
132 "//net/third_party/nss/ssl:ssl_config", | 132 "//net/third_party/nss/ssl:ssl_config", |
133 ] | 133 ] |
134 deps = [ | 134 deps = [ |
| 135 ":cryptohome_proto", |
| 136 ":power_manager_proto", |
| 137 ":test_support", |
135 "//base:prefs_test_support", | 138 "//base:prefs_test_support", |
136 "//base/test:run_all_unittests", | 139 "//base/test:run_all_unittests", |
137 "//base/test:test_support", | 140 "//base/test:test_support", |
138 "//components/onc", | 141 "//components/onc", |
139 "//components/proxy_config", | 142 "//components/proxy_config", |
140 "//crypto", | 143 "//crypto", |
141 "//crypto:test_support", | 144 "//crypto:test_support", |
142 "//dbus:test_support", | 145 "//dbus:test_support", |
143 "//google_apis", | 146 "//google_apis", |
144 "//net", | 147 "//net", |
145 "//net:test_support", | 148 "//net:test_support", |
146 "//testing/gmock", | 149 "//testing/gmock", |
147 "//testing/gtest", | 150 "//testing/gtest", |
148 "//third_party/icu", | 151 "//third_party/icu", |
149 "//url", | 152 "//url", |
150 ":cryptohome_proto", | |
151 ":power_manager_proto", | |
152 ":test_support", | |
153 ] | 153 ] |
154 sources = gypi_values.chromeos_test_sources | 154 sources = gypi_values.chromeos_test_sources |
155 if (use_allocator != "none") { | 155 if (use_allocator != "none") { |
156 deps += [ "//base/allocator" ] | 156 deps += [ "//base/allocator" ] |
157 } | 157 } |
158 } | 158 } |
159 | 159 |
160 proto_library("power_manager_proto") { | 160 proto_library("power_manager_proto") { |
161 sources = [ | 161 sources = [ |
162 "//third_party/cros_system_api/dbus/power_manager/input_event.proto", | 162 "//third_party/cros_system_api/dbus/power_manager/input_event.proto", |
(...skipping 15 matching lines...) Expand all Loading... |
178 proto_out_dir = "chromeos/dbus/cryptohome" | 178 proto_out_dir = "chromeos/dbus/cryptohome" |
179 } | 179 } |
180 | 180 |
181 proto_library("cryptohome_signkey_proto") { | 181 proto_library("cryptohome_signkey_proto") { |
182 sources = [ | 182 sources = [ |
183 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", | 183 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
184 ] | 184 ] |
185 | 185 |
186 proto_out_dir = "chromeos/cryptohome" | 186 proto_out_dir = "chromeos/cryptohome" |
187 } | 187 } |
OLD | NEW |