meson.build revision 9f464c52
1gen_hw_metrics = [
2  'hsw',
3  'bdw', 'chv',
4  'sklgt2', 'sklgt3', 'sklgt4',
5  'kblgt2', 'kblgt3',
6  'cflgt2', 'cflgt3',
7  'bxt', 'glk',
8  'cnl',
9  'icl',
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_mdapi.c',
20]
21
22gen_perf_sources += custom_target(
23  'intel-perf-sources',
24  input : gen_hw_metrics_xml_files,
25  output : [ 'gen_perf_metrics.c', 'gen_perf_metrics.h' ],
26  command : [
27    prog_python, files('gen_perf.py'),
28    '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
29    '@INPUT@',
30  ],
31)
32
33libintel_perf = static_library(
34  'intel_perf',
35  gen_perf_sources,
36  include_directories : [
37    inc_common, inc_intel, inc_util,
38  ],
39  c_args : [c_vis_args, no_override_init_args, '-msse2'],
40  cpp_args : [cpp_vis_args, '-msse2'],
41)
42