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