forked from notaz/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
43 lines (39 loc) · 959 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
intel_hw_metrics = [
'hsw',
'bdw', 'chv',
'sklgt2', 'sklgt3', 'sklgt4',
'kblgt2', 'kblgt3',
'cflgt2', 'cflgt3',
'bxt', 'glk',
'icl', 'ehl',
'tglgt1', 'tglgt2', 'rkl', 'dg1', 'adl',
]
intel_hw_metrics_xml_files = []
foreach hw : intel_hw_metrics
intel_hw_metrics_xml_files += 'oa-@[email protected]'.format(hw)
endforeach
intel_perf_sources = [
'intel_perf.c',
'intel_perf_query.c',
'intel_perf_mdapi.c',
]
intel_perf_sources += custom_target(
'intel-perf-sources',
input : intel_hw_metrics_xml_files,
output : [ 'intel_perf_metrics.c', 'intel_perf_metrics.h' ],
command : [
prog_python, files('gen_perf.py'),
'--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
'@INPUT@',
],
)
libintel_perf = static_library(
'intel_perf',
intel_perf_sources,
include_directories : [
inc_include, inc_src, inc_intel,
],
c_args : [no_override_init_args, '-msse2'],
cpp_args : ['-msse2'],
gnu_symbol_visibility : 'hidden',
)