load("@rules_cc//cc:defs.bzl", "cc_library", "cc_shared_library") package( default_applicable_licenses = ["//:gfxstream_license"], default_visibility = ["//:gfxstream"], ) cc_library( name = "gfxstream_guest_egl_headers", hdrs = glob([ "**/*.h", "**/*.in", ]), includes = [ ".", ], ) cc_library( name = "gfxstream_guest_egl_impl", srcs = [ "ClientAPIExts.cpp", "egl.cpp", "eglDisplay.cpp", ], linkopts = [ # Search the current directory for this library's shared libs. # Used for the end2end tests which package all of the guest # libraries into a single `testdata` directory for testing. "-Wl,-rpath,'$$ORIGIN'", ], deps = [ ":gfxstream_guest_egl_headers", "//common/base:gfxstream_common_base", "//common/logging:gfxstream_common_logging", "//guest/GLESv1_enc:gfxstream_guest_glesv1encoder", "//guest/GLESv2_enc:gfxstream_guest_glesv2encoder", "//guest/OpenglCodecCommon:gfxstream_guest_openglcodeccommon", "//guest/OpenglSystemCommon:gfxstream_guest_openglsystemcommon", "//guest/android-emu:gfxstream_guest_base", "//guest/qemupipe:gfxstream_guest_qemupipe", "//third_party/android:gfxstream_thirdparty_android_headers", "//third_party/opengl:gfxstream_gles3_headers", "//third_party/opengl:gfxstream_gles_headers", "@drm//:libdrm", "@mesa//:mesa_gfxstream_guest_android", "@mesa//:mesa_gfxstream_guest_platform", ], ) cc_shared_library( name = "gfxstream_guest_egl", dynamic_deps = [ "//guest/OpenglSystemCommon:gfxstream_guest_openglsystemcommon_shared", ], shared_lib_name = "libEGL_emulation.so", deps = [ ":gfxstream_guest_egl_impl", ], )