mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
39 lines
757 B
Plaintext
39 lines
757 B
Plaintext
# Copyright 2016 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("//flutter/shell/config.gni")
|
|
|
|
source_set("gpu") {
|
|
sources = [
|
|
"gpu_rasterizer.cc",
|
|
"gpu_rasterizer.h",
|
|
"gpu_surface_gl.cc",
|
|
"gpu_surface_gl.h",
|
|
]
|
|
|
|
if (shell_enable_vulkan) {
|
|
sources += [
|
|
"gpu_surface_vulkan.cc",
|
|
"gpu_surface_vulkan.h",
|
|
]
|
|
}
|
|
|
|
deps = [
|
|
"//flutter/common",
|
|
"//flutter/flow",
|
|
"//flutter/glue",
|
|
"//flutter/shell/common",
|
|
"//flutter/synchronization",
|
|
"//lib/ftl",
|
|
"//third_party/skia",
|
|
"//third_party/skia:gpu",
|
|
]
|
|
|
|
if (shell_enable_vulkan) {
|
|
deps += [
|
|
"//flutter/vulkan",
|
|
]
|
|
}
|
|
}
|