Cleanup: Remove unneeded #include from ui/base/l10n/l10n_util.h.
[chromium-blink-merge.git] / BUILD.gn
blob25797eb83e653cdfe6b81515f0082ea310432d53
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.
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.
11 import("//build/config/ui.gni")
13 # In GN, a "group" is a dummy target that just lists other targets.
14 group("root") {
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.
18   deps = [
19     # This is a temporary test of the not-yet-complete NaCl cross-compilation.
20     #"//base(//build/toolchain/nacl:x86_newlib)",
21     "//ash",
22     "//cc",
23     "//chrome/browser",
24     "//chrome/browser/devtools",
25     "//chrome/browser/ui",
26     "//chrome/browser/ui/views",
27     "//chrome/common",
28     "//chrome/plugin",
29     "//chrome/renderer",
30     "//chrome/service",
31     "//chrome/utility",
32     "//components:all_components",
33     "//content",
34     "//content/shell:content_shell",
35     "//content/test:test_support",
36     "//crypto",
37     "//device/bluetooth",
38     "//device/nfc",
39     "//device/usb",
40     "//extensions/browser",
41     "//extensions/common",
42     "//extensions/common/api",
43     "//extensions/renderer",
44     "//gin",
45     "//gpu",
46     "//google_apis",
47     "//google_apis/gcm",
48     "//ipc",
49     "//ipc/mojo",
50     "//media",
51     "//media/cast",
52     "//mojo",
53     "//net",
54     "//pdf",
55     "//ppapi:ppapi_c",
56     "//printing",
57     "//sandbox",
58     "//sdch",
59     "//skia",
60     "//sql",
61     "//sync",
62     "//third_party/WebKit/public:all_blink",
63     "//third_party/angle:translator",
64     "//third_party/brotli",
65     "//third_party/cacheinvalidation",
66     "//third_party/cld",
67     "//third_party/cld_2",
68     "//third_party/ffmpeg",
69     "//third_party/flac",
70     "//third_party/harfbuzz-ng",
71     "//third_party/hunspell",
72     "//third_party/iccjpeg",
73     "//third_party/icu",
74     "//third_party/leveldatabase",
75     "//third_party/libaddressinput",
76     "//third_party/libphonenumber",
77     "//third_party/libpng",
78     "//third_party/libsrtp",
79     "//third_party/libusb",
80     "//third_party/libwebm",
81     "//third_party/libwebp",
82     "//third_party/libxslt",
83     "//third_party/libyuv",
84     "//third_party/lzma_sdk",
85     "//third_party/mesa",
86     "//third_party/opus",
87     "//third_party/ots",
88     "//third_party/protobuf:protobuf_lite",
89     "//third_party/qcms",
90     "//third_party/re2",
91     "//third_party/smhasher:cityhash",
92     "//third_party/smhasher:murmurhash3",
93     "//third_party/smhasher:pmurhash",
94     "//third_party/snappy",
95     "//third_party/speex",
96     "//third_party/widevine/cdm:version_h",
97     "//third_party/zlib",
98     "//third_party:jpeg",
99     "//tools/gn",
100     "//tools/imagediff($host_toolchain)",
101     "//ui/app_list",
102     "//ui/aura",
103     "//ui/accessibility",
104     "//ui/base",
105     "//ui/display",
106     "//ui/events",
107     "//ui/gfx",
108     "//ui/gl",
109     "//ui/keyboard",
110     "//ui/native_theme",
111     "//ui/resources",
112     "//ui/snapshot",
113     "//ui/strings",
114     "//ui/surface",
115     "//ui/views",
116     "//ui/views/controls/webview",
117     "//ui/web_dialogs",
118     "//ui/wm",
119     "//url",
120     "//v8:v8",
121     "//webkit/browser:storage",
122     "//webkit/child",
123   ]
125   if (!is_win) {
126     deps += [ "//breakpad:symupload" ]
127   }
129   if (is_linux) {
130     deps += [
131       "//dbus",
132       "//third_party/fontconfig",
133       "//third_party/freetype2",
134     ]
135   }
137   if (use_x11) {
138     deps += [ "//tools/xdisplaycheck" ]
139   }
141   if (is_win) {
142     deps += [
143       "//ui/metro_viewer",
144     ]
145   }
147   if (is_win || is_mac || is_chromeos) {
148     # RLZ works on these platforms.
149     deps += [
150       "//rlz:rlz_lib",
151     ]
152   }
154   if (cpu_arch == "x86" || cpu_arch == "x64") {
155     # YASM is x86/x64 only.
156     deps += [ "//third_party/yasm($host_toolchain)" ]
157   }
159   if (is_android) {
160     deps += [
161       "//ui/android:ui_java"
162     ]
164     deps -= [
165       "//cc",
166       "//chrome/browser",  # Blocked on content.
167       "//chrome/browser/devtools",  # Blocked on content.
168       "//chrome/browser/ui",  # Blocked on content.
169       "//chrome/browser/ui/views",  # Blocked on content.
170       "//chrome/common",  # Blocked on content.
171       "//chrome/plugin",  # Blocked on content.
172       "//chrome/renderer",  # Blocked on content.
173       "//chrome/service",  # Blocked on content.
174       "//chrome/utility",  # Blocked on content.
175       "//content",
176       "//content/shell:content_shell",  # Blocked on content.
177       "//content/test:test_support",  # Blocked on content.
178       "//extensions/browser",
179       "//extensions/common",
180       "//extensions/common/api",
181       "//extensions/renderer",
182       "//mojo", # Blocked on GN toolchain support: https://codereview.chromium.org/428633006/
183       "//pdf",  # Not compiled on Android in GYP yet, either.
184       "//ppapi:ppapi_c",
185       "//sandbox",
186       "//third_party/libusb",
187       "//ui/keyboard",  # Blocked on content.
189       # Seems to not be compiled on Android. Otherwise it will need a config.h.
190       "//third_party/libxslt",
192       # Not relevant to Android.
193       "//ash",
194       "//tools/gn",
195       "//ui/aura",
196       "//ui/display",
197       "//ui/views",
198       "//ui/views/controls/webview",
200       # Fails on Android for unknown reasons.
201       "//third_party/flac",
202       "//breakpad:symupload",
204       # TODO(brettw) make Blink work on Android.
205       "//third_party/WebKit/public:all_blink",
207       # Not tested on Android yet:
208       "//google_apis/gcm",
209       "//third_party/cld_2",
210       "//third_party/libaddressinput",
211       "//third_party/ffmpeg",
212       "//ui/app_list",
213       "//ui/web_dialogs",
214       "//ui/wm",
215       "//webkit/browser:storage",
216       "//webkit/child",
217     ]
218   }
220   if (use_ozone) {
221     deps += [
222       "//ui/ozone",
223       "//ui/ozone/demo",
224     ]
225   }