aboutsummaryrefslogtreecommitdiff
path: root/common/end2end/Android.bp
blob: 9d35c3ff93330cccd1efe84a82ff08cb4dac3e16 (plain)
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
package {
    // See: http://go/android-license-faq
    default_applicable_licenses: ["hardware_google_gfxstream_license"],
}

// Run with `atest --host GfxstreamEnd2EndTests`
cc_test_host {
    name: "GfxstreamEnd2EndTests",
    defaults: ["gfxstream_cc_defaults"],
    srcs: [
        "GfxstreamEnd2EndTests.cpp",
        "GfxstreamEnd2EndCompositionTests.cpp",
        "GfxstreamEnd2EndGlTests.cpp",
        "GfxstreamEnd2EndVkTests.cpp",
        "GfxstreamEnd2EndVkSnapshotBasicTests.cpp",
        "GfxstreamEnd2EndVkSnapshotBufferTests.cpp",
        "GfxstreamEnd2EndVkSnapshotImageTests.cpp",
        "GfxstreamEnd2EndVkSnapshotPipelineTests.cpp",
    ],
    header_libs: [
        "gfxstream_headers",
        "libgfxstream_guest_rendercontrol_headers",
    ],
    data: [
        "testdata/256x256_android.png",
        "testdata/256x256_android_with_transparency.png",
        "testdata/256x256_golden_basic_composition.png",
    ],
    data_libs: [
        "libEGL_emulation_with_host",
        "libgfxstream_guest_rendercontrol_with_host",
        "libgfxstream_guest_vulkan_with_host",
        "libgfxstream_platform_rutabaga_server",
        "libGLESv1_CM_emulation_with_host",
        "libGLESv2_emulation_with_host",
    ],
    shared_libs: [
        "libandroidemu",
        "libOpenglSystemCommonWithHost",
        "libbase",
        "liblog",
        "libgfxstream_platform_rutabaga_server",
    ],
    static_libs: [
        "libc++fs",
        "libgfxstream_common_image",
        "libgfxstream_common_utils",
        "libgfxstream_guest_android_with_host",
        "libgfxstream_platform_rutabaga",
        "libgfxstream_thirdparty_stb",
        "libgmock",
    ],
    cflags: [
        // TODO: remove
        "-DVK_USE_PLATFORM_ANDROID_KHR",
        "-Wno-macro-redefined",
        "-Wno-unused-parameter",
        "-Wno-extern-c-compat",
    ],
    test_options: {
        // Disabled by default as requires host OpenGL and Vulkan.
        unit_test: false,
    },
    test_suites: [
        "general-tests",
    ],
    compile_multilib: "64",
}