load("@rules_cc//cc:defs.bzl", "cc_library") load("//:build_variables.bzl", "GFXSTREAM_HOST_COPTS", "GFXSTREAM_HOST_DEFINES") package( default_applicable_licenses = ["//:gfxstream_license"], default_visibility = ["//:gfxstream"], ) cc_library( name = "gfxstream_host_decoder_common", srcs = [ "ChecksumCalculator.cpp", "ChecksumCalculatorThreadInfo.cpp", "glUtils.cpp", ] + select({ "@platforms//os:linux": [ "X11Support.cpp", ], "//conditions:default": [], }), hdrs = glob([ "include/**/*.h", ]), copts = GFXSTREAM_HOST_COPTS, defines = GFXSTREAM_HOST_DEFINES, includes = [ ".", "include", ], deps = [ "//common/base:gfxstream_common_base", "//common/logging:gfxstream_common_logging", "//host:gfxstream_backend_headers", "//host/library:gfxstream_host_library", "//host/tracing:gfxstream_host_tracing", "//third_party/opengl:gfxstream_gles2_headers", "//third_party/opengl:gfxstream_gles3_headers", "//third_party/opengl:gfxstream_gles_headers", "//third_party/opengl:gfxstream_glx_headers", "//third_party/opengl:gfxstream_opengl_headers", "//third_party/x11:gfxstream_x11_headers", ], )