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 if (use_x11) { | 41 if (use_x11) { |
43 configs += [ "//build/config/linux:x11" ] | 42 configs += [ "//build/config/linux:x11" ] |
44 deps += [ "//ui/gfx/x" ] | 43 deps += [ "//ui/gfx/x" ] |
45 sources -= [ | 44 sources -= [ |
46 "ime/ime_keyboard_ozone.cc", | 45 "ime/ime_keyboard_ozone.cc", |
47 "ime/ime_keyboard_ozone.h", | 46 "ime/ime_keyboard_ozone.h", |
48 ] | 47 ] |
49 } else { | 48 } else { |
50 sources -= [ | 49 sources -= [ |
51 "ime/ime_keyboard_x11.cc", | 50 "ime/ime_keyboard_x11.cc", |
52 "ime/ime_keyboard_x11.h", | 51 "ime/ime_keyboard_x11.h", |
53 ] | 52 ] |
54 } | 53 } |
55 } | 54 } |
56 | 55 |
57 static_library("test_support") { | 56 static_library("test_support") { |
58 testonly = true | 57 testonly = true |
59 configs += [ | 58 configs += [ "//build/config/linux:dbus" ] |
60 "//build/config/linux:dbus", | |
61 ] | |
62 deps = [ | 59 deps = [ |
63 "//testing/gmock", | 60 "//testing/gmock", |
64 ":chromeos", | 61 ":chromeos", |
65 ":cryptohome_proto", | 62 ":cryptohome_proto", |
66 ":power_manager_proto", | 63 ":power_manager_proto", |
67 ":test_support_without_gmock", | 64 ":test_support_without_gmock", |
68 ] | 65 ] |
69 sources = [ | 66 sources = [ |
70 "attestation/mock_attestation_flow.cc", | 67 "attestation/mock_attestation_flow.cc", |
71 "attestation/mock_attestation_flow.h", | 68 "attestation/mock_attestation_flow.h", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 "network/mock_managed_network_configuration_handler.h", | 104 "network/mock_managed_network_configuration_handler.h", |
108 "network/onc/onc_test_utils.cc", | 105 "network/onc/onc_test_utils.cc", |
109 "network/onc/onc_test_utils.h", | 106 "network/onc/onc_test_utils.h", |
110 "system/fake_statistics_provider.cc", | 107 "system/fake_statistics_provider.cc", |
111 "system/fake_statistics_provider.h", | 108 "system/fake_statistics_provider.h", |
112 ] | 109 ] |
113 } | 110 } |
114 | 111 |
115 static_library("test_support_without_gmock") { | 112 static_library("test_support_without_gmock") { |
116 testonly = true | 113 testonly = true |
117 configs += [ | 114 configs += [ "//build/config/linux:dbus" ] |
118 "//build/config/linux:dbus", | |
119 ] | |
120 deps = [ | 115 deps = [ |
121 "//crypto", | 116 "//crypto", |
122 ":chromeos", | 117 ":chromeos", |
123 ":cryptohome_proto", | 118 ":cryptohome_proto", |
124 ":power_manager_proto", | 119 ":power_manager_proto", |
125 ] | 120 ] |
126 sources = [ | 121 sources = [ |
127 "dbus/fake_cros_disks_client.cc", | 122 "dbus/fake_cros_disks_client.cc", |
128 "dbus/fake_cros_disks_client.h", | 123 "dbus/fake_cros_disks_client.h", |
129 "dbus/fake_power_manager_client.cc", | 124 "dbus/fake_power_manager_client.cc", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ":test_support", | 158 ":test_support", |
164 ] | 159 ] |
165 sources = gypi_values.chromeos_test_sources | 160 sources = gypi_values.chromeos_test_sources |
166 if (use_allocator != "none") { | 161 if (use_allocator != "none") { |
167 deps += [ "//base/allocator" ] | 162 deps += [ "//base/allocator" ] |
168 } | 163 } |
169 if (use_x11) { | 164 if (use_x11) { |
170 deps += [ "//ui/gfx/x" ] | 165 deps += [ "//ui/gfx/x" ] |
171 } | 166 } |
172 if (use_ozone) { | 167 if (use_ozone) { |
173 sources -= [ | 168 sources -= [ "ime/ime_keyboard_x11_unittest.cc" ] |
174 "ime/ime_keyboard_x11_unittest.cc", | |
175 ] | |
176 } | 169 } |
177 } | 170 } |
178 | 171 |
179 proto_library("power_manager_proto") { | 172 proto_library("power_manager_proto") { |
180 sources = [ | 173 sources = [ |
181 "//third_party/cros_system_api/dbus/power_manager/input_event.proto", | 174 "//third_party/cros_system_api/dbus/power_manager/input_event.proto", |
182 "//third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.
proto", | 175 "//third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.
proto", |
183 "//third_party/cros_system_api/dbus/power_manager/policy.proto", | 176 "//third_party/cros_system_api/dbus/power_manager/policy.proto", |
184 "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.pr
oto", | 177 "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.pr
oto", |
185 "//third_party/cros_system_api/dbus/power_manager/suspend.proto", | 178 "//third_party/cros_system_api/dbus/power_manager/suspend.proto", |
(...skipping 11 matching lines...) Expand all Loading... |
197 proto_out_dir = "chromeos/dbus/cryptohome" | 190 proto_out_dir = "chromeos/dbus/cryptohome" |
198 } | 191 } |
199 | 192 |
200 proto_library("cryptohome_signkey_proto") { | 193 proto_library("cryptohome_signkey_proto") { |
201 sources = [ | 194 sources = [ |
202 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", | 195 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
203 ] | 196 ] |
204 | 197 |
205 proto_out_dir = "chromeos/cryptohome" | 198 proto_out_dir = "chromeos/cryptohome" |
206 } | 199 } |
OLD | NEW |