1gen_hw_metrics = [ 2 'hsw', 3 'bdw', 'chv', 4 'sklgt2', 'sklgt3', 'sklgt4', 5 'kblgt2', 'kblgt3', 6 'cflgt2', 'cflgt3', 7 'bxt', 'glk', 8 'icl', 'lkf', 9 'tgl', 10] 11 12gen_hw_metrics_xml_files = [] 13foreach hw : gen_hw_metrics 14 gen_hw_metrics_xml_files += 'oa-@0@.xml'.format(hw) 15endforeach 16 17gen_perf_sources = [ 18 'gen_perf.c', 19 'gen_perf_query.c', 20 'gen_perf_mdapi.c', 21] 22 23gen_perf_sources += custom_target( 24 'intel-perf-sources', 25 input : gen_hw_metrics_xml_files, 26 output : [ 'gen_perf_metrics.c', 'gen_perf_metrics.h' ], 27 command : [ 28 prog_python, files('gen_perf.py'), 29 '--code', '@OUTPUT0@', '--header', '@OUTPUT1@', 30 '@INPUT@', 31 ], 32) 33 34libintel_perf = static_library( 35 'intel_perf', 36 gen_perf_sources, 37 include_directories : [ 38 inc_include, inc_src, inc_intel, 39 ], 40 c_args : [no_override_init_args, '-msse2'], 41 cpp_args : ['-msse2'], 42 gnu_symbol_visibility : 'hidden', 43) 44