David Worsham 220a831028
Move fuchsia/scenic integration behind #define (#19003)
Additionally create "_next" permutations for all of the test binaries
on Fuchsia, in order to test both code-paths.

Using the #define follow-up CLs can also create a flutter_runner_next
binary that does not contain any legacy integration code.

BUG: 53847
2020-06-26 14:03:18 -07:00

63 lines
1.8 KiB
Plaintext

# 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/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/shell/gpu:gpu_surface_software" ]
}
if (invoker.enable_gl) {
public_deps += [ "//flutter/shell/gpu:gpu_surface_gl" ]
}
if (invoker.enable_vulkan) {
public_deps += [ "//flutter/shell/gpu:gpu_surface_vulkan" ]
}
if (invoker.enable_metal) {
public_deps += [ "//flutter/shell/gpu:gpu_surface_metal" ]
}
}
if (is_fuchsia) {
legagcy_suffix = "_fuchsia_legacy"
group(target_name + legagcy_suffix) {
public_deps = []
if (invoker.enable_software) {
public_deps +=
[ "//flutter/shell/gpu:gpu_surface_software" + legagcy_suffix ]
}
if (invoker.enable_gl) {
public_deps += [ "//flutter/shell/gpu:gpu_surface_gl" + legagcy_suffix ]
}
if (invoker.enable_vulkan) {
public_deps +=
[ "//flutter/shell/gpu:gpu_surface_vulkan" + legagcy_suffix ]
}
if (invoker.enable_metal) {
public_deps +=
[ "//flutter/shell/gpu:gpu_surface_metal" + legagcy_suffix ]
}
}
}
}