Use 20 renderer services on Android.
[chromium-blink-merge.git] / BUILD.gn
blob123e929aa6cbafefeb505e835c6a1aec1198e917
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)",
22     "//cc",
23     "//chrome/browser/devtools",
24     "//chrome/browser/ui/views",
25     "//chrome/common",
26     "//chrome/plugin",
27     "//chrome/renderer",
28     "//chrome/service",
29     "//chrome/utility",
30     "//components:all_components",
31     "//content",
32     "//crypto",
33     "//extensions/common/api:extensions_api",
34     "//device/usb",
35     "//gin",
36     "//gpu",
37     "//google_apis",
38     "//ipc",
39     "//mojo",
40     "//mojo/common",
41     "//mojo/environment:chromium",
42     "//mojo/service_manager",
43     "//mojo/system",
44     "//net",
45     "//pdf",
46     "//ppapi:ppapi_c",
47     "//printing",
48     "//sandbox",
49     "//sdch",
50     "//skia",
51     "//sql",
52     "//third_party/WebKit/public:all_blink",
53     "//third_party/angle:translator",
54     "//third_party/brotli",
55     "//third_party/cacheinvalidation",
56     "//third_party/cld",
57     "//third_party/cld_2",
58     "//third_party/ffmpeg",
59     "//third_party/flac",
60     "//third_party/harfbuzz-ng",
61     "//third_party/hunspell",
62     "//third_party/iccjpeg",
63     "//third_party/icu",
64     "//third_party/leveldatabase",
65     "//third_party/libaddressinput",
66     "//third_party/libphonenumber",
67     "//third_party/libpng",
68     "//third_party/libsrtp",
69     "//third_party/libusb",
70     "//third_party/libwebm",
71     "//third_party/libwebp",
72     "//third_party/libxslt",
73     "//third_party/libyuv",
74     "//third_party/lzma_sdk",
75     "//third_party/mesa",
76     "//third_party/opus",
77     "//third_party/ots",
78     "//third_party/protobuf:protobuf_lite",
79     "//third_party/qcms",
80     "//third_party/re2",
81     "//third_party/smhasher:cityhash",
82     "//third_party/smhasher:murmurhash3",
83     "//third_party/smhasher:pmurhash",
84     "//third_party/snappy",
85     "//third_party/speex",
86     "//third_party/widevine/cdm:version_h",
87     "//third_party/zlib",
88     "//third_party:jpeg",
89     "//tools/gn",
90     "//ui/aura",
91     "//ui/accessibility",
92     "//ui/base",
93     "//ui/events",
94     "//ui/gfx",
95     "//ui/gl",
96     "//ui/keyboard",
97     "//ui/native_theme",
98     "//ui/resources",
99     "//ui/snapshot",
100     "//ui/strings",
101     "//ui/surface",
102     "//ui/web_dialogs",
103     "//ui/wm",
104     "//url",
105     "//v8:v8",
106     "//webkit/browser:storage",
107     "//webkit/child",
108   ]
110   if (!is_win) {
111     deps += [ "//breakpad:symupload" ]
112   }
114   if (is_linux) {
115     deps += [
116       "//dbus",
117       "//third_party/fontconfig",
118       "//third_party/freetype2",
119     ]
120   }
122   if (is_win) {
123     deps += [
124       "//ui/metro_viewer",
125     ]
126   }
128   if (is_win || is_mac || is_chromeos) {
129     # RLZ works on these platforms.
130     deps += [
131       "//rlz:rlz_lib",
132     ]
133   }
135   if (cpu_arch == "x86" || cpu_arch == "x64") {
136     # YASM is x86/x64 only.
137     deps += [ "//third_party/yasm($host_toolchain)" ]
138   }
140   if (is_android) {
141     deps -= [
142       "//cc",
143       "//chrome/browser/devtools",  # Blocked on content.
144       "//chrome/browser/ui/views",  # Blocked on content.
145       "//chrome/common",  # Blocked on content.
146       "//chrome/plugin",  # Blocked on content.
147       "//chrome/renderer",  # Blocked on content.
148       "//chrome/service",  # Blocked on content.
149       "//chrome/utility",  # Blocked on content.
150       "//content",
151       "//extensions/common/api:extensions_api",
152       "//pdf",  # Not compiled on Android in GYP yet, either.
153       "//ppapi:ppapi_c",
154       "//sandbox",
155       "//third_party/libusb",
156       "//ui/keyboard",  # Blocked on content.
158       # Seems to not be compiled on Android. Otherwise it will need a config.h.
159       "//third_party/libxslt",
161       "//tools/gn",
162       "//ui/aura",
164       # Fails on Android for unknown reasons.
165       "//third_party/flac",
166       "//breakpad:symupload",
168       # TODO(brettw) make Blink work on Android.
169       "//third_party/WebKit/public:all_blink",
171       # Not tested on Android yet:
172       "//third_party/cld_2",
173       "//third_party/libaddressinput",
174       "//third_party/ffmpeg",
175       "//ui/web_dialogs",
176       "//ui/wm",
177       "//webkit/browser:storage",
178       "//webkit/child",
179     ]
180   }
182   if (use_ozone) {
183     deps += [
184       "//ui/events/ozone:events_ozone",
185       "//ui/events/ozone:events_ozone_evdev",
186     ]
187   }