Skip to content

Commit

Permalink
EGL / KHR headers.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 272660620
  • Loading branch information
julienvalentin authored and Copybara-Service committed Oct 4, 2019
1 parent 7db111d commit 97edc33
Show file tree
Hide file tree
Showing 5 changed files with 2,695 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tensorflow_graphics/rendering/opengl/BUILD
Expand Up @@ -34,13 +34,28 @@ py_library(
],
)

cc_library(
name = "EGL_headers",
hdrs = [
"EGL/egl.h",
"EGL/eglext.h",
"EGL/eglplatform.h",
"KHR/khrplatform.h",
],
defines = ["USE_OZONE"],
features = [
"-parse_headers",
],
includes = ["."],
)

cc_library(
name = "egl_offscreen_context",
srcs = ["egl_offscreen_context.cc"],
hdrs = ["egl_offscreen_context.h"],
deps = [
":EGL_headers",
":gl_macros",
"//third_party/GL:EGL_headers",
"//third_party/GL/util:egl_util",
"//third_party/tensorflow/core:lib",
],
Expand All @@ -65,7 +80,7 @@ cc_library(
name = "gl_macros",
hdrs = ["gl_macros.h"],
deps = [
"//third_party/GL:EGL_headers",
":EGL_headers",
"//third_party/GL:GLES3_headers",
"@com_google_absl//absl/strings",
],
Expand Down

0 comments on commit 97edc33

Please sign in to comment.