forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
51 lines (40 loc) · 1.08 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2014 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.
import("//sky/engine/bindings/bindings.gni")
declare_args() {
enable_gcm = false
enable_firebase = false
}
group("sky") {
testonly = true
deps = [
"//sky/engine/platform:platform_unittests($host_toolchain)",
"//sky/engine/wtf:unittests($host_toolchain)",
"//sky/packages",
"//sky/shell",
]
if (dart_host_toolchain == host_toolchain) {
deps += [ "//sky/tools/sky_snapshot($dart_host_toolchain)" ]
}
if (is_fnl) {
deps -= [ "//sky/shell" ]
}
if (is_linux || is_android) {
deps += [ "//sky/shell/platform/mojo" ]
}
if (is_android) {
deps += [ "//sky/services/activity" ]
}
if (!is_android) {
deps += [ "//third_party/mesa:osmesa" ]
}
# TODO(mpcomplete): This is temporary until we move GCM and Firebase
# out of the engine repo.
if (enable_firebase) {
deps += [ "//sky/services/firebase" ]
}
if (enable_gcm) {
deps += [ "//third_party/gcm:gcm" ]
}
}