Add data reduction proxy UMA for HTTP connect attempts.
[chromium-blink-merge.git] / BUILD.gn
blobe2fdb39d5ee2ec7fa730985c109bf38fbc3b354b
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")
12 if (is_android) {
13   import("//build/config/android/config.gni")
16 declare_args() {
17   # A list of extra dependencies to add to the root target. This allows a
18   # checkout to add additional targets without explicitly changing any checked-
19   # in files.
20   root_extra_deps = []
23 # In GN, a "group" is a dummy target that just lists other targets.
24 group("root") {
25   # This should not be linked into production and depends on test targets.
26   testonly = true
28   # Note that some dependencies are commented out. These are things that are
29   # currently written but not hooked up to the build yet. They may need to be
30   # completed or possibly just tested and then re-enabled.
31   deps = [
32     "//apps",
33     "//ash",
34     "//cc",
35     "//cc/blink",
36     "//chrome/browser",
37     "//chrome/browser/devtools",
38     "//chrome/common",
39     "//chrome/plugin",
40     "//chrome/renderer",
41     "//chrome/utility",
42     "//components:all_components",
43     "//content",
44     "//content/shell:content_shell",
45     "//content/test:test_support",
46     "//crypto",
47     "//device/battery",
48     "//device/bluetooth",
49     "//device/nfc",
50     "//extensions/browser",
51     "//extensions/common",
52     "//extensions/common/api",
53     "//extensions/renderer",
54     "//gin",
55     "//gpu",
56     "//google_apis",
57     "//google_apis/gcm",
58     "//ipc",
59     "//ipc/mojo",
60     "//jingle:notifier",
61     "//media",
62     "//media/blink",
63     "//media/cast",
64     "//media/mojo",
65     "//mojo",
66     "//net",
67     "//pdf",
68     "//ppapi:ppapi_c",
69     "//printing",
70     "//remoting/client/plugin",
71     "//sandbox",
72     "//sdch",
73     "//skia",
74     "//storage/browser",
75     "//sql",
76     "//sync",
77     "//third_party/WebKit/public:all_blink",
78     "//third_party/angle:translator",
79     "//third_party/brotli",
80     "//third_party/cacheinvalidation",
81     "//third_party/cld",
82     "//third_party/cld_2",
83     "//third_party/ffmpeg",
84     "//third_party/flac",
85     "//third_party/harfbuzz-ng",
86     "//third_party/hunspell",
87     "//third_party/iccjpeg",
88     "//third_party/icu",
89     "//third_party/leveldatabase",
90     "//third_party/libphonenumber",
91     "//third_party/libjingle",
92     "//third_party/libpng",
93     "//third_party/libsrtp",
94     "//third_party/libusb",
95     "//third_party/libwebm",
96     "//third_party/libwebp",
97     "//third_party/libxslt",
98     "//third_party/libvpx",
99     "//third_party/libyuv",
100     "//third_party/lzma_sdk",
101     "//third_party/mesa",
102     "//third_party/opus",
103     "//third_party/ots",
104     "//third_party/protobuf:protobuf_lite",
105     "//third_party/qcms",
106     "//third_party/re2",
107     "//third_party/smhasher:cityhash",
108     "//third_party/smhasher:murmurhash3",
109     "//third_party/smhasher:pmurhash",
110     "//third_party/snappy",
111     "//third_party/speex",
112     "//third_party/usrsctp",
113     "//third_party/widevine/cdm:version_h",
114     "//third_party/webrtc",
115     "//third_party/zlib",
116     "//third_party:jpeg",
117     "//tools/gn",
118     "//tools/imagediff($host_toolchain)",
119     "//ui/accessibility",
120     "//ui/app_list",
121     "//ui/aura",
122     "//ui/base",
123     "//ui/display",
124     "//ui/events",
125     "//ui/gfx",
126     "//ui/gl",
127     "//ui/keyboard",
128     "//ui/native_theme",
129     "//ui/resources",
130     "//ui/snapshot",
131     "//ui/strings",
132     "//ui/surface",
133     "//ui/views",
134     "//ui/views/controls/webview",
135     "//ui/web_dialogs",
136     "//url",
137     "//v8:v8",
138   ] + root_extra_deps
140   if (!is_win) {
141     deps += [ "//breakpad:symupload" ]
142   }
144   if (is_linux) {
145     deps += [
146       "//dbus",
147       "//third_party/fontconfig",
148       "//third_party/freetype2",
149     ]
150   }
152   if (use_x11) {
153     deps += [ "//tools/xdisplaycheck" ]
154   }
156   if (use_aura) {
157     deps += [ "//ui/wm" ]
158   }
160   if (is_win) {
161     deps += [
162       "//ui/metro_viewer",
163     ]
164   }
166   if (is_win || is_mac || is_chromeos) {
167     # RLZ works on these platforms.
168     deps += [
169       "//rlz:rlz_lib",
170     ]
171   }
173   if (cpu_arch == "x86" || cpu_arch == "x64") {
174     # YASM is x86/x64 only.
175     deps += [ "//third_party/yasm($host_toolchain)" ]
176   }
178   if (is_android) {
179     deps += [
180       "//base/android/linker:chromium_android_linker",
181       "//build/android/rezip",
182       "//third_party/openmax_dl/dl",
183       "//content/shell/android:content_shell_apk",
184       "//chrome/android:chrome_shell_apk",
185       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
186       "//ui/android:ui_java",
187       "//third_party/android_tools:android_gcm_java",
188       "//third_party/android_tools:uiautomator_java",
189       "//third_party/android_tools:android_support_v13_java",
190       "//third_party/android_tools:android_support_v7_appcompat_java",
191       "//third_party/android_tools:android_support_v7_mediarouter_java",
192       "//third_party/eyesfree:eyesfree_java",
193     ]
195     if (has_chrome_android_internal) {
196       deps += [
197         "//clank",
198       ]
199     }
201     deps -= [
202       "//apps",  # Needs testing.
203       "//chrome/browser",
204       "//chrome/browser/devtools",
205       "//chrome/common",
206       "//chrome/plugin",
207       "//chrome/renderer",
208       "//chrome/utility",
209       "//content/shell:content_shell",
210       "//extensions/browser",
211       "//extensions/common",
212       "//extensions/common/api",
213       "//extensions/renderer",
214       "//pdf",  # Not compiled on Android in GYP yet, either.
215       "//ppapi:ppapi_c",
216       "//third_party/libusb",
217       "//ui/keyboard",  # Blocked on content.
219       # Seems to not be compiled on Android. Otherwise it will need a config.h.
220       "//third_party/libxslt",
222       # Not relevant to Android.
223       "//ash",
224       "//tools/gn",
225       "//ui/aura",
226       "//ui/display",
227       "//ui/views",
228       "//ui/views/controls/webview",
230       # Fails on Android for unknown reasons.
231       "//third_party/flac",
232       "//breakpad:symupload",
234       # Not tested on Android yet:
235       "//google_apis/gcm",
236       "//remoting/client/plugin",
237       "//storage/browser",
238       "//third_party/cld_2",
239       "//third_party/ffmpeg",
240       "//ui/app_list",
241       "//ui/web_dialogs",
242     ]
243   }
245   if (use_ozone) {
246     deps += [
247       "//ui/ozone",
248       "//ui/ozone/demo",
249     ]
250   }
252   # Non-mobile builds.
253   if (!is_android && !is_ios) {
254     deps += [
255       "//device/usb",
256     ]
257   }