xref: /aosp_15_r20/external/skia/modules/bentleyottmann/BUILD.gn (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Copyright 2023 Google LLC.
2
3import("../../gn/skia.gni")
4import("bentleyottmann.gni")
5
6declare_args() {
7  skia_enable_bentleyottmann = true
8}
9
10if (skia_enable_bentleyottmann) {
11  config("public_config") {
12    include_dirs = [ "include" ]
13  }
14
15  skia_component("bentleyottmann") {
16    import("bentleyottmann.gni")
17    public_configs = [ ":public_config" ]
18    public = bentleyottmann_public
19    sources = bentleyottmann_sources
20    deps = [ "../..:skia" ]
21  }
22
23  if (skia_enable_tools) {
24    skia_source_set("tests") {
25      testonly = true
26      sources = bentleyottmann_tests
27      deps = [
28        ":bentleyottmann",
29        "../..:skia",
30        "../..:test",
31      ]
32    }
33  }
34}
35