blob: 40bb18ba46a6a11a9bc955a3587fd6c3e3fe499d [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "device_generic_vulkan-cereal_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-BSD
// SPDX-license-identifier-GPL-2.0
// SPDX-license-identifier-MIT
// legacy_unencumbered
default_applicable_licenses: ["device_generic_vulkan-cereal_license"],
}
cc_library_static {
name: "gfxstream_base",
defaults: ["gfxstream_defaults"],
header_libs: ["gfxstream_renderdoc_headers"],
srcs: [
"AlignedBuf.cpp",
"CompressingStream.cpp",
"CpuTime.cpp",
"DecompressingStream.cpp",
"FileUtils.cpp",
"FunctorThread.cpp",
"GLObjectCounter.cpp",
"HealthMonitor.cpp",
"LayoutResolver.cpp",
"MemStream.cpp",
"StdioStream.cpp",
"MemoryTracker.cpp",
"MessageChannel.cpp",
"Metrics.cpp",
"PathUtils.cpp",
"ring_buffer.cpp",
"SharedLibrary.cpp",
"SharedMemory_posix.cpp",
"StringFormat.cpp",
"Stream.cpp",
"StreamSerializing.cpp",
"SubAllocator.cpp",
"System.cpp",
"Tracing.cpp",
"Thread_pthread.cpp",
],
export_header_lib_headers: ["gfxstream_renderdoc_headers"],
static_libs: ["liblz4"],
}
// Run with `atest --host gfxstream_base_tests`
cc_test_host {
name: "gfxstream_base_tests",
defaults: [ "gfxstream_defaults" ],
srcs: [
"LruCache_unittest.cpp",
],
static_libs: [
"gfxstream_base",
"libgmock",
"libgtest",
"libgtest_main",
],
test_options: {
unit_test: true,
},
}