blob: a4b80527c782e8b52ab3bc682add9ef6815a2332 [file] [log] [blame]
Brian Osman7c979f52019-02-12 13:27:51 -05001# 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() {
Brian Osmanc85f8e82019-04-12 09:45:23 -04007 skia_enable_particles = true
Brian Osman7c979f52019-02-12 13:27:51 -05008}
9
10import("../../gn/skia.gni")
11
12config("public_config") {
13 if (skia_enable_particles) {
14 include_dirs = [ "include" ]
15 }
16}
17
Kevin Lubick96634842019-03-05 14:09:24 -050018static_library("particles") {
Brian Osman7c979f52019-02-12 13:27:51 -050019 if (skia_enable_particles) {
Brian Osman7c979f52019-02-12 13:27:51 -050020 import("particles.gni")
21 public_configs = [ ":public_config" ]
Kevin Lubick96634842019-03-05 14:09:24 -050022 include_dirs = [ "../../tools/timer" ]
Brian Osman7c979f52019-02-12 13:27:51 -050023 deps = [
24 "../..:skia",
Brian Osman7c979f52019-02-12 13:27:51 -050025 ]
26 sources = skia_particle_sources
Brian Osman7c979f52019-02-12 13:27:51 -050027 configs += [ "../../:skia_private" ]
28 }
29}