Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/auxiliary/pipe-loader/meson.build
4561 views
1
# Copyright © 2017 Dylan Baker
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
files_pipe_loader = files(
22
'pipe_loader.c',
23
'pipe_loader.h',
24
'pipe_loader_priv.h',
25
'pipe_loader_sw.c',
26
'driinfo_gallium.h',
27
)
28
29
libpipe_loader_defines = []
30
libpipe_loader_links = []
31
32
if dep_libdrm.found()
33
files_pipe_loader += files('pipe_loader_drm.c')
34
libpipe_loader_links += libloader
35
endif
36
if with_dri
37
libpipe_loader_defines += '-DHAVE_PIPE_LOADER_DRI'
38
endif
39
if with_gallium_drisw_kms
40
libpipe_loader_defines += '-DHAVE_PIPE_LOADER_KMS'
41
endif
42
43
libpipe_loader_static = static_library(
44
'pipe_loader_static',
45
files_pipe_loader,
46
include_directories : [
47
inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux,
48
inc_gallium_winsys,
49
],
50
c_args : [libpipe_loader_defines, '-DGALLIUM_STATIC_TARGETS=1'],
51
gnu_symbol_visibility : 'hidden',
52
link_with : [libpipe_loader_links],
53
dependencies : [dep_libdrm, idep_xmlconfig, idep_mesautil],
54
build_by_default : false,
55
)
56
57
libpipe_loader_dynamic = static_library(
58
'pipe_loader_dynamic',
59
files_pipe_loader,
60
include_directories : [
61
inc_util, inc_loader, inc_gallium, inc_include, inc_src, inc_gallium_aux,
62
inc_gallium_winsys,
63
],
64
c_args : [
65
libpipe_loader_defines,
66
'-DPIPE_SEARCH_DIR="@0@"'.format(
67
join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe')
68
)
69
],
70
gnu_symbol_visibility : 'hidden',
71
link_with : [libpipe_loader_links],
72
dependencies : [dep_libdrm, idep_xmlconfig, idep_mesautil],
73
build_by_default : false,
74
)
75
76