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

Side by Side Diff: chromeos/BUILD.gn

Issue 1439973004: [PoC] Reformat all BUILD.gn and *.gni files with new gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-sort-deps
Patch Set: Synchronize with new version of gn patch Created 5 years, 1 month 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/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 "//ipc", 38 "//ipc",
37 "//third_party/icu", 39 "//third_party/icu",
38 "//third_party/libxml", 40 "//third_party/libxml",
39 "//third_party/protobuf:protobuf_lite", 41 "//third_party/protobuf:protobuf_lite",
40 "//url", 42 "//url",
41 ":cryptohome_proto",
42 ":power_manager_proto",
43 ] 43 ]
44 sources = gypi_values.chromeos_sources 44 sources = gypi_values.chromeos_sources
45 defines = [ "CHROMEOS_IMPLEMENTATION" ] 45 defines = [ "CHROMEOS_IMPLEMENTATION" ]
46 } 46 }
47 47
48 # TYhis must be a static library instead of a source set because some of the 48 # TYhis must be a static library instead of a source set because some of the
49 # files pull in things with dependencies that aren't linked in all cases. 49 # files pull in things with dependencies that aren't linked in all cases.
50 # 50 #
51 # TODO this should probably be changed such that it links in all cases and 51 # TODO this should probably be changed such that it links in all cases and
52 # can be converted to a source set. 52 # can be converted to a source set.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "network/onc/onc_test_utils.h", 103 "network/onc/onc_test_utils.h",
104 "system/fake_statistics_provider.cc", 104 "system/fake_statistics_provider.cc",
105 "system/fake_statistics_provider.h", 105 "system/fake_statistics_provider.h",
106 ] 106 ]
107 } 107 }
108 108
109 static_library("test_support_without_gmock") { 109 static_library("test_support_without_gmock") {
110 testonly = true 110 testonly = true
111 configs += [ "//build/config/linux:dbus" ] 111 configs += [ "//build/config/linux:dbus" ]
112 deps = [ 112 deps = [
113 "//crypto",
114 ":chromeos", 113 ":chromeos",
115 ":cryptohome_proto", 114 ":cryptohome_proto",
116 ":power_manager_proto", 115 ":power_manager_proto",
116 "//crypto",
117 ] 117 ]
118 sources = [ 118 sources = [
119 "dbus/fake_cros_disks_client.cc", 119 "dbus/fake_cros_disks_client.cc",
120 "dbus/fake_cros_disks_client.h", 120 "dbus/fake_cros_disks_client.h",
121 "dbus/fake_session_manager_client.cc", 121 "dbus/fake_session_manager_client.cc",
122 "dbus/fake_session_manager_client.h", 122 "dbus/fake_session_manager_client.h",
123 "dbus/fake_shill_manager_client.cc", 123 "dbus/fake_shill_manager_client.cc",
124 "dbus/fake_shill_manager_client.h", 124 "dbus/fake_shill_manager_client.h",
125 "dbus/fake_update_engine_client.cc", 125 "dbus/fake_update_engine_client.cc",
126 "dbus/fake_update_engine_client.h", 126 "dbus/fake_update_engine_client.h",
127 ] 127 ]
128 } 128 }
129 129
130 test("chromeos_unittests") { 130 test("chromeos_unittests") {
131 configs += [ 131 configs += [
132 "//build/config/linux:dbus", 132 "//build/config/linux:dbus",
133 "//net/third_party/nss/ssl:ssl_config", 133 "//net/third_party/nss/ssl:ssl_config",
134 ] 134 ]
135 deps = [ 135 deps = [
136 ":cryptohome_proto",
137 ":power_manager_proto",
138 ":test_support",
136 "//base:prefs_test_support", 139 "//base:prefs_test_support",
137 "//base/test:run_all_unittests", 140 "//base/test:run_all_unittests",
138 "//base/test:test_support", 141 "//base/test:test_support",
139 "//components/onc", 142 "//components/onc",
140 "//components/proxy_config", 143 "//components/proxy_config",
141 "//crypto", 144 "//crypto",
142 "//crypto:test_support", 145 "//crypto:test_support",
143 "//dbus:test_support", 146 "//dbus:test_support",
144 "//google_apis", 147 "//google_apis",
145 "//net", 148 "//net",
146 "//net:test_support", 149 "//net:test_support",
147 "//testing/gmock", 150 "//testing/gmock",
148 "//testing/gtest", 151 "//testing/gtest",
149 "//third_party/icu", 152 "//third_party/icu",
150 "//url", 153 "//url",
151 ":cryptohome_proto",
152 ":power_manager_proto",
153 ":test_support",
154 ] 154 ]
155 sources = gypi_values.chromeos_test_sources 155 sources = gypi_values.chromeos_test_sources
156 if (use_allocator != "none") { 156 if (use_allocator != "none") {
157 deps += [ "//base/allocator" ] 157 deps += [ "//base/allocator" ]
158 } 158 }
159 } 159 }
160 160
161 proto_library("power_manager_proto") { 161 proto_library("power_manager_proto") {
162 sources = [ 162 sources = [
163 "//third_party/cros_system_api/dbus/power_manager/input_event.proto", 163 "//third_party/cros_system_api/dbus/power_manager/input_event.proto",
(...skipping 15 matching lines...) Expand all
179 proto_out_dir = "chromeos/dbus/cryptohome" 179 proto_out_dir = "chromeos/dbus/cryptohome"
180 } 180 }
181 181
182 proto_library("cryptohome_signkey_proto") { 182 proto_library("cryptohome_signkey_proto") {
183 sources = [ 183 sources = [
184 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto", 184 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto",
185 ] 185 ]
186 186
187 proto_out_dir = "chromeos/cryptohome" 187 proto_out_dir = "chromeos/cryptohome"
188 } 188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698