1load("@rules_cc//cc:defs.bzl", "cc_library") 2 3# Interface library 4cc_library( 5 name = "gfxstream-snapshot-headers", 6 hdrs = [ 7 "include/snapshot/LazySnapshotObj.h", 8 "include/snapshot/TextureLoader.h", 9 "include/snapshot/TextureSaver.h", 10 "include/snapshot/common.h", 11 "include/snapshot/interface.h", 12 ], 13 includes = ["include"], 14 visibility = ["//visibility:public"], 15) 16 17# Main library 18cc_library( 19 name = "aemu-snapshot", 20 srcs = [ 21 "TextureLoader.cpp", 22 "TextureSaver.cpp", 23 ], 24 hdrs = [":gfxstream-snapshot-headers"], 25 copts = [ 26 "-D_FILE_OFFSET_BITS=64", 27 "-Wno-extern-c-compat", 28 "-Wno-return-type-c-linkage", 29 ], 30 defines = ["dfatal=\"(void*)\""], 31 visibility = ["//visibility:public"], 32 deps = [ 33 ":gfxstream-snapshot-headers", 34 "//base:aemu-base-headers", 35 ], 36) 37