meson.build revision 7ec681f3
17ec681f3Smrgintel_hw_metrics = [ 29f464c52Smaya 'hsw', 39f464c52Smaya 'bdw', 'chv', 49f464c52Smaya 'sklgt2', 'sklgt3', 'sklgt4', 59f464c52Smaya 'kblgt2', 'kblgt3', 69f464c52Smaya 'cflgt2', 'cflgt3', 79f464c52Smaya 'bxt', 'glk', 87ec681f3Smrg 'icl', 'ehl', 97ec681f3Smrg 'tglgt1', 'tglgt2', 'rkl', 'dg1', 'adl', 109f464c52Smaya] 119f464c52Smaya 127ec681f3Smrgintel_hw_metrics_xml_files = [] 137ec681f3Smrgforeach hw : intel_hw_metrics 147ec681f3Smrg intel_hw_metrics_xml_files += 'oa-@0@.xml'.format(hw) 159f464c52Smayaendforeach 169f464c52Smaya 177ec681f3Smrgintel_perf_sources = [ 187ec681f3Smrg 'intel_perf.c', 197ec681f3Smrg 'intel_perf_query.c', 207ec681f3Smrg 'intel_perf_mdapi.c', 219f464c52Smaya] 229f464c52Smaya 237ec681f3Smrgintel_perf_sources += custom_target( 249f464c52Smaya 'intel-perf-sources', 257ec681f3Smrg input : intel_hw_metrics_xml_files, 267ec681f3Smrg output : [ 'intel_perf_metrics.c', 'intel_perf_metrics.h' ], 279f464c52Smaya command : [ 289f464c52Smaya prog_python, files('gen_perf.py'), 299f464c52Smaya '--code', '@OUTPUT0@', '--header', '@OUTPUT1@', 309f464c52Smaya '@INPUT@', 319f464c52Smaya ], 329f464c52Smaya) 339f464c52Smaya 349f464c52Smayalibintel_perf = static_library( 359f464c52Smaya 'intel_perf', 367ec681f3Smrg intel_perf_sources, 379f464c52Smaya include_directories : [ 387ec681f3Smrg inc_include, inc_src, inc_intel, 399f464c52Smaya ], 407ec681f3Smrg c_args : [no_override_init_args, '-msse2'], 417ec681f3Smrg cpp_args : ['-msse2'], 427ec681f3Smrg gnu_symbol_visibility : 'hidden', 439f464c52Smaya) 44