• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_google_aemu_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_google_aemu_license"],
8}
9
10cc_library_static {
11    name: "gfxstream_base",
12    defaults: ["gfxstream_defaults"],
13    header_libs: ["gfxstream_renderdoc_headers"],
14    srcs: [
15        "AlignedBuf.cpp",
16        "CompressingStream.cpp",
17        "CpuTime.cpp",
18        "DecompressingStream.cpp",
19        "FileUtils.cpp",
20        "FunctorThread.cpp",
21        "GLObjectCounter.cpp",
22        "HealthMonitor.cpp",
23        "LayoutResolver.cpp",
24        "MemStream.cpp",
25        "StdioStream.cpp",
26        "MemoryTracker.cpp",
27        "MessageChannel.cpp",
28        "Metrics.cpp",
29        "PathUtils.cpp",
30        "ring_buffer.cpp",
31        "SharedLibrary.cpp",
32        "SharedMemory_posix.cpp",
33        "StringFormat.cpp",
34        "Stream.cpp",
35        "StreamSerializing.cpp",
36        "SubAllocator.cpp",
37        "System.cpp",
38        "Tracing.cpp",
39        "Thread_pthread.cpp",
40    ],
41    export_header_lib_headers: ["gfxstream_renderdoc_headers"],
42    static_libs: ["liblz4"],
43}
44
45// Run with `atest --host gfxstream_base_tests`
46cc_test_host {
47    name: "gfxstream_base_tests",
48    defaults: [ "gfxstream_defaults" ],
49    srcs: [
50        "LruCache_unittest.cpp",
51    ],
52    static_libs: [
53        "gfxstream_base",
54        "libgmock",
55        "libgtest",
56        "libgtest_main",
57    ],
58    test_options: {
59        unit_test: true,
60    },
61}
62
63cc_test_library {
64    name: "gfxstream_base_test_support",
65    defaults: [ "gfxstream_defaults" ],
66    srcs: [
67        "testing/file_io.cpp",
68    ],
69    static_libs: [
70        "gfxstream_base",
71    ],
72}
73