[Hotword] Remove optin_client.js now that optin bubble display happens from search...
[chromium-blink-merge.git] / BUILD.gn
blob2300312544f4c1a5a6cb429630d020101fa2ae67
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/snappy",
77     "//third_party/speex",
78     "//third_party/widevine/cdm:version_h",
79     "//third_party/zlib",
80     "//third_party:jpeg",
81     "//tools/gn",
82     "//ui/aura",
83     "//ui/accessibility",
84     "//ui/base",
85     "//ui/events",
86     "//ui/gfx",
87     "//ui/gl",
88     "//ui/native_theme",
89     "//ui/resources",
90     "//ui/snapshot",
91     "//ui/strings",
92     "//ui/surface",
93     "//url",
94     "//v8:v8",
95     "//webkit/browser:storage",
96     "//webkit/child",
97   ]
99   if (!is_win) {
100     deps += [ "//breakpad:symupload" ]
101   }
103   if (is_linux) {
104     deps += [
105       "//dbus",
106       "//third_party/fontconfig",
107       "//third_party/freetype2",
108     ]
109   }
111   if (is_win) {
112     deps += [
113       "//ui/metro_viewer",
114     ]
115   }
117   if (is_win || is_mac || is_chromeos) {
118     # RLZ works on these platforms.
119     deps += [
120       "//rlz:rlz_lib",
121     ]
122   }
124   if (cpu_arch == "x86" || cpu_arch == "x64") {
125     # YASM is x86/x64 only.
126     deps += [ "//third_party/yasm($host_toolchain)" ]
127   }
129   if (is_android) {
130     deps -= [
131       "//cc",
132       "//chrome/browser/devtools",  # Blocked on content.
133       "//chrome/browser/ui/views",  # Blocked on content.
134       "//chrome/common",  # Blocked on content.
135       "//chrome/plugin",  # Blocked on content.
136       "//chrome/renderer",  # Blocked on content.
137       "//chrome/utility",  # Blocked on content.
138       "//content",
139       "//extensions/common/api:extensions_api",
140       "//pdf",  # Not compiled on Android in GYP yet, either.
141       "//ppapi:ppapi_c",
142       "//sandbox",
143       "//third_party/libusb",
145       # Seems to not be compiled on Android. Otherwise it will need a config.h.
146       "//third_party/libxslt",
148       "//tools/gn",
149       "//ui/aura",
151       # Fails on Android for unknown reasons.
152       "//third_party/flac",
153       "//breakpad:symupload",
155       # TODO(brettw) make Blink work on Android.
156       "//third_party/WebKit/public:all_blink",
158       # Not tested on Android yet:
159       "//third_party/ffmpeg",
160       "//webkit/browser:storage",
161       "//webkit/child",
162     ]
163   }
165   if (use_ozone) {
166     deps += [
167       "//ui/events/ozone:events_ozone",
168       "//ui/events/ozone:events_ozone_evdev",
169     ]
170   }