BUILD.gn 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 2015 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("//build/config/ozone.gni")
  5. source_set("egl") {
  6. output_name = "egl_native"
  7. sources = [
  8. "config.cc",
  9. "config.h",
  10. "context.cc",
  11. "context.h",
  12. "display.cc",
  13. "display.h",
  14. "egl.cc",
  15. "surface.cc",
  16. "surface.h",
  17. "test_support.cc",
  18. "test_support.h",
  19. "thread_state.cc",
  20. "thread_state.h",
  21. ]
  22. defines = [
  23. "EGLAPI=",
  24. "EGLAPIENTRY=",
  25. ]
  26. deps = [
  27. "//base",
  28. "//gpu",
  29. "//gpu/command_buffer/client:gles2_c_lib_nocheck",
  30. "//gpu/command_buffer/client:gles2_cmd_helper",
  31. "//gpu/command_buffer/client:gles2_implementation_no_check",
  32. "//gpu/command_buffer/service",
  33. "//gpu/command_buffer/service:gles2",
  34. "//ui/base",
  35. "//ui/gfx",
  36. "//ui/gfx/geometry",
  37. "//ui/gl",
  38. "//ui/gl/init",
  39. ]
  40. if (use_ozone) {
  41. deps += [ "//ui/ozone" ]
  42. }
  43. }