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 "frameworks_native_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_native_license"], 8} 9 10cc_test { 11 name: "surfaceflinger_end2end_tests", 12 test_suites: ["device-tests"], 13 require_root: true, 14 15 cpp_std: "experimental", 16 cflags: [ 17 "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", 18 "-DNODISCARD_EXPECTED", 19 "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS", 20 "-Wall", 21 "-Wconversion", 22 "-Werror", 23 "-Wextra", 24 "-Wformat", 25 "-Wno-non-virtual-dtor", 26 "-Wno-sign-compare", 27 "-Wno-sign-conversion", 28 "-Wshadow", 29 "-Wthread-safety", 30 "-Wunreachable-code", 31 "-Wunused", 32 ], 33 srcs: [ 34 "main.cpp", 35 "test_framework/core/TestService.cpp", 36 "test_framework/fake_hwc3/Hwc3Composer.cpp", 37 "test_framework/fake_hwc3/Hwc3Controller.cpp", 38 "test_framework/surfaceflinger/SFController.cpp", 39 "tests/Placeholder_test.cpp", 40 ], 41 tidy: true, 42 tidy_flags: [ 43 "--config=", // Use the .clang-tidy closest to each source file for the configuration 44 ], 45 tidy_checks_as_errors: [ 46 "*", 47 ], 48 include_dirs: [ 49 "frameworks/native/include", 50 ], 51 local_include_dirs: ["."], 52 shared_libs: [ 53 "libbase", 54 "libbinder", 55 "libbinder_ndk", 56 "libcutils", 57 "libgui", 58 "libsync", 59 "libui", 60 "libutils", 61 ], 62 static_libs: [ 63 "android.hardware.common-V2-ndk", 64 "android.hardware.graphics.common-V6-ndk", 65 "android.hardware.graphics.composer3-V3-ndk", 66 "libgtest", 67 ], 68} 69