• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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      if (is_ohos) {
33        external_deps = [ "hitrace:hitrace_meter" ]
34        if (!build_ohos_sdk && !is_arkui_x) {
35          external_deps += [ "init:libbegetutil" ]
36          if (defined(defines)) {
37            defines += [ "NOT_BUILD_FOR_OHOS_SDK" ]
38          } else {
39            defines = [ "NOT_BUILD_FOR_OHOS_SDK" ]
40          }
41        }
42      }
43      if (is_arkui_x) {
44          deps += [ "//third_party/bounds_checking_function:libsec_static" ]
45      } else if (is_ohos) {
46        if (is_component_build) {
47          external_deps += [ "bounds_checking_function:libsec_shared" ]
48        } else {
49          external_deps += [ "bounds_checking_function:libsec_static" ]
50        }
51      }
52    }
53  }
54}
55