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