1# Copyright 2019 Google LLC 2# 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6declare_args() { 7 skia_enable_particles = true 8} 9 10import("../../gn/skia.gni") 11 12config("public_config") { 13 if (skia_enable_particles) { 14 include_dirs = [ "include" ] 15 } 16} 17 18static_library("particles") { 19 if (skia_enable_particles) { 20 import("particles.gni") 21 public_configs = [ ":public_config" ] 22 include_dirs = [ "../../tools/timer" ] 23 if (use_oh_skia) { 24 deps = [ "../..:skia_canvaskit" ] 25 } else { 26 deps = [ 27 "../..:skia", 28 "../skresources", 29 ] 30 } 31 sources = skia_particle_sources 32 configs += [ 33 "../../:skia_private", 34 "../../:our_vulkan_headers", 35 "../../:skia_wno", 36 ] 37 } 38} 39