1package { 2 default_applicable_licenses: ["external_igt-gpu-tools_license"], 3} 4 5// Added automatically by a large-scale-change that took the approach of 6// 'apply every license found to every target'. While this makes sure we respect 7// every license restriction, it may not be entirely correct. 8// 9// e.g. GPL in an MIT project might only apply to the contrib/ directory. 10// 11// Please consider splitting the single license below into multiple licenses, 12// taking care not to lose any license_kind information, and overriding the 13// default license using the 'licenses: [...]' property on targets as needed. 14// 15// For unused files, consider creating a 'fileGroup' with "//visibility:private" 16// to attach the license to, and including a comment whether the files may be 17// used in the current project. 18// See: http://go/android-license-faq 19license { 20 name: "external_igt-gpu-tools_license", 21 visibility: [":__subpackages__"], 22 license_kinds: [ 23 "SPDX-license-identifier-Apache-2.0", 24 "SPDX-license-identifier-GPL", 25 "SPDX-license-identifier-GPL-2.0", 26 "SPDX-license-identifier-ISC", 27 "SPDX-license-identifier-LGPL", 28 "SPDX-license-identifier-MIT", 29 ], 30 license_text: [ 31 "COPYING", 32 ], 33} 34 35cc_defaults { 36 name: "igt-gpu-tools-defaults", 37 cflags: [ 38 "-Wall", 39 "-Werror", 40 "-Wno-missing-field-initializers", 41 "-Wno-unused-parameter", 42 "-Wno-unused-variable", 43 "-DHAVE_GETTID", 44 "-DHAVE_LIBGEN_H", 45 "-DHAVE_MEMFD_CREATE", 46 ], 47 static_libs: ["libelf", "libkmod", "libion", "liblog"], 48 shared_libs: ["libdrm"], 49 compile_multilib: "both", 50 multilib: { 51 lib32: { 52 suffix: "32", 53 }, 54 lib64: { 55 suffix: "64" 56 }, 57 }, 58} 59 60cc_library_static { 61 name: "igt-gpu-tools", 62 defaults: ["igt-gpu-tools-defaults"], 63 srcs: [ 64 "lib/drmtest.c", 65 "lib/gem.c", 66 "lib/gem_msm.c", 67 "lib/igt_aux.c", 68 "lib/igt_color_encoding.c", 69 "lib/igt_core.c", 70 "lib/igt_debugfs.c", 71 "lib/igt_device.c", 72 "lib/igt_dummy.c", 73 "lib/igt_dummyload.c", 74 "lib/igt_fb.c", 75 "lib/igt_kmod.c", 76 "lib/igt_kms.c", 77 "lib/igt_pm.c", 78 "lib/igt_stats.c", 79 "lib/igt_sysfs.c", 80 "lib/ion.c", 81 "lib/ioctl_wrappers.c", 82 "lib/sw_sync.c", 83 "lib/i915/gem_mman.c", 84 "lib/uwildmat/uwildmat.c", 85 ], 86 export_include_dirs: [ 87 "include", 88 "lib", 89 "lib/stubs/drm", 90 "prebuilt-intermediates", 91 ], 92} 93 94cc_defaults { 95 name: "igt-gpu-tools-test-defaults", 96 defaults: ["igt-gpu-tools-defaults"], 97 static_libs: ["igt-gpu-tools"], 98} 99 100cc_test { 101 name: "gem_blt", 102 defaults: ["igt-gpu-tools-test-defaults"], 103 srcs: ["benchmarks/gem_blt.c"], 104 gtest: false, 105} 106 107cc_test { 108 name: "kms_flip", 109 defaults: ["igt-gpu-tools-test-defaults"], 110 srcs: ["tests/kms_flip.c"], 111 gtest: false, 112} 113 114cc_test { 115 name: "kms_atomic", 116 defaults: ["igt-gpu-tools-test-defaults"], 117 srcs: ["tests/kms_atomic.c"], 118 gtest: false, 119} 120 121cc_test { 122 name: "ion_fb", 123 defaults: ["igt-gpu-tools-test-defaults"], 124 srcs: ["tests/ion_fb.c"], 125 gtest: false, 126} 127 128cc_test { 129 name: "kms_vblank", 130 defaults: ["igt-gpu-tools-test-defaults"], 131 srcs: ["tests/kms_vblank.c"], 132 gtest: false, 133} 134 135python_test_host { 136 name: "igt_gpu_tools", 137 main: "scripts/test_igt_gpu_tools.py", 138 srcs: [ "scripts/test_igt_gpu_tools.py", ], 139 data: [ "scripts/test_igt_gpu_tools.xml" ], 140 test_config: "scripts/test_igt_gpu_tools.xml", 141 version: { 142 py2: { 143 enabled: false, 144 }, 145 py3: { 146 enabled: true, 147 }, 148 }, 149 test_options: { 150 unit_test: false, 151 }, 152} 153 154cc_test { 155 name: "kms_throughput", 156 defaults: ["igt-gpu-tools-test-defaults"], 157 srcs: ["benchmarks/kms_throughput.c"], 158} 159