| # Interface library |
| cc_library( |
| name = "gfxstream-snapshot-headers", |
| hdrs = glob(["include/**/*.h"]), |
| includes = ["include"], |
| visibility = ["//visibility:public"], |
| ) |
| |
| # Main library |
| cc_library( |
| name = "aemu-snapshot", |
| srcs = [ |
| "TextureLoader.cpp", |
| "TextureSaver.cpp", |
| ], |
| hdrs = [":gfxstream-snapshot-headers"], |
| copts = [ |
| "-Wno-extern-c-compat", |
| "-Wno-return-type-c-linkage", |
| ], |
| defines = select({ |
| "@platforms//os:macos": [ |
| "fseeko64=fseek", |
| "ftello64=ftell", |
| ], |
| "//conditions:default": [], |
| }), |
| visibility = ["//visibility:public"], |
| deps = [ |
| ":gfxstream-snapshot-headers", |
| "//hardware/google/aemu/base:aemu-base-headers", |
| ], |
| ) |