Whitelist a few more app IDs for the background permission.
[chromium-blink-merge.git] / BUILD.gn
blob920d7dd6a27df9964bb8100fc41e631a7b8bf7b4
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)",
21     "//ash",
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     "//content/shell:content_shell",
35     "//content/test:test_support",
36     "//crypto",
37     "//device/bluetooth",
38     "//device/nfc",
39     "//device/usb",
40     "//extensions/browser",
41     "//extensions/common",
42     "//extensions/common/api",
43     "//extensions/renderer",
44     "//gin",
45     "//gpu",
46     "//google_apis",
47     "//google_apis/gcm",
48     "//ipc",
49     "//media",
50     "//mojo",
51     "//net",
52     "//pdf",
53     "//ppapi:ppapi_c",
54     "//printing",
55     "//sandbox",
56     "//sdch",
57     "//skia",
58     "//sql",
59     "//third_party/WebKit/public:all_blink",
60     "//third_party/angle:translator",
61     "//third_party/brotli",
62     "//third_party/cacheinvalidation",
63     "//third_party/cld",
64     "//third_party/cld_2",
65     "//third_party/ffmpeg",
66     "//third_party/flac",
67     "//third_party/harfbuzz-ng",
68     "//third_party/hunspell",
69     "//third_party/iccjpeg",
70     "//third_party/icu",
71     "//third_party/leveldatabase",
72     "//third_party/libaddressinput",
73     "//third_party/libphonenumber",
74     "//third_party/libpng",
75     "//third_party/libsrtp",
76     "//third_party/libusb",
77     "//third_party/libwebm",
78     "//third_party/libwebp",
79     "//third_party/libxslt",
80     "//third_party/libyuv",
81     "//third_party/lzma_sdk",
82     "//third_party/mesa",
83     "//third_party/opus",
84     "//third_party/ots",
85     "//third_party/protobuf:protobuf_lite",
86     "//third_party/qcms",
87     "//third_party/re2",
88     "//third_party/smhasher:cityhash",
89     "//third_party/smhasher:murmurhash3",
90     "//third_party/smhasher:pmurhash",
91     "//third_party/snappy",
92     "//third_party/speex",
93     "//third_party/widevine/cdm:version_h",
94     "//third_party/zlib",
95     "//third_party:jpeg",
96     "//tools/gn",
97     "//tools/imagediff($host_toolchain)",
98     "//ui/app_list",
99     "//ui/aura",
100     "//ui/accessibility",
101     "//ui/base",
102     "//ui/display",
103     "//ui/events",
104     "//ui/gfx",
105     "//ui/gl",
106     "//ui/keyboard",
107     "//ui/native_theme",
108     "//ui/resources",
109     "//ui/snapshot",
110     "//ui/strings",
111     "//ui/surface",
112     "//ui/views",
113     "//ui/views/controls/webview",
114     "//ui/web_dialogs",
115     "//ui/wm",
116     "//url",
117     "//v8:v8",
118     "//webkit/browser:storage",
119     "//webkit/child",
120   ]
122   if (!is_win) {
123     deps += [ "//breakpad:symupload" ]
124   }
126   if (is_linux) {
127     deps += [
128       "//dbus",
129       "//third_party/fontconfig",
130       "//third_party/freetype2",
131     ]
132   }
134   if (use_x11) {
135     deps += [ "//tools/xdisplaycheck" ]
136   }
138   if (is_win) {
139     deps += [
140       "//ui/metro_viewer",
141     ]
142   }
144   if (is_win || is_mac || is_chromeos) {
145     # RLZ works on these platforms.
146     deps += [
147       "//rlz:rlz_lib",
148     ]
149   }
151   if (cpu_arch == "x86" || cpu_arch == "x64") {
152     # YASM is x86/x64 only.
153     deps += [ "//third_party/yasm($host_toolchain)" ]
154   }
156   if (is_android) {
157     deps += [
158       "//ui/android:ui_java"
159     ]
161     deps -= [
162       "//cc",
163       "//chrome/browser",  # Blocked on content.
164       "//chrome/browser/devtools",  # Blocked on content.
165       "//chrome/browser/ui",  # Blocked on content.
166       "//chrome/browser/ui/views",  # Blocked on content.
167       "//chrome/common",  # Blocked on content.
168       "//chrome/plugin",  # Blocked on content.
169       "//chrome/renderer",  # Blocked on content.
170       "//chrome/service",  # Blocked on content.
171       "//chrome/utility",  # Blocked on content.
172       "//content",
173       "//content/shell:content_shell",  # Blocked on content.
174       "//content/test:test_support",  # Blocked on content.
175       "//extensions/browser",
176       "//extensions/common",
177       "//extensions/common/api",
178       "//extensions/renderer",
179       "//mojo", # Blocked on GN toolchain support: https://codereview.chromium.org/428633006/
180       "//pdf",  # Not compiled on Android in GYP yet, either.
181       "//ppapi:ppapi_c",
182       "//sandbox",
183       "//third_party/libusb",
184       "//ui/keyboard",  # Blocked on content.
186       # Seems to not be compiled on Android. Otherwise it will need a config.h.
187       "//third_party/libxslt",
189       # Not relevant to Android.
190       "//ash",
191       "//tools/gn",
192       "//ui/aura",
193       "//ui/display",
194       "//ui/views",
195       "//ui/views/controls/webview",
197       # Fails on Android for unknown reasons.
198       "//third_party/flac",
199       "//breakpad:symupload",
201       # TODO(brettw) make Blink work on Android.
202       "//third_party/WebKit/public:all_blink",
204       # Not tested on Android yet:
205       "//google_apis/gcm",
206       "//third_party/cld_2",
207       "//third_party/libaddressinput",
208       "//third_party/ffmpeg",
209       "//ui/app_list",
210       "//ui/web_dialogs",
211       "//ui/wm",
212       "//webkit/browser:storage",
213       "//webkit/child",
214     ]
215   }
217   if (use_ozone) {
218     deps += [
219       "//ui/ozone",
220       "//ui/ozone/demo",
221     ]
222   }