OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 # In GN, a "group" is a dummy target that just lists other targets. | 23 # In GN, a "group" is a dummy target that just lists other targets. |
24 group("root") { | 24 group("root") { |
25 # This should not be linked into production and depends on test targets. | 25 # This should not be linked into production and depends on test targets. |
26 testonly = true | 26 testonly = true |
27 | 27 |
28 # Note that some dependencies are commented out. These are things that are | 28 # Note that some dependencies are commented out. These are things that are |
29 # currently written but not hooked up to the build yet. They may need to be | 29 # currently written but not hooked up to the build yet. They may need to be |
30 # completed or possibly just tested and then re-enabled. | 30 # completed or possibly just tested and then re-enabled. |
31 deps = [ | 31 deps = [ |
32 "//apps", | 32 "//apps", |
33 "//ash", | 33 "//ash", |
34 "//cc", | 34 "//cc", |
35 "//cc/blink", | 35 "//cc/blink", |
36 "//chrome/browser", | 36 "//chrome/browser", |
37 "//chrome/browser/devtools", | 37 "//chrome/browser/devtools", |
38 "//chrome/common", | 38 "//chrome/common", |
39 "//chrome/plugin", | 39 "//chrome/plugin", |
40 "//chrome/renderer", | 40 "//chrome/renderer", |
41 "//chrome/test", | 41 "//chrome/test", |
42 "//chrome/tools", | 42 "//chrome/tools", |
43 "//chrome/utility", | 43 "//chrome/utility", |
44 "//components:all_components", | 44 "//components:all_components", |
45 "//content", | 45 "//content", |
46 "//content/shell:content_shell", | 46 "//content/shell:content_shell", |
47 "//content/test:test_support", | 47 "//content/test:test_support", |
48 "//crypto", | 48 "//crypto", |
49 "//device/battery", | 49 "//device/battery", |
50 "//device/bluetooth", | 50 "//device/bluetooth", |
51 "//device/nfc", | 51 "//device/nfc", |
52 "//extensions/browser", | 52 "//extensions/browser", |
53 "//extensions/common", | 53 "//extensions/common", |
54 "//extensions/common/api", | 54 "//extensions/common/api", |
55 "//extensions/renderer", | 55 "//extensions/renderer", |
56 "//gin", | 56 "//gin", |
57 "//gpu", | 57 "//gpu", |
58 "//google_apis", | 58 "//google_apis", |
59 "//google_apis/gcm", | 59 "//google_apis/gcm", |
60 "//ipc", | 60 "//ipc", |
61 "//ipc/mojo", | 61 "//ipc/mojo", |
62 "//jingle:notifier", | 62 "//jingle:notifier", |
63 "//media", | 63 "//media", |
64 "//media/blink", | 64 "//media/blink", |
65 "//media/cast", | 65 "//media/cast", |
66 "//media/mojo", | 66 "//media/mojo", |
67 "//mojo", | 67 "//mojo", |
68 "//net", | 68 "//net", |
69 "//pdf", | 69 "//pdf", |
70 "//ppapi:ppapi_c", | 70 "//ppapi:ppapi_c", |
71 "//printing", | 71 "//printing", |
72 "//remoting/client/plugin", | 72 "//remoting/client/plugin", |
73 "//sandbox", | 73 "//sandbox", |
74 "//sdch", | 74 "//sdch", |
75 "//skia", | 75 "//skia", |
76 "//storage/browser", | 76 "//storage/browser", |
77 "//sql", | 77 "//sql", |
78 "//sync", | 78 "//sync", |
79 "//third_party/WebKit/public:all_blink", | 79 "//third_party/WebKit/public:all_blink", |
80 "//third_party/angle:translator", | 80 "//third_party/angle:translator", |
81 "//third_party/brotli", | 81 "//third_party/brotli", |
82 "//third_party/cacheinvalidation", | 82 "//third_party/cacheinvalidation", |
83 "//third_party/cld", | 83 "//third_party/cld", |
84 "//third_party/cld_2", | 84 "//third_party/cld_2", |
85 "//third_party/ffmpeg", | 85 "//third_party/ffmpeg", |
86 "//third_party/flac", | 86 "//third_party/flac", |
87 "//third_party/harfbuzz-ng", | 87 "//third_party/harfbuzz-ng", |
88 "//third_party/hunspell", | 88 "//third_party/hunspell", |
89 "//third_party/iccjpeg", | 89 "//third_party/iccjpeg", |
90 "//third_party/icu", | 90 "//third_party/icu", |
91 "//third_party/leveldatabase", | 91 "//third_party/leveldatabase", |
92 "//third_party/libphonenumber", | 92 "//third_party/libphonenumber", |
93 "//third_party/libjingle", | 93 "//third_party/libjingle", |
94 "//third_party/libpng", | 94 "//third_party/libpng", |
95 "//third_party/libsrtp", | 95 "//third_party/libsrtp", |
96 "//third_party/libusb", | 96 "//third_party/libusb", |
97 "//third_party/libwebm", | 97 "//third_party/libwebm", |
98 "//third_party/libwebp", | 98 "//third_party/libwebp", |
99 "//third_party/libxslt", | 99 "//third_party/libxslt", |
100 "//third_party/libvpx", | 100 "//third_party/libvpx", |
101 "//third_party/libyuv", | 101 "//third_party/libyuv", |
102 "//third_party/lzma_sdk", | 102 "//third_party/lzma_sdk", |
103 "//third_party/mesa", | 103 "//third_party/mesa", |
104 "//third_party/opus", | 104 "//third_party/opus", |
105 "//third_party/ots", | 105 "//third_party/ots", |
106 "//third_party/protobuf:protobuf_lite", | 106 "//third_party/protobuf:protobuf_lite", |
107 "//third_party/qcms", | 107 "//third_party/qcms", |
108 "//third_party/re2", | 108 "//third_party/re2", |
109 "//third_party/smhasher:cityhash", | 109 "//third_party/smhasher:cityhash", |
110 "//third_party/smhasher:murmurhash3", | 110 "//third_party/smhasher:murmurhash3", |
111 "//third_party/smhasher:pmurhash", | 111 "//third_party/smhasher:pmurhash", |
112 "//third_party/snappy", | 112 "//third_party/snappy", |
113 "//third_party/speex", | 113 "//third_party/speex", |
114 "//third_party/usrsctp", | 114 "//third_party/usrsctp", |
115 "//third_party/widevine/cdm:version_h", | 115 "//third_party/widevine/cdm:version_h", |
116 "//third_party/webrtc", | 116 "//third_party/webrtc", |
117 "//third_party/zlib", | 117 "//third_party/zlib", |
118 "//third_party:jpeg", | 118 "//third_party:jpeg", |
119 "//tools/gn", | 119 "//tools/gn", |
120 "//tools/imagediff($host_toolchain)", | 120 "//tools/imagediff($host_toolchain)", |
121 "//ui/accessibility", | 121 "//ui/accessibility", |
122 "//ui/app_list", | 122 "//ui/app_list", |
123 "//ui/aura", | 123 "//ui/aura", |
124 "//ui/base", | 124 "//ui/base", |
125 "//ui/display", | 125 "//ui/display", |
126 "//ui/events", | 126 "//ui/events", |
127 "//ui/gfx", | 127 "//ui/gfx", |
128 "//ui/gl", | 128 "//ui/gl", |
129 "//ui/keyboard", | 129 "//ui/keyboard", |
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 ] + root_extra_deps |
141 | 141 |
142 if (!is_win) { | 142 if (!is_win) { |
143 deps += [ "//breakpad:symupload" ] | 143 deps += [ "//breakpad:symupload" ] |
144 } | 144 } |
145 | 145 |
146 if (is_linux) { | 146 if (is_linux) { |
147 deps += [ | 147 deps += [ |
148 "//dbus", | 148 "//dbus", |
149 "//third_party/fontconfig", | 149 "//third_party/fontconfig", |
150 "//third_party/freetype2", | 150 "//third_party/freetype2", |
151 ] | 151 ] |
152 } | 152 } |
153 | 153 |
154 if (use_x11) { | 154 if (use_x11) { |
155 deps += [ "//tools/xdisplaycheck" ] | 155 deps += [ "//tools/xdisplaycheck" ] |
156 } | 156 } |
157 | 157 |
158 if (use_aura) { | 158 if (use_aura) { |
159 deps += [ "//ui/wm" ] | 159 deps += [ "//ui/wm" ] |
160 } | 160 } |
161 | 161 |
162 if (is_win) { | 162 if (is_win) { |
163 deps += [ | 163 deps += [ "//ui/metro_viewer" ] |
164 "//ui/metro_viewer", | |
165 ] | |
166 } | 164 } |
167 | 165 |
168 if (is_win || is_mac || is_chromeos) { | 166 if (is_win || is_mac || is_chromeos) { |
169 # RLZ works on these platforms. | 167 # RLZ works on these platforms. |
170 deps += [ | 168 deps += [ "//rlz:rlz_lib" ] |
171 "//rlz:rlz_lib", | |
172 ] | |
173 } | 169 } |
174 | 170 |
175 if (cpu_arch == "x86" || cpu_arch == "x64") { | 171 if (cpu_arch == "x86" || cpu_arch == "x64") { |
176 # YASM is x86/x64 only. | 172 # YASM is x86/x64 only. |
177 deps += [ "//third_party/yasm($host_toolchain)" ] | 173 deps += [ "//third_party/yasm($host_toolchain)" ] |
178 } | 174 } |
179 | 175 |
180 if (is_android) { | 176 if (is_android) { |
181 deps += [ | 177 deps += [ |
182 "//base/android/linker:chromium_android_linker", | 178 "//base/android/linker:chromium_android_linker", |
183 "//build/android/gyp/test:hello_world", | 179 "//build/android/gyp/test:hello_world", |
184 "//build/android/rezip", | 180 "//build/android/rezip", |
185 "//third_party/openmax_dl/dl", | 181 "//third_party/openmax_dl/dl", |
186 "//content/shell/android:content_shell_apk", | 182 "//content/shell/android:content_shell_apk", |
187 "//chrome/android:chrome_shell_apk", | 183 "//chrome/android:chrome_shell_apk", |
188 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_
apk", | 184 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_
apk", |
189 "//ui/android:ui_java", | 185 "//ui/android:ui_java", |
190 "//third_party/android_tools:android_gcm_java", | 186 "//third_party/android_tools:android_gcm_java", |
191 "//third_party/android_tools:uiautomator_java", | 187 "//third_party/android_tools:uiautomator_java", |
192 "//third_party/android_tools:android_support_v13_java", | 188 "//third_party/android_tools:android_support_v13_java", |
193 "//third_party/android_tools:android_support_v7_appcompat_java", | 189 "//third_party/android_tools:android_support_v7_appcompat_java", |
194 "//third_party/android_tools:android_support_v7_mediarouter_java", | 190 "//third_party/android_tools:android_support_v7_mediarouter_java", |
195 "//third_party/eyesfree:eyesfree_java", | 191 "//third_party/eyesfree:eyesfree_java", |
196 ] | 192 ] |
197 | 193 |
198 if (has_chrome_android_internal) { | 194 if (has_chrome_android_internal) { |
199 deps += [ | 195 deps += [ "//clank" ] |
200 "//clank", | |
201 ] | |
202 } | 196 } |
203 | 197 |
204 # 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 |
205 # 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 |
206 # 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. |
207 # This block should contain only the targets that aren't actually | 201 # This block should contain only the targets that aren't actually |
208 # needed on Android. | 202 # needed on Android. |
209 | 203 |
210 deps -= [ | 204 deps -= [ |
211 "//apps", # Needs testing. | 205 "//apps", # Needs testing. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 255 } |
262 | 256 |
263 # Non-mobile builds. | 257 # Non-mobile builds. |
264 if (!is_android && !is_ios) { | 258 if (!is_android && !is_ios) { |
265 deps += [ | 259 deps += [ |
266 "//device/usb", | 260 "//device/usb", |
267 "//third_party/pdfium/samples", | 261 "//third_party/pdfium/samples", |
268 ] | 262 ] |
269 } | 263 } |
270 | 264 |
271 # | 265 # |
272 # TODO(GYP): Make everything below this work in the GN build. | 266 # TODO(GYP): Make everything below this work in the GN build. |
273 # | 267 # |
274 | 268 |
275 if (is_mac) { | 269 if (is_mac) { |
276 # 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. |
277 deps -= [ | 271 deps -= [ |
278 "//apps", | 272 "//apps", |
279 "//ash", | 273 "//ash", |
280 "//chrome/browser", | 274 "//chrome/browser", |
281 "//chrome/browser/devtools", | 275 "//chrome/browser/devtools", |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 "//ui/native_theme", | 352 "//ui/native_theme", |
359 "//ui/snapshot", | 353 "//ui/snapshot", |
360 "//ui/surface", | 354 "//ui/surface", |
361 "//ui/views", | 355 "//ui/views", |
362 "//ui/views/controls/webview", | 356 "//ui/views/controls/webview", |
363 "//ui/web_dialogs", | 357 "//ui/web_dialogs", |
364 "//ui/wm", | 358 "//ui/wm", |
365 ] | 359 ] |
366 } | 360 } |
367 } | 361 } |
OLD | NEW |