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() { |
Brian Osman | c85f8e8 | 2019-04-12 09:45:23 -0400 | [diff] [blame] | 7 | skia_enable_particles = true |
Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | import("../../gn/skia.gni") |
| 11 | |
| 12 | config("public_config") { |
| 13 | if (skia_enable_particles) { |
| 14 | include_dirs = [ "include" ] |
| 15 | } |
| 16 | } |
| 17 | |
Kevin Lubick | 9663484 | 2019-03-05 14:09:24 -0500 | [diff] [blame] | 18 | static_library("particles") { |
Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame] | 19 | if (skia_enable_particles) { |
Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame] | 20 | import("particles.gni") |
| 21 | public_configs = [ ":public_config" ] |
Kevin Lubick | 9663484 | 2019-03-05 14:09:24 -0500 | [diff] [blame] | 22 | include_dirs = [ "../../tools/timer" ] |
Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame] | 23 | deps = [ |
| 24 | "../..:skia", |
Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame] | 25 | ] |
| 26 | sources = skia_particle_sources |
Brian Osman | 7c979f5 | 2019-02-12 13:27:51 -0500 | [diff] [blame] | 27 | configs += [ "../../:skia_private" ] |
| 28 | } |
| 29 | } |