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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 "//third_party/icu", | 32 "//third_party/icu", |
33 "//third_party/libxml", | 33 "//third_party/libxml", |
34 "//third_party/protobuf:protobuf_lite", | 34 "//third_party/protobuf:protobuf_lite", |
35 "//ui/accelerometer", | 35 "//ui/accelerometer", |
36 "//url", | 36 "//url", |
37 ":cryptohome_proto", | 37 ":cryptohome_proto", |
38 ":power_manager_proto" | 38 ":power_manager_proto" |
39 ] | 39 ] |
40 sources = gypi_values.chromeos_sources | 40 sources = gypi_values.chromeos_sources |
41 defines = [ "CHROMEOS_IMPLEMENTATION" ] | 41 defines = [ "CHROMEOS_IMPLEMENTATION" ] |
42 if (use_x11) { | |
43 configs += [ "//build/config/linux:x11" ] | |
44 deps += [ "//ui/gfx/x" ] | |
45 sources -= [ | |
46 "ime/ime_keyboard_ozone.cc", | |
47 "ime/ime_keyboard_ozone.h", | |
48 ] | |
49 } else { | |
50 sources -= [ | |
51 "ime/ime_keyboard_x11.cc", | |
52 "ime/ime_keyboard_x11.h", | |
53 ] | |
54 } | |
55 } | 42 } |
56 | 43 |
57 static_library("test_support") { | 44 static_library("test_support") { |
58 testonly = true | 45 testonly = true |
59 configs += [ | 46 configs += [ |
60 "//build/config/linux:dbus", | 47 "//build/config/linux:dbus", |
61 ] | 48 ] |
62 deps = [ | 49 deps = [ |
63 "//testing/gmock", | 50 "//testing/gmock", |
64 ":chromeos", | 51 ":chromeos", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 "dbus/fake_cros_disks_client.cc", | 112 "dbus/fake_cros_disks_client.cc", |
126 "dbus/fake_cros_disks_client.h", | 113 "dbus/fake_cros_disks_client.h", |
127 "dbus/fake_power_manager_client.cc", | 114 "dbus/fake_power_manager_client.cc", |
128 "dbus/fake_power_manager_client.h", | 115 "dbus/fake_power_manager_client.h", |
129 "dbus/fake_session_manager_client.cc", | 116 "dbus/fake_session_manager_client.cc", |
130 "dbus/fake_session_manager_client.h", | 117 "dbus/fake_session_manager_client.h", |
131 "dbus/fake_shill_manager_client.cc", | 118 "dbus/fake_shill_manager_client.cc", |
132 "dbus/fake_shill_manager_client.h", | 119 "dbus/fake_shill_manager_client.h", |
133 "dbus/fake_update_engine_client.cc", | 120 "dbus/fake_update_engine_client.cc", |
134 "dbus/fake_update_engine_client.h", | 121 "dbus/fake_update_engine_client.h", |
135 "ime/fake_input_method_delegate.cc", | |
136 "ime/fake_input_method_delegate.h", | |
137 ] | 122 ] |
138 } | 123 } |
139 | 124 |
140 test("chromeos_unittests") { | 125 test("chromeos_unittests") { |
141 configs += [ | 126 configs += [ |
142 "//build/config/linux:dbus", | 127 "//build/config/linux:dbus", |
143 "//net/third_party/nss/ssl:ssl_config", | 128 "//net/third_party/nss/ssl:ssl_config", |
144 ] | 129 ] |
145 deps = [ | 130 deps = [ |
146 "//base/test:run_all_unittests", | 131 "//base/test:run_all_unittests", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 proto_out_dir = "chromeos/dbus/cryptohome" | 180 proto_out_dir = "chromeos/dbus/cryptohome" |
196 } | 181 } |
197 | 182 |
198 proto_library("cryptohome_signkey_proto") { | 183 proto_library("cryptohome_signkey_proto") { |
199 sources = [ | 184 sources = [ |
200 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", | 185 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", |
201 ] | 186 ] |
202 | 187 |
203 proto_out_dir = "chromeos/cryptohome" | 188 proto_out_dir = "chromeos/cryptohome" |
204 } | 189 } |
OLD | NEW |