Update remaining encrypted media browser tests to use new player app.
[chromium-blink-merge.git] / BUILD.gn
blob565f7b751685e8ba5b1e9e1e2d0c72fc32546e7c
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/libusb",
63     "//third_party/libwebm",
64     "//third_party/libwebp",
65     "//third_party/libxslt",
66     "//third_party/libyuv",
67     "//third_party/lzma_sdk",
68     "//third_party/mesa",
69     "//third_party/ots",
70     "//third_party/protobuf:protobuf_lite",
71     "//third_party/qcms",
72     "//third_party/re2",
73     "//third_party/smhasher:cityhash",
74     "//third_party/smhasher:murmurhash3",
75     "//third_party/smhasher:pmurhash",
76     "//third_party/speex",
77     "//third_party/widevine/cdm:version_h",
78     "//third_party/zlib",
79     "//third_party:jpeg",
80     "//tools/gn",
81     "//ui/aura",
82     "//ui/accessibility",
83     "//ui/base",
84     "//ui/events",
85     "//ui/gfx",
86     "//ui/gl",
87     "//ui/native_theme",
88     "//ui/resources",
89     "//ui/snapshot",
90     "//ui/strings",
91     "//ui/surface",
92     "//url",
93     "//v8:v8",
94     "//webkit/browser:storage",
95     "//webkit/child",
96   ]
98   if (!is_win) {
99     deps += [ "//breakpad:symupload" ]
100   }
102   if (is_linux) {
103     deps += [
104       "//dbus",
105       "//third_party/fontconfig",
106       "//third_party/freetype2",
107     ]
108   }
110   if (is_win) {
111     deps += [
112       "//ui/metro_viewer",
113     ]
114   }
116   if (is_win || is_mac || is_chromeos) {
117     # RLZ works on these platforms.
118     deps += [
119       "//rlz:rlz_lib",
120     ]
121   }
123   if (cpu_arch == "x86" || cpu_arch == "x64") {
124     # YASM is x86/x64 only.
125     deps += [ "//third_party/yasm($host_toolchain)" ]
126   }
128   if (is_android) {
129     deps -= [
130       "//cc",
131       "//chrome/browser/devtools",  # Blocked on content.
132       "//chrome/browser/ui/views",  # Blocked on content.
133       "//chrome/common",  # Blocked on content.
134       "//chrome/plugin",  # Blocked on content.
135       "//chrome/renderer",  # Blocked on content.
136       "//chrome/utility",  # Blocked on content.
137       "//content",
138       "//extensions/common/api:extensions_api",
139       "//pdf",  # Not compiled on Android in GYP yet, either.
140       "//ppapi:ppapi_c",
141       "//sandbox",
142       "//third_party/libusb",
144       # Seems to not be compiled on Android. Otherwise it will need a config.h.
145       "//third_party/libxslt",
147       "//tools/gn",
148       "//ui/aura",
150       # Fails on Android for unknown reasons.
151       "//third_party/flac",
152       "//breakpad:symupload",
154       # TODO(brettw) make Blink work on Android.
155       "//third_party/WebKit/public:all_blink",
157       # Not tested on Android yet:
158       "//third_party/ffmpeg",
159       "//webkit/browser:storage",
160       "//webkit/child",
161     ]
162   }
164   if (use_ozone) {
165     deps += [
166       "//ui/events/ozone:events_ozone",
167       "//ui/events/ozone:events_ozone_evdev",
168     ]
169   }