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_shared { 22 name: "libigfxcmrt", 23 24 srcs: [ 25 "agnostic/share/cm_printf_host.cpp", 26 "agnostic/share/cm_rt_helpers.cpp", 27 "agnostic/share/cm_avs_state_msg_ex.cpp", 28 "agnostic/hardware/cm_device.cpp", 29 "agnostic/hardware/cm_device_export.cpp", 30 "agnostic/hardware/cm_surface_manager.cpp", 31 "agnostic/hardware/cm_timer.cpp", 32 "agnostic/hardware/cm_queue.cpp", 33 "agnostic/hardware/cm_perf_statistics.cpp", 34 "agnostic/hardware/cm_kernel_debugger.cpp", 35 "linux/share/cm_performance.cpp", 36 "linux/hardware/cm_device_os.cpp", 37 "linux/hardware/cm_surface_manager_os.cpp", 38 "linux/hardware/cm_device_export_os.cpp", 39 "linux/hardware/cm_timer_os.cpp", 40 ], 41 42 local_include_dirs: [ 43 "agnostic/share", 44 "agnostic/hardware", 45 "linux/share", 46 "linux/hardware", 47 ], 48 49 cflags: [ 50 "-Werror", 51 "-Wno-unused-variable", 52 "-Wno-unused-parameter", 53 "-Wno-unused-private-field", 54 "-Wno-non-virtual-dtor", 55 "-Wno-implicit-fallthrough", 56 "-DCM_RT_EXPORTS", 57 "-DISTDLIB_UMD", 58 "-DVPHAL", 59 "-D__CT__", 60 ], 61 62 header_libs: [ 63 "libva_headers", 64 ], 65 66 shared_libs: [ 67 "libc", 68 "libdl", 69 "libcutils", 70 "liblog", 71 "libutils", 72 "libm", 73 "libva", 74 "libva-android", 75 ], 76 vendor: true, 77 enabled: false, 78 arch: { 79 x86_64: { 80 enabled: true, 81 }, 82 }, 83} 84 85cc_library_headers { 86 name: "libcmrt_headers", 87 export_include_dirs: [ 88 "linux/hardware", 89 ], 90 91 vendor: true, 92 enabled: false, 93 arch: { 94 x86_64: { 95 enabled: true, 96 }, 97 }, 98} 99