1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package {
default_team: "trendy_team_automotive",
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_google_aemu_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_google_aemu_license"],
}
cc_library_static {
name: "gfxstream_base",
defaults: ["gfxstream_defaults"],
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",
],
header_libs: ["libgfxstream_thirdparty_renderdoc_headers"],
export_header_lib_headers: ["libgfxstream_thirdparty_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,
},
}
cc_test_library {
name: "gfxstream_base_test_support",
defaults: ["gfxstream_defaults"],
srcs: [
"testing/file_io.cpp",
],
static_libs: [
"gfxstream_base",
],
}
|