Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [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 | |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 11 | import("//build/config/ui.gni") |
| 12 | |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 13 | # In GN, a "group" is a dummy target that just lists other targets. |
| 14 | group("root") { |
Torne (Richard Coles) | 23730a6 | 2014-03-21 14:25:57 +0000 | [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. |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 18 | deps = [ |
Torne (Richard Coles) | 23730a6 | 2014-03-21 14:25:57 +0000 | [diff] [blame] | 19 | # This is a temporary test of the not-yet-complete NaCl cross-compilation. |
| 20 | #"//base(//build/toolchain/nacl:x86_newlib)", |
| 21 | |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 22 | "//apps/common/api:apps_api", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 23 | "//cc", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 24 | "//chrome:resources", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 25 | "//components/favicon_base", |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 26 | "//components/language_usage_metrics", |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 27 | "//components/metrics", |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 28 | "//components/navigation_metrics", |
| 29 | "//components/onc", |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 30 | "//components/os_crypt", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 31 | "//components/query_parser", |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 32 | "//components/resources:components_resources", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 33 | "//components/startup_metric_utils", |
| 34 | "//components/tracing", |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 35 | "//components/translate:translate_core_browser", |
| 36 | "//components/translate:translate_core_common", |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 37 | "//components/url_matcher", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 38 | "//content", |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 39 | "//crypto", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 40 | "//extensions/common/api:extensions_api", |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 41 | "//device/usb", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 42 | "//gin", |
| 43 | "//gpu", |
| 44 | "//google_apis", |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 45 | "//ipc", |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 46 | "//mojo", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 47 | "//mojo/common", |
| 48 | "//mojo/environment:chromium", |
| 49 | "//mojo/service_manager", |
| 50 | "//mojo/system", |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 51 | "//net", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 52 | "//pdf", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 53 | "//ppapi:ppapi_c", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 54 | "//printing", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 55 | "//sandbox", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 56 | "//sdch", |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 57 | "//skia", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 58 | "//sql", |
| 59 | "//third_party/angle:translator", |
| 60 | "//third_party/brotli", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 61 | "//third_party/flac", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 62 | "//third_party/harfbuzz-ng", |
| 63 | "//third_party/iccjpeg", |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 64 | "//third_party/icu", |
| 65 | "//third_party/leveldatabase", |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 66 | "//third_party/libpng", |
| 67 | "//third_party/libusb", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 68 | "//third_party/libwebm", |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 69 | "//third_party/libwebp", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 70 | "//third_party/libxslt", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 71 | "//third_party/libyuv", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 72 | "//third_party/lzma_sdk", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 73 | "//third_party/mesa", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 74 | "//third_party/ots", |
| 75 | "//third_party/protobuf:protobuf_lite", |
| 76 | "//third_party/qcms", |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 77 | "//third_party/re2", |
| 78 | "//third_party/smhasher:cityhash", |
| 79 | "//third_party/smhasher:murmurhash3", |
| 80 | "//third_party/smhasher:pmurhash", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 81 | "//third_party/speex", |
| 82 | "//third_party/WebKit/public:blink_headers", |
Bo Liu | 5c02ac1 | 2014-05-01 10:37:37 -0700 | [diff] [blame] | 83 | "//third_party/WebKit/Source/wtf", |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 84 | "//third_party/zlib", |
Torne (Richard Coles) | 010d83a | 2014-05-14 12:12:37 +0100 | [diff] [blame] | 85 | "//third_party:jpeg", |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 86 | "//tools/gn", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 87 | "//ui/aura", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 88 | "//ui/accessibility", |
| 89 | "//ui/base", |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 90 | "//ui/events", |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 91 | "//ui/gfx", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 92 | "//ui/gl", |
| 93 | "//ui/native_theme", |
Ben Murdoch | 0529e5d | 2014-04-24 10:50:13 +0100 | [diff] [blame] | 94 | "//ui/resources", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 95 | "//ui/snapshot", |
| 96 | "//ui/strings", |
| 97 | "//ui/surface", |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 98 | "//url", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 99 | "//v8:v8", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 100 | "//webkit/browser:storage", |
| 101 | "//webkit/child", |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 102 | ] |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 103 | |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 104 | if (!is_win) { |
| 105 | # TODO(brettw) re-enable once this compiles reliably. |
| 106 | #deps += [ "//breakpad:symupload" ] |
| 107 | } |
| 108 | |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 109 | if (is_linux) { |
| 110 | deps += [ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 111 | "//dbus", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 112 | "//third_party/fontconfig", |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 113 | "//third_party/freetype2", |
| 114 | ] |
| 115 | } |
| 116 | |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 117 | if (is_win) { |
| 118 | deps += [ |
| 119 | "//ui/metro_viewer", |
| 120 | ] |
| 121 | } |
| 122 | |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 123 | if (is_win || is_mac || is_chromeos) { |
| 124 | # RLZ works on these platforms. |
| 125 | deps += [ |
| 126 | "//rlz:rlz_lib", |
| 127 | ] |
| 128 | } |
| 129 | |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 130 | if (cpu_arch == "x86" || cpu_arch == "x64") { |
| 131 | # YASM is x86/x64 only. |
| 132 | deps += [ "//third_party/yasm($host_toolchain)" ] |
| 133 | } |
| 134 | |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 135 | if (is_android) { |
| 136 | deps -= [ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 137 | "//cc", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 138 | "//content", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 139 | "//extensions/common/api:extensions_api", |
| 140 | "//pdf", # Not compiled on Android in GYP yet, either. |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 141 | "//ppapi:ppapi_c", |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 142 | "//sandbox", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 143 | "//third_party/libusb", |
| 144 | |
| 145 | # Seems to not be compiled on Android. Otherwise it will need a config.h. |
| 146 | "//third_party/libxslt", |
| 147 | |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 148 | "//tools/gn", |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 149 | "//ui/aura", |
| 150 | |
| 151 | # Fails on Android for unknown reasons. |
| 152 | "//third_party/flac", |
| 153 | |
| 154 | # TODO(brettw) make Blink work on Android. |
| 155 | "//third_party/WebKit/public:blink_headers", |
| 156 | "//third_party/WebKit/Source/wtf", |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 157 | |
| 158 | # Not tested on Android yet: |
| 159 | "//webkit/browser:storage", |
| 160 | "//webkit/child", |
Ben Murdoch | a02191e | 2014-04-16 11:17:03 +0100 | [diff] [blame] | 161 | ] |
| 162 | } |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame^] | 163 | |
| 164 | if (use_ozone) { |
| 165 | deps += [ |
| 166 | "//ui/events/ozone:events_ozone", |
| 167 | "//ui/events/ozone:events_ozone_evdev", |
| 168 | ] |
| 169 | } |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 170 | } |