This is jamesr@ code I am landing.
[chromium-blink-merge.git] / BUILD.gn
blob301cf6152e8ca9a8cab4e0c1e2c087eeeb8e3d5f
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     "//crypto",
35     "//device/bluetooth",
36     "//device/nfc",
37     "//device/usb",
38     "//extensions/common/api",
39     "//gin",
40     "//gpu",
41     "//google_apis",
42     "//google_apis/gcm",
43     "//ipc",
44     "//media",
45     "//mojo",
46     "//mojo/common",
47     "//mojo/environment:chromium",
48     "//mojo/service_manager",
49     "//mojo/system",
50     "//net",
51     "//pdf",
52     "//ppapi:ppapi_c",
53     "//printing",
54     "//sandbox",
55     "//sdch",
56     "//skia",
57     "//sql",
58     "//third_party/WebKit/public:all_blink",
59     "//third_party/angle:translator",
60     "//third_party/brotli",
61     "//third_party/cacheinvalidation",
62     "//third_party/cld",
63     "//third_party/cld_2",
64     "//third_party/ffmpeg",
65     "//third_party/flac",
66     "//third_party/harfbuzz-ng",
67     "//third_party/hunspell",
68     "//third_party/iccjpeg",
69     "//third_party/icu",
70     "//third_party/leveldatabase",
71     "//third_party/libaddressinput",
72     "//third_party/libphonenumber",
73     "//third_party/libpng",
74     "//third_party/libsrtp",
75     "//third_party/libusb",
76     "//third_party/libwebm",
77     "//third_party/libwebp",
78     "//third_party/libxslt",
79     "//third_party/libyuv",
80     "//third_party/lzma_sdk",
81     "//third_party/mesa",
82     "//third_party/opus",
83     "//third_party/ots",
84     "//third_party/protobuf:protobuf_lite",
85     "//third_party/qcms",
86     "//third_party/re2",
87     "//third_party/smhasher:cityhash",
88     "//third_party/smhasher:murmurhash3",
89     "//third_party/smhasher:pmurhash",
90     "//third_party/snappy",
91     "//third_party/speex",
92     "//third_party/widevine/cdm:version_h",
93     "//third_party/zlib",
94     "//third_party:jpeg",
95     "//tools/gn",
96     "//ui/aura",
97     "//ui/accessibility",
98     "//ui/base",
99     "//ui/display",
100     "//ui/events",
101     "//ui/gfx",
102     "//ui/gl",
103     "//ui/keyboard",
104     "//ui/native_theme",
105     "//ui/resources",
106     "//ui/snapshot",
107     "//ui/strings",
108     "//ui/surface",
109     "//ui/views",
110     "//ui/views/controls/webview",
111     "//ui/web_dialogs",
112     "//ui/wm",
113     "//url",
114     "//v8:v8",
115     "//webkit/browser:storage",
116     "//webkit/child",
117   ]
119   if (!is_win) {
120     deps += [ "//breakpad:symupload" ]
121   }
123   if (is_linux) {
124     deps += [
125       "//dbus",
126       "//third_party/fontconfig",
127       "//third_party/freetype2",
128     ]
129   }
131   if (is_win) {
132     deps += [
133       "//ui/metro_viewer",
134     ]
135   }
137   if (is_win || is_mac || is_chromeos) {
138     # RLZ works on these platforms.
139     deps += [
140       "//rlz:rlz_lib",
141     ]
142   }
144   if (cpu_arch == "x86" || cpu_arch == "x64") {
145     # YASM is x86/x64 only.
146     deps += [ "//third_party/yasm($host_toolchain)" ]
147   }
149   if (is_android) {
150     deps += [
151       "//ui/android:ui_java"
152     ]
154     deps -= [
155       "//cc",
156       "//chrome/browser",  # Blocked on content.
157       "//chrome/browser/devtools",  # Blocked on content.
158       "//chrome/browser/ui",  # Blocked on content.
159       "//chrome/browser/ui/views",  # Blocked on content.
160       "//chrome/common",  # Blocked on content.
161       "//chrome/plugin",  # Blocked on content.
162       "//chrome/renderer",  # Blocked on content.
163       "//chrome/service",  # Blocked on content.
164       "//chrome/utility",  # Blocked on content.
165       "//content",
166       "//extensions/common/api",
167       "//pdf",  # Not compiled on Android in GYP yet, either.
168       "//ppapi:ppapi_c",
169       "//sandbox",
170       "//third_party/libusb",
171       "//ui/keyboard",  # Blocked on content.
173       # Seems to not be compiled on Android. Otherwise it will need a config.h.
174       "//third_party/libxslt",
176       # Not relevant to Android.
177       "//ash",
178       "//tools/gn",
179       "//ui/aura",
180       "//ui/display",
181       "//ui/views",
182       "//ui/views/controls/webview",
184       # Fails on Android for unknown reasons.
185       "//third_party/flac",
186       "//breakpad:symupload",
188       # TODO(brettw) make Blink work on Android.
189       "//third_party/WebKit/public:all_blink",
191       # Not tested on Android yet:
192       "//google_apis/gcm",
193       "//third_party/cld_2",
194       "//third_party/libaddressinput",
195       "//third_party/ffmpeg",
196       "//ui/web_dialogs",
197       "//ui/wm",
198       "//webkit/browser:storage",
199       "//webkit/child",
200     ]
201   }
203   if (use_ozone) {
204     deps += [
205       "//ui/events/ozone:events_ozone",
206       "//ui/events/ozone:events_ozone_evdev",
207     ]
208   }