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