• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# File: project_root/src/apigen-codec-common/BUILD
2
3load("@rules_cc//cc:defs.bzl", "cc_library")
4
5cc_library(
6    name = "apigen-codec-common",
7    srcs = [
8        "ChecksumCalculator.cpp",
9        "ChecksumCalculator.h",
10        "ChecksumCalculatorThreadInfo.cpp",
11        "ChecksumCalculatorThreadInfo.h",
12        "glUtils.cpp",
13        "glUtils.h",
14    ] + select({
15        "@platforms//os:linux": [
16            "X11Support.cpp",
17            "X11Support.h",
18        ],
19        "//conditions:default": [],
20    }),
21    hdrs = glob([
22        "GL/**/*.h",
23        "X11/**/*.h",
24    ]) + [
25        "GLDecoderContextData.h",
26        "ProtocolUtils.h",
27        "gl_base_types.h",
28    ],
29    copts = ["-fno-exceptions"],
30    defines = [
31        "EMUGL_BUILD",
32        "BUILDING_EMUGL_COMMON_SHARED",
33    ],
34    includes = ["."],
35    visibility = ["//visibility:public"],
36    deps = [
37        "//:gfxstream-gl-host-common-headers",
38        "@aemu//base:aemu-base-headers",
39        "@aemu//host-common:aemu-host-common",
40    ],
41)
42