Move logic to clear ExtensionAction values to ExtensionActionAPI
[chromium-blink-merge.git] / BUILD.gn
blobb5c99e83ff93df73b12d3ebf8a79ba8ed0149f0a
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 # Android GN build has some bugs: http://crbug.com/405686
14 if (is_android) {
16 group("root") {
17   deps = [
18     "//base",
19   ]
22 } else {
24 # In GN, a "group" is a dummy target that just lists other targets.
25 group("root") {
26   # Note that some dependencies are commented out. These are things that are
27   # currently written but not hooked up to the build yet. They may need to be
28   # completed or possibly just tested and then re-enabled.
29   deps = [
30     "//apps",
31     "//ash",
32     "//cc",
33     "//cc/blink",
34     "//chrome/browser",
35     "//chrome/browser/devtools",
36     "//chrome/browser/ui",
37     "//chrome/browser/ui/views",
38     "//chrome/common",
39     "//chrome/plugin",
40     "//chrome/renderer",
41     "//chrome/service",
42     "//chrome/utility",
43     "//components:all_components",
44     "//content",
45     "//content/shell:content_shell",
46     "//content/test:test_support",
47     "//crypto",
48     "//device/bluetooth",
49     "//device/nfc",
50     "//device/usb",
51     "//extensions/browser",
52     "//extensions/common",
53     "//extensions/common/api",
54     "//extensions/renderer",
55     "//gin",
56     "//gpu",
57     "//google_apis",
58     "//google_apis/gcm",
59     "//ipc",
60     "//ipc/mojo",
61     "//media",
62     "//media/cast",
63     "//mojo",
64     "//net",
65     "//pdf",
66     "//ppapi:ppapi_c",
67     "//printing",
68     "//sandbox",
69     "//sdch",
70     "//skia",
71     "//sql",
72     "//sync",
73     "//third_party/WebKit/public:all_blink",
74     "//third_party/angle:translator",
75     "//third_party/brotli",
76     "//third_party/cacheinvalidation",
77     "//third_party/cld",
78     "//third_party/cld_2",
79     "//third_party/ffmpeg",
80     "//third_party/flac",
81     "//third_party/harfbuzz-ng",
82     "//third_party/hunspell",
83     "//third_party/iccjpeg",
84     "//third_party/icu",
85     "//third_party/leveldatabase",
86     "//third_party/libaddressinput",
87     "//third_party/libphonenumber",
88     "//third_party/libpng",
89     "//third_party/libsrtp",
90     "//third_party/libusb",
91     "//third_party/libwebm",
92     "//third_party/libwebp",
93     "//third_party/libxslt",
94     "//third_party/libyuv",
95     "//third_party/lzma_sdk",
96     "//third_party/mesa",
97     "//third_party/opus",
98     "//third_party/ots",
99     "//third_party/protobuf:protobuf_lite",
100     "//third_party/qcms",
101     "//third_party/re2",
102     "//third_party/smhasher:cityhash",
103     "//third_party/smhasher:murmurhash3",
104     "//third_party/smhasher:pmurhash",
105     "//third_party/snappy",
106     "//third_party/speex",
107     "//third_party/widevine/cdm:version_h",
108     "//third_party/zlib",
109     "//third_party:jpeg",
110     "//tools/gn",
111     "//tools/imagediff($host_toolchain)",
112     "//ui:ui_unittests",
113     "//ui/app_list",
114     "//ui/aura",
115     "//ui/accessibility",
116     "//ui/base",
117     "//ui/display",
118     "//ui/events",
119     "//ui/gfx",
120     "//ui/gl",
121     "//ui/keyboard",
122     "//ui/native_theme",
123     "//ui/resources",
124     "//ui/snapshot",
125     "//ui/strings",
126     "//ui/surface",
127     "//ui/views",
128     "//ui/views/controls/webview",
129     "//ui/web_dialogs",
130     "//ui/wm",
131     "//url",
132     "//v8:v8",
133     "//webkit/browser:storage",
134     "//webkit/child",
135   ]
137   if (!is_win) {
138     deps += [ "//breakpad:symupload" ]
139   }
141   if (is_linux) {
142     deps += [
143       "//dbus",
144       "//third_party/fontconfig",
145       "//third_party/freetype2",
146     ]
147   }
149   if (use_x11) {
150     deps += [ "//tools/xdisplaycheck" ]
151   }
153   if (is_win) {
154     deps += [
155       "//ui/metro_viewer",
156     ]
157   }
159   if (is_win || is_mac || is_chromeos) {
160     # RLZ works on these platforms.
161     deps += [
162       "//rlz:rlz_lib",
163     ]
164   }
166   if (cpu_arch == "x86" || cpu_arch == "x64") {
167     # YASM is x86/x64 only.
168     deps += [ "//third_party/yasm($host_toolchain)" ]
169   }
171   if (is_android) {
172     deps += [
173       "//ui/android:ui_java",
174       "//third_party/guava:guava_javalib",
175       "//third_party/android_tools:android_gcm_java",
176       "//third_party/android_tools:uiautomator_java",
177       "//third_party/android_tools:android_support_v13_java",
178       "//third_party/android_tools:android_support_v7_appcompat_java",
179       "//third_party/android_tools:android_support_v7_mediarouter_java",
180     ]
182     deps -= [
183       "//apps",  # Needs testing.
184       "//cc/blink", # Blocked on blink
185       "//chrome/browser",  # Blocked on content.
186       "//chrome/browser/devtools",  # Blocked on content.
187       "//chrome/browser/ui",  # Blocked on content.
188       "//chrome/browser/ui/views",  # Blocked on content.
189       "//chrome/common",  # Blocked on content.
190       "//chrome/plugin",  # Blocked on content.
191       "//chrome/renderer",  # Blocked on content.
192       "//chrome/service",  # Blocked on content.
193       "//chrome/utility",  # Blocked on content.
194       "//content",
195       "//content/shell:content_shell",  # Blocked on content.
196       "//content/test:test_support",  # Blocked on content.
197       "//extensions/browser",
198       "//extensions/common",
199       "//extensions/common/api",
200       "//extensions/renderer",
201       "//pdf",  # Not compiled on Android in GYP yet, either.
202       "//ppapi:ppapi_c",
203       "//sandbox",
204       "//third_party/libusb",
205       "//ui/keyboard",  # Blocked on content.
207       # Blocked on neon stuff in vp8
208       "//third_party/WebKit/public:all_blink",
210       # Seems to not be compiled on Android. Otherwise it will need a config.h.
211       "//third_party/libxslt",
213       # Not relevant to Android.
214       "//ash",
215       "//tools/gn",
216       "//ui/aura",
217       "//ui/display",
218       "//ui/views",
219       "//ui/views/controls/webview",
221       # Fails on Android for unknown reasons.
222       "//third_party/flac",
223       "//breakpad:symupload",
225       # Not tested on Android yet:
226       "//google_apis/gcm",
227       "//third_party/cld_2",
228       "//third_party/libaddressinput",
229       "//third_party/ffmpeg",
230       "//ui:ui_unittests",
231       "//ui/app_list",
232       "//ui/web_dialogs",
233       "//ui/wm",
234       "//webkit/browser:storage",
235       "//webkit/child",
236     ]
237   }
239   if (use_ozone) {
240     deps += [
241       "//ui/ozone",
242       "//ui/ozone/demo",
243     ]
244   }