BUILD.gn 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. source_set("native") {
  5. output_name = "egl_main_native"
  6. sources = [
  7. "egl_native.cc",
  8. "main.cc",
  9. ]
  10. defines = [
  11. "GLES2_CONFORM_SUPPORT_ONLY",
  12. "GTF_GLES20",
  13. "EGLAPI=",
  14. "EGLAPIENTRY=",
  15. ]
  16. deps = [
  17. ":windowless",
  18. "//base",
  19. "//gpu/gles2_conform_support/egl",
  20. "//ui/gl",
  21. ]
  22. if (is_linux || is_chromeos) {
  23. sources += [
  24. "egl_native_aura.cc",
  25. "egl_native_x11.cc",
  26. ]
  27. }
  28. if (is_win) {
  29. sources += [ "egl_native_win.cc" ]
  30. }
  31. }
  32. source_set("windowless") {
  33. output_name = "egl_main_windowless"
  34. sources = [
  35. "egl_native.cc",
  36. "egl_native_windowless.cc",
  37. "main.cc",
  38. ]
  39. defines = [
  40. "GLES2_CONFORM_SUPPORT_ONLY",
  41. "GTF_GLES20",
  42. "EGLAPI=",
  43. "EGLAPIENTRY=",
  44. ]
  45. deps = [
  46. "//base",
  47. "//gpu/gles2_conform_support/egl",
  48. "//ui/gl",
  49. ]
  50. }