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    //   SPDX-license-identifier-BSD
8    //   SPDX-license-identifier-MIT
9    default_applicable_licenses: ["hardware_google_aemu_license"],
10}
11
12cc_library_static {
13    name: "gfxstream_host_common",
14    defaults: [ "gfxstream_defaults" ],
15    static_libs: [
16        "gfxstream_base",
17    ],
18    srcs: [
19        "empty-crash-handler.cpp",
20        "crash_reporter.cpp",
21        "vm_operations.cpp",
22        "feature_control.cpp",
23        "FeatureControlOverride.cpp",
24        "dma_device.cpp",
25        "sync_device.cpp",
26        "misc.cpp",
27        "window_operations.cpp",
28        "logging.cpp",
29        "GfxstreamFatalError.cpp",
30
31        "AndroidPipe.cpp",
32        "HostmemIdMapping.cpp",
33        "RefcountPipe.cpp",
34        "GraphicsAgentFactory.cpp",
35
36        "GoldfishSyncCommandQueue.cpp",
37        "goldfish_sync.cpp",
38
39        "DmaMap.cpp",
40        "GoldfishDma.cpp",
41
42        "address_space_device_control_ops.cpp",
43        "address_space_device.cpp",
44        "address_space_host_memory_allocator.cpp",
45        "address_space_shared_slots_host_memory_allocator.cpp",
46        "address_space_graphics.cpp",
47        "address_space_host_media.cpp",
48
49        "hw-config.cpp",
50    ],
51    local_include_dirs: [
52        "include/host-common",
53    ],
54}
55
56cc_test_library {
57    name: "gfxstream_host_common_test_support",
58    defaults: [ "gfxstream_defaults" ],
59    srcs: [
60        "testing/HostAddressSpace.cpp",
61        "testing/MockAndroidEmulatorWindowAgent.cpp",
62        "testing/MockAndroidMultiDisplayAgent.cpp",
63        "testing/MockAndroidVmOperations.cpp",
64        "testing/MockGraphicsAgentFactory.cpp",
65    ],
66    static_libs: [
67        "gfxstream_base",
68        "gfxstream_host_common",
69        "libgmock",
70    ],
71}
72