i965: extract performance query metrics
[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',
10 ]
11
12 gen_hw_metrics_xml_files = []
13 foreach hw : gen_hw_metrics
14 gen_hw_metrics_xml_files += 'oa-@0@.xml'.format(hw)
15 endforeach
16
17 gen_perf_sources = [
18 'gen_perf.c'
19 ]
20
21 gen_perf_sources += custom_target(
22 'intel-perf-sources',
23 input : gen_hw_metrics_xml_files,
24 output : [ 'gen_perf_metrics.c', 'gen_perf_metrics.h' ],
25 command : [
26 prog_python, files('gen_perf.py'),
27 '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
28 '@INPUT@',
29 ],
30 )
31
32 libintel_perf = static_library(
33 'intel_perf',
34 gen_perf_sources,
35 include_directories : [
36 inc_common, inc_intel, inc_util,
37 ],
38 c_args : [c_vis_args, no_override_init_args, '-msse2'],
39 cpp_args : [cpp_vis_args, '-msse2'],
40 )