BUILD.gn 5.93 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This is the root build file for GN. GN will start processing by loading this
# file, and recursively load all dependencies until all dependencies are either
# resolved or known not to exist (which will cause the build to fail). So if
# you add a new build file, there must be some path of dependencies from this
# file to your new one or GN won't know about it.

11 12
import("//build/config/ui.gni")

13 14
# In GN, a "group" is a dummy target that just lists other targets.
group("root") {
15 16 17
  # This should not be linked into production and depends on test targets.
  testonly = true

18 19 20
  # Note that some dependencies are commented out. These are things that are
  # currently written but not hooked up to the build yet. They may need to be
  # completed or possibly just tested and then re-enabled.
21
  deps = [
22
    "//apps",
23
    "//ash",
24
    "//cc",
25
    "//cc/blink",
26 27
    "//chrome/browser",
    "//chrome/browser/devtools",
28
    "//chrome/common",
29 30 31
    "//chrome/plugin",
    "//chrome/renderer",
    "//chrome/utility",
32
    "//components:all_components",
33
    "//content",
34 35
    "//content/shell:content_shell",
    "//content/test:test_support",
36
    "//crypto",
37 38
    "//device/bluetooth",
    "//device/nfc",
39 40
    "//extensions/browser",
    "//extensions/common",
41
    "//extensions/common/api",
42
    "//extensions/renderer",
43 44 45
    "//gin",
    "//gpu",
    "//google_apis",
46
    "//google_apis/gcm",
47
    "//ipc",
48
    "//ipc/mojo",
49
    "//jingle:notifier",
50
    "//media",
51
    "//media/blink",
52
    "//media/cast",
53
    "//media/mojo",
54
    "//mojo",
55
    "//net",
56
    "//pdf",
57
    "//ppapi:ppapi_c",
58
    "//printing",
59
    "//remoting/client/plugin",
60
    "//sandbox",
61
    "//sdch",
62
    "//skia",
63
    "//storage/browser",
64
    "//sql",
65
    "//sync",
66
    "//third_party/WebKit/public:all_blink",
67 68
    "//third_party/angle:translator",
    "//third_party/brotli",
69 70 71
    "//third_party/cacheinvalidation",
    "//third_party/cld",
    "//third_party/cld_2",
72
    "//third_party/ffmpeg",
73
    "//third_party/flac",
74
    "//third_party/harfbuzz-ng",
75
    "//third_party/hunspell",
76
    "//third_party/iccjpeg",
77 78
    "//third_party/icu",
    "//third_party/leveldatabase",
79
    "//third_party/libphonenumber",
80
    "//third_party/libjingle",
81
    "//third_party/libpng",
82
    "//third_party/libsrtp",
83
    "//third_party/libusb",
84
    "//third_party/libwebm",
85
    "//third_party/libwebp",
86
    "//third_party/libxslt",
87
    "//third_party/libvpx",
88
    "//third_party/libyuv",
89
    "//third_party/lzma_sdk",
90
    "//third_party/mesa",
91
    "//third_party/opus",
92 93 94
    "//third_party/ots",
    "//third_party/protobuf:protobuf_lite",
    "//third_party/qcms",
95 96 97 98
    "//third_party/re2",
    "//third_party/smhasher:cityhash",
    "//third_party/smhasher:murmurhash3",
    "//third_party/smhasher:pmurhash",
99
    "//third_party/snappy",
100
    "//third_party/speex",
101
    "//third_party/usrsctp",
102
    "//third_party/widevine/cdm:version_h",
103
    "//third_party/webrtc",
104
    "//third_party/zlib",
105
    "//third_party:jpeg",
106
    "//tools/gn",
107
    "//tools/imagediff($host_toolchain)",
108
    "//ui/accessibility",
109
    "//ui/app_list",
110
    "//ui/aura",
111
    "//ui/base",
112
    "//ui/display",
113
    "//ui/events",
114
    "//ui/gfx",
115
    "//ui/gl",
116
    "//ui/keyboard",
117
    "//ui/native_theme",
118
    "//ui/resources",
119 120 121
    "//ui/snapshot",
    "//ui/strings",
    "//ui/surface",
122 123 124
    "//ui/views",
    "//ui/views/controls/webview",
    "//ui/web_dialogs",
125
    "//url",
126
    "//v8:v8",
127
  ]
128

129
  if (!is_win) {
130
    deps += [ "//breakpad:symupload" ]
131 132
  }

133 134
  if (is_linux) {
    deps += [
135
      "//dbus",
136
      "//third_party/fontconfig",
137 138 139 140
      "//third_party/freetype2",
    ]
  }

141 142 143 144
  if (use_x11) {
    deps += [ "//tools/xdisplaycheck" ]
  }

145 146 147 148
  if (use_aura) {
    deps += [ "//ui/wm" ]
  }

149 150 151 152 153 154
  if (is_win) {
    deps += [
      "//ui/metro_viewer",
    ]
  }

155 156 157 158 159 160 161
  if (is_win || is_mac || is_chromeos) {
    # RLZ works on these platforms.
    deps += [
      "//rlz:rlz_lib",
    ]
  }

162 163 164 165 166
  if (cpu_arch == "x86" || cpu_arch == "x64") {
    # YASM is x86/x64 only.
    deps += [ "//third_party/yasm($host_toolchain)" ]
  }

167
  if (is_android) {
168
    deps += [
169 170
      "//third_party/openmax_dl/dl",
      "//content/shell/android:content_shell_apk",
171 172 173 174 175 176
      "//ui/android:ui_java",
      "//third_party/android_tools:android_gcm_java",
      "//third_party/android_tools:uiautomator_java",
      "//third_party/android_tools:android_support_v13_java",
      "//third_party/android_tools:android_support_v7_appcompat_java",
      "//third_party/android_tools:android_support_v7_mediarouter_java",
177
      "//third_party/eyesfree:eyesfree_java",
178 179
    ]

180
    deps -= [
181
      "//apps",  # Needs testing.
182 183 184 185 186 187 188
      "//chrome/browser",
      "//chrome/browser/devtools",
      "//chrome/common",
      "//chrome/plugin",
      "//chrome/renderer",
      "//chrome/utility",
      "//content/shell:content_shell",
189 190
      "//extensions/browser",
      "//extensions/common",
191
      "//extensions/common/api",
192
      "//extensions/renderer",
193
      "//pdf",  # Not compiled on Android in GYP yet, either.
194
      "//ppapi:ppapi_c",
195
      "//third_party/libusb",
196
      "//ui/keyboard",  # Blocked on content.
197 198 199 200

      # Seems to not be compiled on Android. Otherwise it will need a config.h.
      "//third_party/libxslt",

201 202
      # Not relevant to Android.
      "//ash",
203
      "//tools/gn",
204
      "//ui/aura",
205 206 207
      "//ui/display",
      "//ui/views",
      "//ui/views/controls/webview",
208 209 210

      # Fails on Android for unknown reasons.
      "//third_party/flac",
211
      "//breakpad:symupload",
212

213
      # Not tested on Android yet:
214
      "//google_apis/gcm",
215 216
      "//remoting/client/plugin",
      "//storage/browser",
217
      "//third_party/cld_2",
218
      "//third_party/ffmpeg",
219
      "//ui/app_list",
220
      "//ui/web_dialogs",
221 222
    ]
  }
223 224 225

  if (use_ozone) {
    deps += [
226 227
      "//ui/ozone",
      "//ui/ozone/demo",
228 229
    ]
  }
230

231 232 233 234 235 236 237
  # Non-mobile builds.
  if (!is_android && !is_ios) {
    deps += [
      "//device/usb",
    ]
  }
}