diff options
Diffstat (limited to 'snapshot/BUILD.bazel')
-rw-r--r-- | snapshot/BUILD.bazel | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/snapshot/BUILD.bazel b/snapshot/BUILD.bazel new file mode 100644 index 0000000..549a36f --- /dev/null +++ b/snapshot/BUILD.bazel @@ -0,0 +1,33 @@ +# 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", + ], +) |