1// Copyright (c) 2024, Intel Corporation 2 3// Permission is hereby granted, free of charge, to any person obtaining a 4// copy of this software and associated documentation files (the "Software"), 5// to deal in the Software without restriction, including without limitation 6// the rights to use, copy, modify, merge, publish, distribute, sublicense, 7// and/or sell copies of the Software, and to permit persons to whom the 8// Software is furnished to do so, subject to the following conditions: 9 10// The above copyright notice and this permission notice shall be included 11// in all copies or substantial portions of the Software. 12 13// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 16// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 17// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 18// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 19// OTHER DEALINGS IN THE SOFTWARE. 20 21cc_library_headers { 22 name: "libcmrt_headers", 23 export_include_dirs: [ 24 "agnostic/share", 25 "agnostic/hardware", 26 "linux/share", 27 "linux/hardware", 28 ], 29 30 vendor: true, 31 enabled: false, 32 arch: { 33 x86_64: { 34 enabled: true, 35 }, 36 }, 37} 38 39cc_library_shared { 40 name: "libigfxcmrt", 41 42 srcs: [ 43 "agnostic/share/cm_printf_host.cpp", 44 "agnostic/share/cm_rt_helpers.cpp", 45 "agnostic/share/cm_avs_state_msg_ex.cpp", 46 "agnostic/hardware/cm_device.cpp", 47 "agnostic/hardware/cm_device_export.cpp", 48 "agnostic/hardware/cm_surface_manager.cpp", 49 "agnostic/hardware/cm_timer.cpp", 50 "agnostic/hardware/cm_queue.cpp", 51 "agnostic/hardware/cm_perf_statistics.cpp", 52 "agnostic/hardware/cm_kernel_debugger.cpp", 53 "linux/share/cm_performance.cpp", 54 "linux/hardware/cm_device_os.cpp", 55 "linux/hardware/cm_surface_manager_os.cpp", 56 "linux/hardware/cm_device_export_os.cpp", 57 "linux/hardware/cm_timer_os.cpp", 58 ], 59 60 cflags: [ 61 "-Werror", 62 "-Wno-unused-variable", 63 "-Wno-unused-parameter", 64 "-Wno-unused-private-field", 65 "-Wno-non-virtual-dtor", 66 "-Wno-implicit-fallthrough", 67 "-DCM_RT_EXPORTS", 68 "-DISTDLIB_UMD", 69 "-DVPHAL", 70 "-D__CT__", 71 ], 72 73 header_libs: [ 74 "libva_headers", 75 "libcmrt_headers", 76 ], 77 78 shared_libs: [ 79 "libc", 80 "libdl", 81 "libcutils", 82 "liblog", 83 "libutils", 84 "libm", 85 "libva", 86 "libva-android", 87 ], 88 vendor: true, 89 enabled: false, 90 arch: { 91 x86_64: { 92 enabled: true, 93 }, 94 }, 95} 96