Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/freedreno/isa/meson.build
4564 views
1
# Copyright © 2020 Google, Inc
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
isa_depend_files = [
22
'ir3-common.xml',
23
'ir3-cat0.xml',
24
'ir3-cat1.xml',
25
'ir3-cat2.xml',
26
'ir3-cat3.xml',
27
'ir3-cat4.xml',
28
'ir3-cat5.xml',
29
'ir3-cat6.xml',
30
'ir3-cat7.xml',
31
'isa.py',
32
]
33
34
ir3_isa_c = custom_target(
35
'ir3-isa.c',
36
input: ['decode.py', 'ir3.xml'],
37
output: 'ir3-isa.c',
38
command: [
39
prog_python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'
40
],
41
depend_files: isa_depend_files,
42
)
43
44
decode_files = [
45
ir3_isa_c,
46
'isa.h',
47
'decode.h',
48
'decode.c',
49
]
50
51
libir3decode = static_library(
52
'ir3decode',
53
decode_files,
54
dependencies: idep_mesautil,
55
include_directories: [
56
inc_include,
57
inc_src,
58
# Hack for src/util/half_float.h indirect dependency on
59
# gallium headers:
60
inc_gallium,
61
],
62
gnu_symbol_visibility: 'hidden',
63
)
64
65
ir3disasm = executable(
66
'ir3-disasm',
67
['ir3-disasm.c'],
68
link_with: libir3decode,
69
build_by_default: with_tools.contains('freedreno'),
70
include_directories: [
71
inc_src,
72
],
73
install: false,
74
)
75
76
encode_h = custom_target(
77
'encode.h',
78
input: ['encode.py', 'ir3.xml'],
79
output: 'encode.h',
80
command: [
81
prog_python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'
82
],
83
depend_files: isa_depend_files,
84
)
85
86
encode_files = [
87
encode_h,
88
'encode.c',
89
'isa.h',
90
]
91
92
libir3encode = static_library(
93
'ir3encode',
94
encode_files,
95
dependencies: [idep_mesautil, idep_nir],
96
include_directories: [
97
inc_src,
98
inc_include,
99
inc_freedreno,
100
inc_gallium,
101
],
102
gnu_symbol_visibility: 'hidden',
103
)
104
105