forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpu.gni
36 lines (29 loc) · 1.15 KB
/
gpu.gni
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
# Copyright 2013 The Flutter 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("$flutter_root/shell/config.gni")
template("shell_gpu_configuration") {
assert(defined(invoker.enable_software),
"Caller must declare if the Software backend must be enabled.")
assert(defined(invoker.enable_vulkan),
"Caller must declare if the Vulkan backend must be enabled.")
assert(defined(invoker.enable_gl),
"Caller must declare if the Open GL backend must be enabled.")
assert(defined(invoker.enable_metal),
"Caller must declare if the Metal backend must be enabled.")
group(target_name) {
public_deps = []
if (invoker.enable_software) {
public_deps += [ "$flutter_root/shell/gpu:gpu_surface_software" ]
}
if (invoker.enable_gl) {
public_deps += [ "$flutter_root/shell/gpu:gpu_surface_gl" ]
}
if (invoker.enable_vulkan) {
public_deps += [ "$flutter_root/shell/gpu:gpu_surface_vulkan" ]
}
if (invoker.enable_metal) {
public_deps += [ "$flutter_root/shell/gpu:gpu_surface_metal" ]
}
}
}