1 # Copyright © 2020 Google, Inc
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:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
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
21 dep_lua = dependency('lua53', required: false)
22 if not dep_lua.found()
23 dep_lua = dependency('lua52', required: false)
25 if not dep_lua.found()
26 dep_lua = dependency('lua', required: false)
29 dep_libarchive = dependency('libarchive', required: false)
31 # Shared cmdstream decoding:
32 libfreedreno_cffdec = static_library(
45 include_directories: [
51 c_args : [ no_override_init_args ],
52 gnu_symbol_visibility: 'hidden',
56 libfreedreno_ir2, # for disasm_a2xx
57 libfreedreno_ir3, # for disasm_a3xx
59 build_by_default: false,
62 if dep_libarchive.found()
63 libfreedreno_io = static_library(
69 include_directories: [],
70 c_args : [no_override_init_args],
71 gnu_symbol_visibility: 'hidden',
75 build_by_default: false,
79 if dep_lua.found() and dep_libarchive.found()
87 include_directories: [
93 c_args : [no_override_init_args],
94 gnu_symbol_visibility: 'hidden',
102 build_by_default: with_tools.contains('freedreno'),
103 install : with_tools.contains('freedreno'),
107 crashdec = executable(
110 include_directories: [
116 gnu_symbol_visibility: 'hidden',
121 build_by_default: with_tools.contains('freedreno'),
122 install : with_tools.contains('freedreno'),
125 if dep_libarchive.found()
126 pgmdump = executable(
129 include_directories: [
134 gnu_symbol_visibility: 'hidden',
139 libfreedreno_ir2, # for disasm_a2xx
140 libfreedreno_ir3, # for disasm_a3xx
142 build_by_default: with_tools.contains('freedreno'),
145 pgmdump2 = executable(
148 include_directories: [
153 gnu_symbol_visibility: 'hidden',
158 libfreedreno_ir2, # for disasm_a2xx
159 libfreedreno_ir3, # for disasm_a3xx
161 build_by_default: with_tools.contains('freedreno'),