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