Rename FLAGS_enable_quic_connection_flow_control to FLAGS_enable_quic_connection_flow...
[chromium-blink-merge.git] / BUILD.gn
blobbcee8e5319885c083907db5be33fcdfa171be763
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     "//apps/common/api:apps_api",
23     "//cc",
24     "//chrome:resources",
25     "//components/favicon_base",
26     "//components/language_usage_metrics",
27     "//components/metrics",
28     "//components/navigation_metrics",
29     "//components/onc",
30     "//components/os_crypt",
31     "//components/query_parser",
32     "//components/resources:components_resources",
33     "//components/startup_metric_utils",
34     "//components/tracing",
35     "//components/translate:translate_core_browser",
36     "//components/translate:translate_core_common",
37     "//components/url_matcher",
38     "//content",
39     "//crypto",
40     "//extensions/common/api:extensions_api",
41     "//device/usb",
42     "//gin",
43     "//gpu",
44     "//google_apis",
45     "//ipc",
46     "//mojo",
47     "//mojo/common",
48     "//mojo/environment:chromium",
49     "//mojo/service_manager",
50     "//mojo/system",
51     "//net",
52     "//pdf",
53     "//ppapi:ppapi_c",
54     "//printing",
55     "//sandbox",
56     "//sdch",
57     "//skia",
58     "//sql",
59     "//third_party/angle:translator",
60     "//third_party/brotli",
61     "//third_party/flac",
62     "//third_party/harfbuzz-ng",
63     "//third_party/iccjpeg",
64     "//third_party/icu",
65     "//third_party/leveldatabase",
66     "//third_party/libpng",
67     "//third_party/libusb",
68     "//third_party/libwebm",
69     "//third_party/libwebp",
70     "//third_party/libxslt",
71     "//third_party/libyuv",
72     "//third_party/lzma_sdk",
73     "//third_party/mesa",
74     "//third_party/ots",
75     "//third_party/protobuf:protobuf_lite",
76     "//third_party/qcms",
77     "//third_party/re2",
78     "//third_party/smhasher:cityhash",
79     "//third_party/smhasher:murmurhash3",
80     "//third_party/smhasher:pmurhash",
81     "//third_party/speex",
82     "//third_party/WebKit/public:blink_headers",
83     "//third_party/WebKit/Source/wtf",
84     "//third_party/zlib",
85     "//third_party:jpeg",
86     "//tools/gn",
87     "//ui/aura",
88     "//ui/accessibility",
89     "//ui/base",
90     "//ui/events",
91     "//ui/gfx",
92     "//ui/gl",
93     "//ui/native_theme",
94     "//ui/resources",
95     "//ui/snapshot",
96     "//ui/strings",
97     "//ui/surface",
98     "//url",
99     "//v8:v8",
100     "//webkit/browser:storage",
101     "//webkit/child",
102   ]
104   if (is_linux) {
105     deps += [
106       "//dbus",
107       "//third_party/fontconfig",
108       "//third_party/freetype2",
109     ]
110   }
112   if (is_win) {
113     deps += [
114       "//ui/metro_viewer",
115     ]
116   }
118   if (is_win || is_mac || is_chromeos) {
119     # RLZ works on these platforms.
120     deps += [
121       "//rlz:rlz_lib",
122     ]
123   }
125   if (cpu_arch == "x86" || cpu_arch == "x64") {
126     # YASM is x86/x64 only.
127     deps += [ "//third_party/yasm($host_toolchain)" ]
128   }
130   if (is_android) {
131     deps -= [
132       "//cc",
133       "//content",
134       "//extensions/common/api:extensions_api",
135       "//pdf",  # Not compiled on Android in GYP yet, either.
136       "//ppapi:ppapi_c",
137       "//sandbox",
138       "//third_party/libusb",
140       # Seems to not be compiled on Android. Otherwise it will need a config.h.
141       "//third_party/libxslt",
143       "//tools/gn",
144       "//ui/aura",
146       # Fails on Android for unknown reasons.
147       "//third_party/flac",
149       # TODO(brettw) make Blink work on Android.
150       "//third_party/WebKit/public:blink_headers",
151       "//third_party/WebKit/Source/wtf",
153       # Not tested on Android yet:
154       "//webkit/browser:storage",
155       "//webkit/child",
156     ]
157   }
159   if (use_ozone) {
160     deps += [
161       "//ui/events/ozone:events_ozone",
162       "//ui/events/ozone:events_ozone_evdev",
163     ]
164   }