cd28fa6f6b
Previously, doing an official build of Skia with Vulkan and particles enabled would succeed in compiling all of skia.lib, then fail to find Vulkan headers for two particle .cpp files (that reach GrVkVulkan.h via SkSL headers). Bug: skia:10469 Change-Id: Ia5bdb7df25e7259e43cef3e6ff9719a8c8452022 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301002 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
34 lines
676 B
Plaintext
34 lines
676 B
Plaintext
# Copyright 2019 Google LLC
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
skia_enable_particles = true
|
|
}
|
|
|
|
import("../../gn/skia.gni")
|
|
|
|
config("public_config") {
|
|
if (skia_enable_particles) {
|
|
include_dirs = [ "include" ]
|
|
}
|
|
}
|
|
|
|
static_library("particles") {
|
|
if (skia_enable_particles) {
|
|
import("particles.gni")
|
|
public_configs = [ ":public_config" ]
|
|
include_dirs = [ "../../tools/timer" ]
|
|
deps = [
|
|
"../..:skia",
|
|
"../skresources",
|
|
]
|
|
sources = skia_particle_sources
|
|
configs += [
|
|
"../../:skia_private",
|
|
"../../:our_vulkan_headers",
|
|
]
|
|
}
|
|
}
|