summaryrefslogtreecommitdiff
path: root/chromium/qtwebengine/common/extensions/api/BUILD.gn
blob: 92bcdcd5ae8f9f20762a8340f701416a1bd79094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import("//extensions/buildflags/buildflags.gni")
import("//tools/json_schema_compiler/json_features.gni")
import("//tools/json_schema_compiler/json_schema_api.gni")
import("//qtwebengine/common/extensions/api/schema.gni")

assert(enable_extensions)

################################################################################
# Public Targets

group("api") {
  public_deps = [
    ":generated_api_json_strings",
    ":generated_api_types",
  ]
}

################################################################################
# Private Targets

generated_json_strings("generated_api_json_strings") {
  sources = webengine_extensions_api_schema_files

  bundle_name = "QtWebEngine"
  root_namespace = webengine_extensions_api_root_namespace

  deps = [ "//extensions/common/api" ]

  visibility = [ ":api" ]
}

generated_types("generated_api_types") {
  sources = webengine_extensions_api_schema_files

  root_namespace = webengine_extensions_api_root_namespace

  deps = [ "//extensions/common/api" ]

  visibility = [ ":api" ]
}