Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame^] | 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 | |
| 6 | declare_args() { |
| 7 | skia_enable_particles = true |
| 8 | } |
| 9 | |
| 10 | import("../../gn/skia.gni") |
| 11 | |
| 12 | config("public_config") { |
| 13 | if (skia_enable_particles) { |
| 14 | include_dirs = [ "include" ] |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | source_set("particles") { |
| 19 | if (skia_enable_particles) { |
| 20 | testonly = true |
| 21 | import("particles.gni") |
| 22 | public_configs = [ ":public_config" ] |
| 23 | deps = [ |
| 24 | "../..:skia", |
| 25 | "../..:tool_utils", |
| 26 | ] |
| 27 | sources = skia_particle_sources |
| 28 | configs += [ "../../:skia_private" ] |
| 29 | } |
| 30 | } |