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

Side by Side Diff: BUILD.gn

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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
« no previous file with comments | « .gn ('k') | ash/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # This is the root build file for GN. GN will start processing by loading this 5 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either 6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if 7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this 8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it. 9 # file to your new one or GN won't know about it.
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 "//ui/native_theme", 130 "//ui/native_theme",
131 "//ui/resources", 131 "//ui/resources",
132 "//ui/snapshot", 132 "//ui/snapshot",
133 "//ui/strings", 133 "//ui/strings",
134 "//ui/surface", 134 "//ui/surface",
135 "//ui/views", 135 "//ui/views",
136 "//ui/views/controls/webview", 136 "//ui/views/controls/webview",
137 "//ui/web_dialogs", 137 "//ui/web_dialogs",
138 "//url", 138 "//url",
139 "//v8:v8", 139 "//v8:v8",
140 ] + root_extra_deps 140 ]
141 deps += root_extra_deps
141 142
142 if (!is_win) { 143 if (!is_win) {
143 deps += [ "//breakpad:symupload" ] 144 deps += [ "//breakpad:symupload" ]
144 } 145 }
145 146
146 if (is_linux) { 147 if (is_linux) {
147 deps += [ 148 deps += [
148 "//dbus", 149 "//dbus",
149 "//third_party/fontconfig", 150 "//third_party/fontconfig",
150 "//third_party/freetype2", 151 "//third_party/freetype2",
151 ] 152 ]
152 } 153 }
153 154
154 if (use_x11) { 155 if (use_x11) {
155 deps += [ "//tools/xdisplaycheck" ] 156 deps += [ "//tools/xdisplaycheck" ]
156 } 157 }
157 158
158 if (use_aura) { 159 if (use_aura) {
159 deps += [ "//ui/wm" ] 160 deps += [ "//ui/wm" ]
160 } 161 }
161 162
162 if (is_win) { 163 if (is_win) {
163 deps += [ 164 deps += [ "//ui/metro_viewer" ]
164 "//ui/metro_viewer",
165 ]
166 } 165 }
167 166
168 if (is_win || is_mac || is_chromeos) { 167 if (is_win || is_mac || is_chromeos) {
169 # RLZ works on these platforms. 168 # RLZ works on these platforms.
170 deps += [ 169 deps += [ "//rlz:rlz_lib" ]
171 "//rlz:rlz_lib",
172 ]
173 } 170 }
174 171
175 if (cpu_arch == "x86" || cpu_arch == "x64") { 172 if (cpu_arch == "x86" || cpu_arch == "x64") {
176 # YASM is x86/x64 only. 173 # YASM is x86/x64 only.
177 deps += [ "//third_party/yasm($host_toolchain)" ] 174 deps += [ "//third_party/yasm($host_toolchain)" ]
178 } 175 }
179 176
180 if (is_android) { 177 if (is_android) {
181 deps += [ 178 deps += [
182 "//base/android/linker:chromium_android_linker", 179 "//base/android/linker:chromium_android_linker",
183 "//build/android/gyp/test:hello_world", 180 "//build/android/gyp/test:hello_world",
184 "//build/android/rezip", 181 "//build/android/rezip",
185 "//third_party/openmax_dl/dl", 182 "//third_party/openmax_dl/dl",
186 "//content/shell/android:content_shell_apk", 183 "//content/shell/android:content_shell_apk",
187 "//chrome/android:chrome_shell_apk", 184 "//chrome/android:chrome_shell_apk",
188 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_ apk", 185 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_ apk",
189 "//ui/android:ui_java", 186 "//ui/android:ui_java",
190 "//third_party/android_tools:android_gcm_java", 187 "//third_party/android_tools:android_gcm_java",
191 "//third_party/android_tools:uiautomator_java", 188 "//third_party/android_tools:uiautomator_java",
192 "//third_party/android_tools:android_support_v13_java", 189 "//third_party/android_tools:android_support_v13_java",
193 "//third_party/android_tools:android_support_v7_appcompat_java", 190 "//third_party/android_tools:android_support_v7_appcompat_java",
194 "//third_party/android_tools:android_support_v7_mediarouter_java", 191 "//third_party/android_tools:android_support_v7_mediarouter_java",
195 ] 192 ]
196 193
197 if (has_chrome_android_internal) { 194 if (has_chrome_android_internal) {
198 deps += [ 195 deps += [ "//clank" ]
199 "//clank",
200 ]
201 } 196 }
202 197
203 # TODO(GYP): Move the targets in the rest of this block that still 198 # TODO(GYP): Move the targets in the rest of this block that still
204 # need to be made to work in the GN build to the bottom of the file 199 # need to be made to work in the GN build to the bottom of the file
205 # so that all the remaining work is located in one place in the file. 200 # so that all the remaining work is located in one place in the file.
206 # This block should contain only the targets that aren't actually 201 # This block should contain only the targets that aren't actually
207 # needed on Android. 202 # needed on Android.
208 203
209 deps -= [ 204 deps -= [
210 "//apps", # Needs testing. 205 "//apps", # Needs testing.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 } 255 }
261 256
262 # Non-mobile builds. 257 # Non-mobile builds.
263 if (!is_android && !is_ios) { 258 if (!is_android && !is_ios) {
264 deps += [ 259 deps += [
265 "//device/usb", 260 "//device/usb",
266 "//third_party/pdfium/samples", 261 "//third_party/pdfium/samples",
267 ] 262 ]
268 } 263 }
269 264
270 # 265 #
271 # TODO(GYP): Make everything below this work in the GN build. 266 # TODO(GYP): Make everything below this work in the GN build.
272 # 267 #
273 268
274 if (is_mac) { 269 if (is_mac) {
275 # TODO(dpranke): These are as-yet untriaged but need at least the above. 270 # TODO(dpranke): These are as-yet untriaged but need at least the above.
276 deps -= [ 271 deps -= [
277 "//apps", 272 "//apps",
278 "//ash", 273 "//ash",
279 "//chrome/browser", 274 "//chrome/browser",
280 "//chrome/browser/devtools", 275 "//chrome/browser/devtools",
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 "//ui/native_theme", 352 "//ui/native_theme",
358 "//ui/snapshot", 353 "//ui/snapshot",
359 "//ui/surface", 354 "//ui/surface",
360 "//ui/views", 355 "//ui/views",
361 "//ui/views/controls/webview", 356 "//ui/views/controls/webview",
362 "//ui/web_dialogs", 357 "//ui/web_dialogs",
363 "//ui/wm", 358 "//ui/wm",
364 ] 359 ]
365 } 360 }
366 } 361 }
OLDNEW
« no previous file with comments | « .gn ('k') | ash/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698