blob: 3a3cfa18b019075dbb53e4189271acd347e7c9e2 [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 Osmaneec1e9e2019-04-10 16:22:15 -04007 skia_enable_particles = !(is_win && is_component_build)
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
Kevin Lubick269fe892019-03-06 09:32:55 -050027 sources += [ "../../src/utils/SkTextUtils.cpp" ]
Brian Osman7c979f52019-02-12 13:27:51 -050028 configs += [ "../../:skia_private" ]
29 }
30}