blob: be5d969af7c9ab1dfcf69d4e6fb8bc6f7717aaf3 [file] [log] [blame]
# Copyright 2020 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("//third_party/closure_compiler/compile_js.gni")
import("//tools/grit/grit_rule.gni")
source_set("named_message_port_connector") {
sources = [
"named_message_port_connector.cc",
"named_message_port_connector.h",
]
deps = [
"//base",
"//components/cast:export",
"//components/cast/message_port",
]
public_deps = [ ":resources" ]
}
grit("resources") {
source = "named_message_port_connector_resources.grd"
deps = [ ":js_type_check" ]
outputs = [
"grit/named_message_port_connector_resources.h",
"named_message_port_connector_resources.pak",
]
# Allow GRIT to assign IDs using its default set of base IDs.
resource_ids = ""
}
js_binary("js_type_check") {
sources = [ "named_message_port_connector.js" ]
checks_only = true
closure_flags = strict_error_checking_closure_args
}