BUILD.gn 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 2014 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//skia/features.gni")
  5. source_set("skia_bindings") {
  6. sources = [
  7. "gl_bindings_skia_cmd_buffer.cc",
  8. "gl_bindings_skia_cmd_buffer.h",
  9. "gles2_implementation_with_grcontext_support.cc",
  10. "gles2_implementation_with_grcontext_support.h",
  11. "grcontext_for_gles2_interface.cc",
  12. "grcontext_for_gles2_interface.h",
  13. ]
  14. deps = [
  15. "//base",
  16. "//gpu/command_buffer/client:gles2_implementation",
  17. "//gpu/command_buffer/client:gles2_interface",
  18. "//gpu/ipc/common:interfaces",
  19. "//skia",
  20. ]
  21. if (skia_use_dawn) {
  22. sources += [
  23. "grcontext_for_webgpu_interface.cc",
  24. "grcontext_for_webgpu_interface.h",
  25. ]
  26. deps += [
  27. "//gpu/command_buffer/client:webgpu_interface",
  28. "//third_party/dawn/src/dawn:cpp",
  29. "//third_party/dawn/src/dawn:proc",
  30. "//third_party/dawn/src/dawn/native",
  31. ]
  32. }
  33. }