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

Side by Side Diff: chrome/browser/chromeos/BUILD.gn

Issue 1208963003: Move GN obj files to target-specific dirs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 5 years, 5 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//chrome/chrome_tests.gni")
7 import("//media/media_options.gni") 8 import("//media/media_options.gni")
8 import("//third_party/protobuf/proto_library.gni") 9 import("//third_party/protobuf/proto_library.gni")
9 10
10 gypi_values = exec_script("//build/gypi_to_gn.py", 11 gypi_values = exec_script("//build/gypi_to_gn.py",
11 [ rebase_path("../../chrome_browser_chromeos.gypi") ], 12 [ rebase_path("../../chrome_browser_chromeos.gypi") ],
12 "scope", 13 "scope",
13 [ "../../chrome_browser_chromeos.gypi" ]) 14 [ "../../chrome_browser_chromeos.gypi" ])
14 15
15 source_set("chromeos") { 16 source_set("chromeos") {
16 assert(enable_extensions, "ChromeOS Chrome has to be built with extensions") 17 assert(enable_extensions, "ChromeOS Chrome has to be built with extensions")
17 18
18 configs += [ 19 configs += [
19 "//build/config/compiler:wexit_time_destructors", 20 "//build/config/compiler:wexit_time_destructors",
20 "//build/config/linux:fontconfig", 21 "//build/config/linux:fontconfig",
21 ] 22 ]
22 23
23 public_deps = [ 24 public_deps = [
24 "//ash/resources", 25 "//ash/resources",
25 "//ash/strings", 26 "//ash/strings",
26 "//chrome/app/resources:platform_locale_settings", 27 "//chrome/app/resources:platform_locale_settings",
27 "//chrome/app/theme:theme_resources", 28 "//chrome/app/theme:theme_resources",
28 "//chrome:extra_resources", 29 "//chrome:extra_resources",
29 "//chrome:resources", 30 "//chrome:resources",
30 "//chrome:strings", 31 "//chrome:strings",
32 "//components/wallpaper",
31 "//content/app/resources", 33 "//content/app/resources",
32 "//ui/chromeos/resources", 34 "//ui/chromeos/resources",
33 "//ui/chromeos/strings", 35 "//ui/chromeos/strings",
34 "//ui/resources", 36 "//ui/resources",
35 "//ui/strings", 37 "//ui/strings",
36 ] 38 ]
37 39
38 deps = [ 40 deps = [
39 # TODO(tbarzic): Cleanup this list. 41 # TODO(tbarzic): Cleanup this list.
42 ":attestation_proto",
43 ":device_policy_proto",
44 ":drive_proto",
40 "//ash", 45 "//ash",
41 "//ash:ash_with_content", 46 "//ash:ash_with_content",
42 "//components/login", 47 "//components/login",
43 "//components/session_manager/core", 48 "//components/session_manager/core",
44 "//components/user_manager", 49 "//components/user_manager",
45 "//components/wallpaper",
46 "//components/wifi_sync", 50 "//components/wifi_sync",
47 "//chrome/browser/devtools", 51 "//chrome/browser/devtools",
48 "//chrome/browser/extensions", 52 "//chrome/browser/extensions",
49 "//chrome/browser/net:encrypted_cert_logger_proto", 53 "//chrome/browser/net:encrypted_cert_logger_proto",
50 "//chrome/browser/safe_browsing:chunk_proto", 54 "//chrome/browser/safe_browsing:chunk_proto",
51 "//chrome/browser/safe_browsing:metadata_proto", 55 "//chrome/browser/safe_browsing:metadata_proto",
52 "//chrome/browser/safe_browsing:report_proto", 56 "//chrome/browser/safe_browsing:report_proto",
53 "//chrome/browser/ssl:cert_logger_proto", 57 "//chrome/browser/ssl:cert_logger_proto",
54 "//chrome/common", 58 "//chrome/common",
55 "//chrome/common/extensions/api", 59 "//chrome/common/extensions/api",
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 "//ui/events/platform", 115 "//ui/events/platform",
112 "//ui/events:dom_keycode_converter", 116 "//ui/events:dom_keycode_converter",
113 "//ui/file_manager", 117 "//ui/file_manager",
114 "//ui/message_center", 118 "//ui/message_center",
115 "//ui/surface", 119 "//ui/surface",
116 "//ui/views", 120 "//ui/views",
117 "//ui/views/controls/webview", 121 "//ui/views/controls/webview",
118 "//ui/web_dialogs", 122 "//ui/web_dialogs",
119 "//url", 123 "//url",
120 "//v8", 124 "//v8",
121 ":attestation_proto",
122 ":device_policy_proto",
123 ":drive_proto",
124 ] 125 ]
125 126
126 defines = [] 127 defines = []
127 128
128 sources = rebase_path(gypi_values.browser_chromeos_sources, ".", "//chrome") + 129 sources = rebase_path(gypi_values.browser_chromeos_sources, ".", "//chrome") +
129 rebase_path(gypi_values.browser_chromeos_extension_sources, 130 rebase_path(gypi_values.browser_chromeos_extension_sources,
130 ".", 131 ".",
131 "//chrome") 132 "//chrome")
132 if (use_x11) { 133 if (use_x11) {
133 configs += [ "//build/config/linux:x11" ] 134 configs += [ "//build/config/linux:x11" ]
(...skipping 19 matching lines...) Expand all
153 154
154 if (use_cras) { 155 if (use_cras) {
155 defines += [ "USE_CRAS" ] 156 defines += [ "USE_CRAS" ]
156 } 157 }
157 158
158 if (ui_compositor_image_transport) { 159 if (ui_compositor_image_transport) {
159 deps += [ "//ui/gl" ] 160 deps += [ "//ui/gl" ]
160 } 161 }
161 } 162 }
162 163
164 source_set("unit_tests") {
165 testonly = true
166
167 sources = rebase_path(
168 chrome_tests_unit_gypi_values.chrome_unit_tests_chromeos_sources,
169 ".",
170 "//chrome")
171
172 public_deps = [
173 ":chromeos",
174 ]
175 deps = [
176 ":attestation_proto",
177 ":device_policy_proto",
178 ":drive_proto",
179 "//ash/resources",
180 "//components/policy",
181 "//components/invalidation/public",
182 "//crypto:platform",
183 "//dbus",
184 "//skia",
185 "//sync",
186 "//testing/gmock",
187 "//testing/gtest",
188 "//third_party/leveldatabase",
189 "//third_party/mojo/src/mojo/public/cpp/system:system",
190 "//ui/chromeos/resources",
191 ]
192 }
193
163 proto_library("drive_proto") { 194 proto_library("drive_proto") {
164 sources = [ 195 sources = [
165 "drive/drive.proto", 196 "drive/drive.proto",
166 ] 197 ]
167 } 198 }
168 199
169 proto_library("device_policy_proto") { 200 proto_library("device_policy_proto") {
170 sources = [ 201 sources = [
171 "policy/proto/chrome_device_policy.proto", 202 "policy/proto/chrome_device_policy.proto",
172 "policy/proto/install_attributes.proto", 203 "policy/proto/install_attributes.proto",
173 ] 204 ]
174 } 205 }
175 206
176 proto_library("attestation_proto") { 207 proto_library("attestation_proto") {
177 sources = [ 208 sources = [
178 "attestation/attestation_key_payload.proto", 209 "attestation/attestation_key_payload.proto",
179 "attestation/attestation_signed_data.proto", 210 "attestation/attestation_signed_data.proto",
180 ] 211 ]
181 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/speech_recognition_browsertest.cc ('k') | chrome/browser/chromeos/drive/change_list_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698