• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Interface library
2cc_library(
3    name = "gfxstream-snapshot-headers",
4    hdrs = glob(["include/**/*.h"]),
5    includes = ["include"],
6    visibility = ["//visibility:public"],
7)
8
9# Main library
10cc_library(
11    name = "aemu-snapshot",
12    srcs = [
13        "TextureLoader.cpp",
14        "TextureSaver.cpp",
15    ],
16    hdrs = [":gfxstream-snapshot-headers"],
17    copts = [
18        "-Wno-extern-c-compat",
19        "-Wno-return-type-c-linkage",
20    ],
21    defines = select({
22        "@platforms//os:macos": [
23            "fseeko64=fseek",
24            "ftello64=ftell",
25        ],
26        "//conditions:default": [],
27    }),
28    visibility = ["//visibility:public"],
29    deps = [
30        ":gfxstream-snapshot-headers",
31        "//hardware/google/aemu/base:aemu-base-headers",
32    ],
33)
34