[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 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 |
| 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 |
| 9 | # file to your new one or GN won't know about it. |
| 10 | |
[email protected] | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 11 | import("//build/config/ui.gni") |
| 12 | |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 13 | # In GN, a "group" is a dummy target that just lists other targets. |
| 14 | group("root") { |
[email protected] | dd316f6 | 2014-03-18 20:27:26 | [diff] [blame] | 15 | # Note that some dependencies are commented out. These are things that are |
| 16 | # currently written but not hooked up to the build yet. They may need to be |
| 17 | # completed or possibly just tested and then re-enabled. |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 18 | deps = [ |
[email protected] | dd316f6 | 2014-03-18 20:27:26 | [diff] [blame] | 19 | # This is a temporary test of the not-yet-complete NaCl cross-compilation. |
| 20 | #"//base(//build/toolchain/nacl:x86_newlib)", |
| 21 | |
[email protected] | 30c409f | 2014-04-26 09:56:09 | [diff] [blame] | 22 | "//apps/common/api:apps_api", |
[email protected] | d05751a2 | 2014-05-29 20:54:24 | [diff] [blame] | 23 | "//cc", |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 24 | "//chrome:resources", |
[email protected] | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 25 | "//components/favicon_base", |
[email protected] | 4b6d32d | 2014-04-02 17:08:15 | [diff] [blame] | 26 | "//components/language_usage_metrics", |
[email protected] | 9825cba | 2014-04-28 22:29:40 | [diff] [blame] | 27 | "//components/metrics", |
[email protected] | 4b6d32d | 2014-04-02 17:08:15 | [diff] [blame] | 28 | "//components/navigation_metrics", |
| 29 | "//components/onc", |
[email protected] | 656b6b2 | 2014-04-18 00:34:58 | [diff] [blame] | 30 | "//components/os_crypt", |
[email protected] | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 31 | "//components/query_parser", |
[email protected] | 63b99ff | 2014-04-24 00:37:30 | [diff] [blame] | 32 | "//components/resources:components_resources", |
[email protected] | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 33 | "//components/startup_metric_utils", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 34 | "//components/tracing", |
[email protected] | caf75c68 | 2014-04-28 13:32:42 | [diff] [blame] | 35 | "//components/translate:translate_core_browser", |
| 36 | "//components/translate:translate_core_common", |
[email protected] | 303a7ec | 2014-04-22 15:45:52 | [diff] [blame] | 37 | "//components/url_matcher", |
[email protected] | d38f5be4 | 2014-06-19 16:52:27 | [diff] [blame] | 38 | "//components/user_prefs", |
| 39 | "//components/visitedlink/browser", |
| 40 | "//components/visitedlink/common", |
| 41 | #"//components/visitedlink/renderer", # Blocked on blink |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 42 | "//content", |
[email protected] | 7a7e085 | 2014-04-14 23:25:13 | [diff] [blame] | 43 | "//crypto", |
[email protected] | 543f171c | 2014-06-04 22:00:41 | [diff] [blame] | 44 | "//extensions/common/api:extensions_api", |
[email protected] | 52f5fe7 | 2014-04-03 22:41:47 | [diff] [blame] | 45 | "//device/usb", |
[email protected] | 8f2cee0 | 2014-05-22 23:19:25 | [diff] [blame] | 46 | "//gin", |
[email protected] | d05751a2 | 2014-05-29 20:54:24 | [diff] [blame] | 47 | "//gpu", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 48 | "//google_apis", |
[email protected] | 517d528 | 2014-04-02 17:03:30 | [diff] [blame] | 49 | "//ipc", |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 50 | "//mojo", |
[email protected] | 71c325d | 2014-06-13 23:14:04 | [diff] [blame] | 51 | "//mojo/common", |
| 52 | "//mojo/environment:chromium", |
| 53 | "//mojo/service_manager", |
| 54 | "//mojo/system", |
[email protected] | 4625ade | 2014-04-15 19:26:44 | [diff] [blame] | 55 | "//net", |
[email protected] | 7131920 | 2014-06-05 23:19:28 | [diff] [blame] | 56 | "//pdf", |
[email protected] | 240e303 | 2014-05-27 20:15:20 | [diff] [blame] | 57 | "//ppapi:ppapi_c", |
[email protected] | fc2020f | 2014-06-04 18:09:39 | [diff] [blame] | 58 | "//printing", |
[email protected] | 543f171c | 2014-06-04 22:00:41 | [diff] [blame] | 59 | "//sandbox", |
[email protected] | c7e9f494 | 2014-06-02 17:40:30 | [diff] [blame] | 60 | "//sdch", |
[email protected] | 1b87123d | 2014-04-12 10:37:19 | [diff] [blame] | 61 | "//skia", |
[email protected] | b2b2bf5 | 2014-05-28 20:26:57 | [diff] [blame] | 62 | "//sql", |
[email protected] | 3a98c81 | 2014-05-30 00:52:36 | [diff] [blame] | 63 | "//third_party/angle:translator", |
[email protected] | cceca60d | 2014-05-13 02:23:34 | [diff] [blame] | 64 | "//third_party/brotli", |
[email protected] | 822d467b | 2014-06-19 19:00:43 | [diff] [blame] | 65 | "//third_party/ffmpeg", |
[email protected] | 5c10cca4 | 2014-06-12 19:37:28 | [diff] [blame] | 66 | "//third_party/flac", |
[email protected] | c67679f | 2014-05-21 16:53:19 | [diff] [blame] | 67 | "//third_party/harfbuzz-ng", |
[email protected] | cceca60d | 2014-05-13 02:23:34 | [diff] [blame] | 68 | "//third_party/iccjpeg", |
[email protected] | cb3421f | 2014-04-14 00:42:48 | [diff] [blame] | 69 | "//third_party/icu", |
[email protected] | 1b87123d | 2014-04-12 10:37:19 | [diff] [blame] | 70 | "//third_party/leveldatabase", |
[email protected] | a915508 | 2014-04-06 06:55:08 | [diff] [blame] | 71 | "//third_party/libpng", |
[email protected] | 1d6b606 | 2014-04-08 17:42:14 | [diff] [blame] | 72 | "//third_party/libusb", |
[email protected] | f087aad | 2014-05-16 18:16:13 | [diff] [blame] | 73 | "//third_party/libwebm", |
[email protected] | 4b08b34 | 2014-04-16 03:01:03 | [diff] [blame] | 74 | "//third_party/libwebp", |
[email protected] | d62c51e | 2014-06-12 21:56:11 | [diff] [blame] | 75 | "//third_party/libxslt", |
[email protected] | 543f171c | 2014-06-04 22:00:41 | [diff] [blame] | 76 | "//third_party/libyuv", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 77 | "//third_party/lzma_sdk", |
[email protected] | f1782d9 | 2014-06-03 23:14:20 | [diff] [blame] | 78 | "//third_party/mesa", |
[email protected] | cceca60d | 2014-05-13 02:23:34 | [diff] [blame] | 79 | "//third_party/ots", |
[email protected] | ff6d096 | 2014-05-22 23:21:23 | [diff] [blame] | 80 | "//third_party/protobuf:protobuf_lite", |
[email protected] | cceca60d | 2014-05-13 02:23:34 | [diff] [blame] | 81 | "//third_party/qcms", |
[email protected] | a915508 | 2014-04-06 06:55:08 | [diff] [blame] | 82 | "//third_party/re2", |
[email protected] | 7b31c83 | 2014-04-09 02:08:44 | [diff] [blame] | 83 | "//third_party/smhasher:cityhash", |
| 84 | "//third_party/smhasher:murmurhash3", |
| 85 | "//third_party/smhasher:pmurhash", |
[email protected] | 5c10cca4 | 2014-06-12 19:37:28 | [diff] [blame] | 86 | "//third_party/speex", |
[email protected] | b148451 | 2014-06-19 17:52:42 | [diff] [blame] | 87 | "//third_party/WebKit/public:all_blink", |
[email protected] | a915508 | 2014-04-06 06:55:08 | [diff] [blame] | 88 | "//third_party/zlib", |
[email protected] | 71eb112 | 2014-05-06 04:25:26 | [diff] [blame] | 89 | "//third_party:jpeg", |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 90 | "//tools/gn", |
[email protected] | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 91 | "//ui/aura", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 92 | "//ui/accessibility", |
[email protected] | 52140d88 | 2014-05-30 19:22:40 | [diff] [blame] | 93 | "//ui/base", |
[email protected] | 06d4187 | 2014-04-09 01:18:44 | [diff] [blame] | 94 | "//ui/events", |
[email protected] | 07a8725b | 2014-04-10 21:16:59 | [diff] [blame] | 95 | "//ui/gfx", |
[email protected] | 1ea0175 | 2014-05-23 19:01:46 | [diff] [blame] | 96 | "//ui/gl", |
[email protected] | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 97 | "//ui/native_theme", |
[email protected] | 4c047c0 | 2014-04-21 22:41:19 | [diff] [blame] | 98 | "//ui/resources", |
[email protected] | 52140d88 | 2014-05-30 19:22:40 | [diff] [blame] | 99 | "//ui/snapshot", |
[email protected] | e3d7486 | 2014-05-18 14:12:27 | [diff] [blame] | 100 | "//ui/strings", |
[email protected] | 0311d4c | 2014-05-17 04:55:16 | [diff] [blame] | 101 | "//ui/surface", |
[email protected] | 4b6d32d | 2014-04-02 17:08:15 | [diff] [blame] | 102 | "//url", |
[email protected] | fa5e2bb | 2014-06-02 14:29:09 | [diff] [blame] | 103 | "//v8:v8", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 104 | "//webkit/browser:storage", |
| 105 | "//webkit/child", |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 106 | ] |
[email protected] | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 107 | |
[email protected] | 6fa82cc | 2014-06-18 20:33:07 | [diff] [blame] | 108 | if (!is_win) { |
[email protected] | f8d55d3 | 2014-06-19 20:02:29 | [diff] [blame^] | 109 | deps += [ "//breakpad:symupload" ] |
[email protected] | 6fa82cc | 2014-06-18 20:33:07 | [diff] [blame] | 110 | } |
| 111 | |
[email protected] | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 112 | if (is_linux) { |
| 113 | deps += [ |
[email protected] | 886323c | 2014-06-14 20:34:16 | [diff] [blame] | 114 | "//dbus", |
[email protected] | 8acc5f5 | 2014-05-31 22:16:30 | [diff] [blame] | 115 | "//third_party/fontconfig", |
[email protected] | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 116 | "//third_party/freetype2", |
| 117 | ] |
| 118 | } |
[email protected] | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 119 | |
[email protected] | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 120 | if (is_win) { |
| 121 | deps += [ |
| 122 | "//ui/metro_viewer", |
| 123 | ] |
| 124 | } |
| 125 | |
[email protected] | 2d6893a | 2014-06-02 19:16:36 | [diff] [blame] | 126 | if (is_win || is_mac || is_chromeos) { |
| 127 | # RLZ works on these platforms. |
| 128 | deps += [ |
| 129 | "//rlz:rlz_lib", |
| 130 | ] |
| 131 | } |
| 132 | |
[email protected] | 137dff6d | 2014-06-12 19:35:55 | [diff] [blame] | 133 | if (cpu_arch == "x86" || cpu_arch == "x64") { |
| 134 | # YASM is x86/x64 only. |
| 135 | deps += [ "//third_party/yasm($host_toolchain)" ] |
| 136 | } |
| 137 | |
[email protected] | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 138 | if (is_android) { |
| 139 | deps -= [ |
[email protected] | d05751a2 | 2014-05-29 20:54:24 | [diff] [blame] | 140 | "//cc", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 141 | "//content", |
[email protected] | d38f5be4 | 2014-06-19 16:52:27 | [diff] [blame] | 142 | "//components/user_prefs", # Blocked on content. |
| 143 | "//components/visitedlink/browser", # Blocked on content. |
| 144 | "//components/visitedlink/common", # Blocked on content. |
[email protected] | 543f171c | 2014-06-04 22:00:41 | [diff] [blame] | 145 | "//extensions/common/api:extensions_api", |
[email protected] | 7131920 | 2014-06-05 23:19:28 | [diff] [blame] | 146 | "//pdf", # Not compiled on Android in GYP yet, either. |
[email protected] | 240e303 | 2014-05-27 20:15:20 | [diff] [blame] | 147 | "//ppapi:ppapi_c", |
[email protected] | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 148 | "//sandbox", |
[email protected] | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 149 | "//third_party/libusb", |
[email protected] | d62c51e | 2014-06-12 21:56:11 | [diff] [blame] | 150 | |
| 151 | # Seems to not be compiled on Android. Otherwise it will need a config.h. |
| 152 | "//third_party/libxslt", |
| 153 | |
[email protected] | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 154 | "//tools/gn", |
[email protected] | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 155 | "//ui/aura", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 156 | |
[email protected] | 31e0749c | 2014-06-12 19:55:11 | [diff] [blame] | 157 | # Fails on Android for unknown reasons. |
| 158 | "//third_party/flac", |
[email protected] | f8d55d3 | 2014-06-19 20:02:29 | [diff] [blame^] | 159 | "//breakpad:symupload", |
[email protected] | 31e0749c | 2014-06-12 19:55:11 | [diff] [blame] | 160 | |
[email protected] | effcf41 | 2014-06-10 20:19:27 | [diff] [blame] | 161 | # TODO(brettw) make Blink work on Android. |
[email protected] | b148451 | 2014-06-19 17:52:42 | [diff] [blame] | 162 | "//third_party/WebKit/public:all_blink", |
[email protected] | effcf41 | 2014-06-10 20:19:27 | [diff] [blame] | 163 | |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 164 | # Not tested on Android yet: |
[email protected] | 822d467b | 2014-06-19 19:00:43 | [diff] [blame] | 165 | "//third_party/ffmpeg", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 166 | "//webkit/browser:storage", |
| 167 | "//webkit/child", |
[email protected] | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 168 | ] |
| 169 | } |
[email protected] | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 170 | |
| 171 | if (use_ozone) { |
| 172 | deps += [ |
| 173 | "//ui/events/ozone:events_ozone", |
| 174 | "//ui/events/ozone:events_ozone_evdev", |
| 175 | ] |
| 176 | } |
[email protected] | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 177 | } |