Home | History | Annotate | Download | only in skshaper
      1 # Copyright 2018 Google Inc.
      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_skshaper = true
      8 }
      9 
     10 config("public_config") {
     11   if (skia_enable_skshaper) {
     12     include_dirs = [ "include" ]
     13   }
     14 }
     15 
     16 source_set("skshaper") {
     17   if (skia_enable_skshaper) {
     18     import("skshaper.gni")
     19     public_configs = [ ":public_config" ]
     20     public = skia_shaper_public
     21     deps = [
     22       "../..:skia",
     23     ]
     24     if (target_cpu == "wasm") {
     25       sources = skia_shaper_primitive_sources
     26     } else {
     27       sources = skia_shaper_harfbuzz_sources
     28       deps += [
     29         "//third_party/harfbuzz",
     30         "//third_party/icu",
     31       ]
     32     }
     33     configs += [ "../../:skia_private" ]
     34   }
     35 }
     36