1package { 2 // See: http://go/android-license-faq 3 default_applicable_licenses: ["hardware_google_gfxstream_license"], 4} 5 6// Run with `atest --host GfxstreamEnd2EndTests` 7cc_test_host { 8 name: "GfxstreamEnd2EndTests", 9 defaults: ["gfxstream_cc_defaults"], 10 srcs: [ 11 "GfxstreamEnd2EndTests.cpp", 12 "GfxstreamEnd2EndTestUtils.cpp", 13 "GfxstreamEnd2EndCompositionTests.cpp", 14 "GfxstreamEnd2EndGlTests.cpp", 15 "GfxstreamEnd2EndVkTests.cpp", 16 "GfxstreamEnd2EndVkSnapshotBasicTests.cpp", 17 "GfxstreamEnd2EndVkSnapshotBufferTests.cpp", 18 "GfxstreamEnd2EndVkSnapshotImageTests.cpp", 19 "GfxstreamEnd2EndVkSnapshotPipelineTests.cpp", 20 ], 21 header_libs: [ 22 "gfxstream_headers", 23 "libgfxstream_guest_rendercontrol_headers", 24 ], 25 data: [ 26 "testdata/256x256_android.png", 27 "testdata/256x256_android_with_transparency.png", 28 "testdata/256x256_golden_basic_composition.png", 29 ], 30 data_libs: [ 31 "libEGL_emulation_with_host", 32 "libgfxstream_guest_rendercontrol_with_host", 33 "libgfxstream_guest_vulkan_with_host", 34 "libgfxstream_platform_rutabaga_server", 35 "libGLESv1_CM_emulation_with_host", 36 "libGLESv2_emulation_with_host", 37 ], 38 shared_libs: [ 39 "libandroidemu", 40 "libOpenglSystemCommonWithHost", 41 "libbase", 42 "liblog", 43 "libgfxstream_platform_rutabaga_server", 44 ], 45 static_libs: [ 46 "libgfxstream_common_image", 47 "libgfxstream_common_utils", 48 "libgfxstream_guest_android_with_host", 49 "libgfxstream_platform_rutabaga", 50 "libgfxstream_thirdparty_stb", 51 "libgmock", 52 ], 53 cflags: [ 54 // TODO: remove 55 "-DVK_USE_PLATFORM_ANDROID_KHR", 56 "-Wno-macro-redefined", 57 "-Wno-unused-parameter", 58 "-Wno-extern-c-compat", 59 ], 60 test_options: { 61 // Disabled by default as requires host OpenGL and Vulkan. 62 unit_test: false, 63 }, 64 test_suites: [ 65 "general-tests", 66 ], 67 compile_multilib: "64", 68} 69