chromium/services/viz/privileged/mojom/BUILD.gn

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

import("//components/viz/common/debugger/viz_debugger.gni")
import("//mojo/public/tools/bindings/mojom.gni")

mojom("mojom") {
  sources = [ "viz_main.mojom" ]

  enabled_features = []
  if (use_viz_debugger) {
    enabled_features += [ "use_viz_debugger" ]
  }

  public_deps = [
    "//components/discardable_memory/public/mojom",
    "//components/viz/service/debugger/mojom",
    "//services/network/public/mojom",
    "//services/viz/privileged/mojom/compositing",
    "//services/viz/privileged/mojom/gl",
    "//services/viz/public/mojom",
    "//ui/gfx/mojom",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "mojom_traits_unittest.cc" ]

  deps = [
    "//base/test:test_support",
    "//components/viz/common:common",
    "//media/capture/mojom:video_capture",
    "//services/service_manager/public/cpp",
    "//services/viz/privileged/mojom/compositing",
    "//testing/gtest",
    "//ui/gfx:test_support",
  ]
}