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

Side by Side Diff: BUILD.gn

Issue 963093003: Clean up the top level BUILD.gn file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete stray lines Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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
11 import("//build/config/features.gni") 11 import("//build/config/features.gni")
12 import("//build/config/ui.gni") 12 import("//build/config/ui.gni")
13 13
14 if (is_android) { 14 if (is_android) {
15 import("//build/config/android/config.gni") 15 import("//build/config/android/config.gni")
16 } 16 }
17 17
18 declare_args() { 18 declare_args() {
19 # A list of extra dependencies to add to the root target. This allows a 19 # A list of extra dependencies to add to the root target. This allows a
20 # checkout to add additional targets without explicitly changing any checked- 20 # checkout to add additional targets without explicitly changing any checked-
21 # in files. 21 # in files.
22 root_extra_deps = [] 22 root_extra_deps = []
23 } 23 }
24 24
25 group("gyp_all") { 25 # The "gn_all" target should list every root target (target that
26 testonly = true 26 # nothing else depends on) built by both GN and GYP. One should
27 # be able to run 'ninja gn_all gn_only gn_groups' and then run
28 # 'ninja' a second time and have the second ninja invocation do nothing.
29 #
30 # In addition, the "gn_all" target serves to pull in all of the other
31 # build files needed for the build.
32 #
33 # TODO(GYP): make sure that the above is true and there are scripts run
34 # on the bots that enforce this.
27 35
28 # TODO(GYP): This target should describe everything that is built by a GYP
29 # build but not yet by a GN build, i.e., these are the targets that still
30 # need to be ported to GN. Eventually this target should be identical to
31 # gn_all.
32
33 deps = [
34 ":gn_all",
35 # "//chrome/test:chromedriver_unittests", # TODO(GYP)
36 # "//components:components_browsertests", # TODO(GYP)
37 # "//components/nacl:nacl_loader_unittests", # TODO(GYP)
38 # "//google_apis:google_apis_unittests", # TODO(GYP)
39 # "//ui/compositor:compositor_unittests", # TODO(GYP)
40 # "//device:device_unittests", # TODO(GYP)
41 # "//ppapi:ppapi_unittests", # TODO(GYP)
42 # "//remoting:remoting_unittests", # TODO(GYP)
43 ]
44 }
45
46 # The "gn_all" target matches the "gn_all" target in build/all.gyp.
47 # It is not (yet!) the same as building "all".
48 # TODO(GYP): Make it be basically the same as building all, or at least
49 # be sure that we don't want any of the stuff listed in gn_all to
50 # be built by default.
51
52 # In GN, a "group" is a dummy target that just lists other targets.
53 group("gn_all") { 36 group("gn_all") {
54 testonly = true 37 testonly = true
55 38
56 deps = [ 39 deps = [
57 "//base:base_unittests", 40 "//base:base_unittests",
58 "//cc:cc_unittests", 41 "//cc:cc_unittests",
59 "//chrome", 42 "//chrome",
60 "//chrome/test:browser_tests", 43 "//chrome/test:browser_tests",
61 "//chrome/test:interactive_ui_tests", 44 "//chrome/test:interactive_ui_tests",
62 "//chrome/test:sync_integration_tests", 45 "//chrome/test:sync_integration_tests",
63 "//chrome/test:unit_tests", 46 "//chrome/test:unit_tests",
64 "//components:components_unittests", 47 "//components:components_unittests",
65 "//content/shell:content_shell", 48 "//content/shell:content_shell",
66 "//content/test:content_browsertests", 49 "//content/test:content_browsertests",
67 "//content/test:content_perftests", 50 "//content/test:content_perftests",
68 "//content/test:content_unittests", 51 "//content/test:content_unittests",
69 "//crypto:crypto_unittests", 52 "//crypto:crypto_unittests",
70 "//extensions:extensions_browsertests", 53 "//extensions:extensions_browsertests",
71 "//extensions:extensions_unittests", 54 "//extensions:extensions_unittests",
72 "//google_apis/gcm:gcm_unit_tests", 55 "//google_apis/gcm:gcm_unit_tests",
73 "//gpu:gpu_unittests", 56 "//gpu:gpu_unittests",
74 "//ipc:ipc_tests", 57 "//ipc:ipc_tests",
75 "//ipc/mojo:ipc_mojo_unittests", 58 "//ipc/mojo:ipc_mojo_unittests",
76 "//jingle:jingle_unittests", 59 "//jingle:jingle_unittests",
77 "//media:media_unittests", 60 "//media:media_unittests",
78 "//media/mojo", # only builds in mojo
79 "//media/cast:cast_unittests", 61 "//media/cast:cast_unittests",
80 "//mojo", 62 "//mojo",
81 "//mojo/common:mojo_common_unittests", 63 "//mojo/common:mojo_common_unittests",
82
83 # "//mojo/services/html_viewer:tests", # TODO(GYP): Do we need this?
84 "//net:net_unittests", 64 "//net:net_unittests",
85 "//ppapi/examples", # TODO(GYP): What's the GYP equivalent? 65 "//ppapi/examples", # TODO(GYP): What's the GYP equivalent?
86 "//printing:printing_unittests", 66 "//printing:printing_unittests",
87 "//skia:skia_unittests", 67 "//skia:skia_unittests",
88 "//sql:sql_unittests", 68 "//sql:sql_unittests",
89 "//sync:sync_unit_tests", 69 "//sync:sync_unit_tests",
90 70 "//third_party/WebKit/public:blink_tests",
91 # TODO(GYP): the Blink test targets should be public, but
92 # currently aren't. all_blink pulls them in, though.
93 # "//third_party/WebKit/Source/platform:heap_unittests",
94 # "//third_party/WebKit/Source/platform:platform_unittests",
95 # "//third_party/WebKit/Source/wtf:wtf_unittests",
96 "//third_party/WebKit/public:all_blink",
97 "//third_party/cacheinvalidation:cacheinvalidation_unittests", 71 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
98
99 # TODO(GYP): This is needed only w/ cld_version==1. What configs set that?
100 "//third_party/cld",
101 "//third_party/codesighs", 72 "//third_party/codesighs",
102
103 # TODO(GYP): This is needed only w/ use_system_fontconfig==0.
104 # What configs set that?
105 # "//third_party/fontconfig",
106
107 # TODO(GYP): This will be pulled in automatically when enable_webrtc==true.
108 # For now pull it in manually so that it doesn't regress.
109 "//third_party/libsrtp",
110 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", 73 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
111 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", 74 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
112 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", 75 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
113 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", 76 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
114 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", 77 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
115 "//third_party/pdfium/samples:pdfium_test", 78 "//third_party/pdfium/samples:pdfium_test",
116
117 # TODO(GYP): Verify that this is no longer needed.
118 "//third_party/smhasher:pmurhash", 79 "//third_party/smhasher:pmurhash",
119
120 # TODO(GYP): This will be pulled in automatically when enable_webrtc==true.
121 # For now pull it in manually so that it doesn't regress.
122 "//third_party/usrsctp",
123 "//tools/imagediff($host_toolchain)", 80 "//tools/imagediff($host_toolchain)",
124 "//tools/gn", 81 "//tools/gn",
125 "//tools/gn:gn_unittests", 82 "//tools/gn:gn_unittests",
126 "//tools/telemetry:bitmaptools($host_toolchain)", 83 "//tools/telemetry:bitmaptools($host_toolchain)",
127 "//ui/accessibility:accessibility_unittests", 84 "//ui/accessibility:accessibility_unittests",
128 "//ui/app_list:app_list_unittests", 85 "//ui/app_list:app_list_unittests",
129 "//ui/base:ui_base_unittests", 86 "//ui/base:ui_base_unittests",
130 "//ui/display:display_unittests", 87 "//ui/display:display_unittests",
131 "//ui/events:events_unittests", 88 "//ui/events:events_unittests",
132 "//ui/gfx:gfx_unittests", 89 "//ui/gfx:gfx_unittests",
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 ] 249 ]
293 } else if (is_win) { 250 } else if (is_win) {
294 deps += [ "//ui/metro_viewer" ] 251 deps += [ "//ui/metro_viewer" ]
295 deps -= [ 252 deps -= [
296 "//crypto:crypto_unittests", # TODO(GYP) 253 "//crypto:crypto_unittests", # TODO(GYP)
297 "//net:net_unittests", # TODO(GYP) 254 "//net:net_unittests", # TODO(GYP)
298 ] 255 ]
299 } 256 }
300 } 257 }
301 258
259 group("gn_only") {
260 deps = [
261 "//media/mojo",
262 # "//mojo/services/html_viewer:tests", # TODO(GYP): Do we need this?
263 ]
264 }
265
302 if (is_linux) { 266 if (is_linux) {
303 # This group corresponds to the list of tests run on the waterfall for 267 # This group corresponds to the list of tests run on the waterfall for
304 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's 268 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
305 # here to help track GYP -> GN conversion progress. 269 # here to help track GYP -> GN conversion progress.
306 group("linux_default_tests") { 270 group("linux_default_tests") {
307 testonly = true 271 testonly = true
308 deps = [ 272 deps = [
309 # chromedriver_unittests TODO(GYP) 273 # chromedriver_unittests TODO(GYP)
310 # components_browsertests TODO(GYP) 274 # components_browsertests TODO(GYP)
311 # device_unittests TODO(GYP) 275 # device_unittests TODO(GYP)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015 322 "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015
359 "//ui/views:views_unittests", # PASSES (*) 2/25/2015 323 "//ui/views:views_unittests", # PASSES (*) 2/25/2015
360 "//ui/wm:wm_unittests", # PASSES 2/25/2015 324 "//ui/wm:wm_unittests", # PASSES 2/25/2015
361 "//url:url_unittests", # PASSES 2/25/2015 325 "//url:url_unittests", # PASSES 2/25/2015
362 326
363 # Note: 327 # Note:
364 # (*) Fails but failures match GYP build at time of testing. 328 # (*) Fails but failures match GYP build at time of testing.
365 ] 329 ]
366 } 330 }
367 } 331 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698