chromium/third_party/blink/renderer/bindings/modules/v8/BUILD.gn

# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//third_party/blink/renderer/bindings/generated_in_modules.gni")
import("//third_party/blink/renderer/modules/modules.gni")

visibility = [ "//third_party/blink/renderer/*" ]

blink_modules_sources("v8") {
  visibility = []
  visibility = [ "//third_party/blink/renderer/modules" ]

  sources =
      generated_async_iterator_sources_in_modules +
      generated_callback_function_sources_in_modules +
      generated_callback_interface_sources_in_modules +
      generated_dictionary_sources_in_modules +
      generated_enumeration_sources_in_modules +
      generated_interface_sources_in_modules +
      generated_interface_extra_sources_in_modules +
      generated_namespace_sources_in_modules +
      generated_observable_array_sources_in_modules +
      generated_sync_iterator_sources_in_modules +
      generated_typedef_sources_in_modules + generated_union_sources_in_modules

  deps = [
    ":generated",
    "//third_party/blink/renderer/platform",
    "//v8",
  ]
}

source_set("testing") {
  testonly = true

  visibility = []
  visibility = [ "//third_party/blink/renderer/modules/*" ]

  configs += [
    "//third_party/blink/renderer:config",
    "//third_party/blink/renderer:inside_blink",
  ]

  sources = generated_dictionary_sources_for_testing_in_modules +
            generated_enumeration_sources_for_testing_in_modules +
            generated_interface_sources_for_testing_in_modules +
            generated_interface_extra_sources_for_testing_in_modules

  deps = [
    ":generated",
    "//third_party/blink/renderer/core",
    "//third_party/blink/renderer/modules",
    "//third_party/blink/renderer/platform",
    "//v8",
  ]
}

group("generated") {
  visibility = []
  visibility = [
    "//third_party/blink/renderer/bindings/modules/v8/*",
    "//third_party/blink/renderer/modules/*",
  ]

  public_deps =
      [ "//third_party/blink/renderer/bindings:generate_bindings_all" ]
}