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_glesv2_impl", srcs = [ "gl2.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 = [ "//common/logging:gfxstream_common_logging", "//guest/GLESv2_enc:gfxstream_guest_glesv2_entries", "//guest/GLESv2_enc:gfxstream_guest_glesv2encoder", "//guest/OpenglSystemCommon:gfxstream_guest_openglsystemcommon", "//guest/egl:gfxstream_guest_egl_headers", "//third_party/opengl:gfxstream_gles_headers", ], ) cc_shared_library( name = "gfxstream_guest_glesv2", dynamic_deps = [ "//guest/OpenglSystemCommon:gfxstream_guest_openglsystemcommon_shared", ], shared_lib_name = "libGLESv2_emulation.so", deps = [ ":gfxstream_guest_glesv2_impl", ], )