summaryrefslogtreecommitdiffstats
path: root/extensions/common/api/BUILD.gn
blob: 5f259ecae8aeaede5726a09264fef1fb2f4b1a6c (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
42
43
44
45
46
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/features.gni")
import("//build/json_schema_api.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("schemas.gni")

assert(enable_extensions)

json_schema_api("generated_api") {
  schemas = true
  bundle = true
  bundle_name = ""
}

# GYP version: extensions/common/api/api.gyp:extensions_api_mojom
mojom("mojom") {
  sources = []
  sources = [
    "mime_handler.mojom",
  ]
}

# GYP version: extensions/common/api/api.gyp:extensions_api
group("api") {
  public_deps = [
    ":generated_api",
    ":mojom",
  ]
}

# GYP version: extensions/browser/api/api_registration.gyp:extensions_api_registration
json_schema_api("api_registration") {
  impl_dir = "//extensions/browser/api"
  bundle_registration = true
  bundle_name = ""

  deps = [
    ":api",
    "//device/serial",
    "//extensions/common/api/cast_channel:cast_channel_proto",
    "//skia",
  ]
}