Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / broadcom / simulator / meson.build
1 # Copyright © 2019 Raspberry Pi
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 inc_simulator = include_directories('.')
21
22 libbroadcom_simulator_files = files(
23 'v3d_simulator.c',
24 'v3d_simulator_wrapper.cpp',
25 )
26
27 files_per_version = files(
28 'v3dx_simulator.c',
29 )
30
31 v3d_args = []
32 dep_v3dv3 = dependency('v3dv3', required: false)
33 if dep_v3dv3.found()
34 v3d_args += '-DUSE_V3D_SIMULATOR'
35 endif
36
37 per_version_libs = []
38 foreach ver : v3d_versions
39 per_version_libs += static_library(
40 'v3d-simulator-v' + ver,
41 [files_per_version, v3d_xml_pack],
42 include_directories : [
43 inc_src, inc_include, inc_gallium_aux, inc_broadcom,
44 ],
45 c_args : [v3d_args, '-DV3D_VERSION=' + ver],
46 gnu_symbol_visibility: 'hidden',
47 dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind],
48 )
49 endforeach
50
51 libbroadcom_simulator = static_library(
52 'broadcom_simulator',
53 [libbroadcom_simulator_files],
54 include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux],
55 c_args : [v3d_args, no_override_init_args],
56 cpp_args : [v3d_args],
57 gnu_symbol_visibility : 'hidden',
58 dependencies : [dep_v3dv3, dep_libdrm, dep_valgrind],
59 link_with : [per_version_libs],
60 build_by_default : false,
61 )
62
63 v3d_libs += libbroadcom_simulator