5fae9058f83df4c3ff6d116f5077f96b4a6a3752
[mesa.git] / src / intel / perf / meson.build
1 gen_hw_metrics = [
2 'hsw',
3 'bdw', 'chv',
4 'sklgt2', 'sklgt3', 'sklgt4',
5 'kblgt2', 'kblgt3',
6 'cflgt2', 'cflgt3',
7 'bxt', 'glk',
8 'cnl',
9 'icl', 'lkf',
10 'tgl',
11 ]
12
13 gen_hw_metrics_xml_files = []
14 foreach hw : gen_hw_metrics
15 gen_hw_metrics_xml_files += 'oa-@0@.xml'.format(hw)
16 endforeach
17
18 gen_perf_sources = [
19 'gen_perf.c',
20 'gen_perf_mdapi.c',
21 ]
22
23 gen_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
34 libintel_perf = static_library(
35 'intel_perf',
36 gen_perf_sources,
37 include_directories : [
38 inc_common, inc_intel, inc_util,
39 ],
40 c_args : [c_vis_args, no_override_init_args, '-msse2'],
41 cpp_args : [cpp_vis_args, '-msse2'],
42 )