Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/drivers/swr/rasterizer/jitter/meson.build
4574 views
1
# Copyright © 2017-2018 Intel Corporation
2
3
# Permission is hereby granted, free of charge, to any person obtaining a copy
4
# of this software and associated documentation files (the "Software"), to deal
5
# in the Software without restriction, including without limitation the rights
6
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
# copies of the Software, and to permit persons to whom the Software is
8
# furnished to do so, subject to the following conditions:
9
10
# The above copyright notice and this permission notice shall be included in
11
# all copies or substantial portions of the Software.
12
13
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
# SOFTWARE.
20
21
if dep_llvm.type_name() == 'internal'
22
_irbuilder_h = subproject('llvm').get_variable('irbuilder_h')
23
else
24
_llvm_includedir = dep_llvm.get_variable(configtool : 'includedir', cmake : 'LLVM_INCLUDE_DIR')
25
_irbuilder_h = join_paths(_llvm_includedir, 'llvm', 'IR', 'IRBuilder.h')
26
endif
27
28
gen_builder_hpp = custom_target(
29
'gen_builder.hpp',
30
input : [
31
swr_gen_llvm_ir_macros_py, _irbuilder_h,
32
],
33
output : 'gen_builder.hpp',
34
command : [
35
prog_python, '@INPUT0@', '--input', '@INPUT1@', '--output', '@OUTPUT@',
36
'--gen_h', '--output-dir', '@OUTDIR@'
37
],
38
depend_files : swr_gen_builder_depends,
39
build_by_default : true,
40
)
41
42
gen_builder_meta_hpp = custom_target(
43
'gen_builder_meta.hpp',
44
input : '../codegen/gen_llvm_ir_macros.py',
45
output : 'gen_builder_meta.hpp',
46
command : [
47
prog_python, '@INPUT0@', '--gen_meta_h', '--output', '@OUTPUT@',
48
'--output-dir', '@OUTDIR@'
49
],
50
depend_files : swr_gen_builder_depends,
51
)
52
53
gen_builder_intrin_hpp = custom_target(
54
'gen_builder_intrin.hpp',
55
input : '../codegen/gen_llvm_ir_macros.py',
56
output : 'gen_builder_intrin.hpp',
57
command : [
58
prog_python, '@INPUT0@', '--gen_intrin_h', '--output', '@OUTPUT@',
59
'--output-dir', '@OUTDIR@'
60
],
61
depend_files : swr_gen_builder_depends,
62
)
63
64
65