Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/meson.build
4545 views
1
# Copyright © 2017 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
inc_mesa = include_directories('mesa')
22
inc_mapi = include_directories('mapi')
23
inc_src = include_directories('.')
24
inc_gallium = include_directories('gallium/include')
25
inc_gallium_aux = include_directories('gallium/auxiliary')
26
inc_amd_common = include_directories('amd/common')
27
inc_amd_common_llvm = include_directories('amd/llvm')
28
inc_tool = include_directories('tool')
29
pps_datasources = []
30
pps_includes = []
31
32
libglsl_util = static_library(
33
'glsl_util',
34
files(
35
'mesa/main/extensions_table.c',
36
'mesa/program/prog_parameter.c',
37
'mesa/program/symbol_table.c',
38
'mesa/program/dummy_errors.c',
39
),
40
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
41
dependencies : dep_valgrind,
42
gnu_symbol_visibility : 'hidden',
43
build_by_default : false,
44
)
45
46
sha1_h = custom_target(
47
'git_sha1.h',
48
output : 'git_sha1.h',
49
command : [prog_python, git_sha1_gen_py, '--output', '@OUTPUT@'],
50
build_by_default : true,
51
build_always_stale : true, # commit sha1 can change without having touched these files
52
)
53
54
subdir('gtest')
55
if cc.get_id() == 'msvc'
56
subdir('getopt')
57
else
58
idep_getopt = null_dep
59
endif
60
subdir('android_stub')
61
subdir('util')
62
subdir('mapi')
63
# TODO: opengl
64
subdir('compiler')
65
if with_tools.contains('drm-shim')
66
subdir('drm-shim')
67
endif
68
if with_imgui
69
subdir('imgui')
70
endif
71
if with_platform_wayland
72
subdir('egl/wayland/wayland-drm')
73
endif
74
if with_any_vk or with_gallium_zink
75
subdir('vulkan')
76
endif
77
if with_gallium_radeonsi or with_amd_vk
78
subdir('amd')
79
endif
80
if with_any_broadcom
81
subdir('broadcom')
82
endif
83
if with_gallium_etnaviv
84
subdir('etnaviv')
85
endif
86
if with_gallium_freedreno or with_freedreno_vk
87
subdir('freedreno')
88
endif
89
if with_gallium_panfrost or with_gallium_lima or with_panfrost_vk
90
subdir('panfrost')
91
endif
92
if with_gallium_virgl or with_virtio_vk
93
subdir('virtio')
94
endif
95
if with_any_intel
96
subdir('intel')
97
endif
98
if with_microsoft_clc or with_gallium_d3d12 or with_spirv_to_dxil
99
subdir('microsoft')
100
endif
101
if with_gallium_nouveau
102
subdir('nouveau')
103
endif
104
if with_gallium_asahi or with_tools.contains('asahi')
105
subdir('asahi')
106
endif
107
subdir('mesa')
108
subdir('loader')
109
if with_platform_haiku
110
subdir('hgl')
111
endif
112
if with_glx == 'dri'
113
subdir('glx')
114
endif
115
if with_gbm
116
subdir('gbm')
117
else
118
inc_gbm = []
119
endif
120
if with_egl
121
subdir('egl')
122
endif
123
if with_gallium
124
subdir('gallium')
125
# This has to be here since it requires libgallium, and subdir cannot
126
# contain ..
127
if with_tests and with_shared_glapi
128
subdir('mesa/state_tracker/tests')
129
endif
130
endif
131
132
# This must be after at least mesa, glx, and gallium, since libgl will be
133
# defined in one of those subdirs depending on the glx provider.
134
if with_glx != 'disabled' and not with_glvnd
135
pkg.generate(
136
name : 'gl',
137
description : 'Mesa OpenGL Library',
138
version : meson.project_version(),
139
libraries : libgl,
140
libraries_private : gl_priv_libs,
141
requires_private : gl_priv_reqs,
142
variables : ['glx_tls=@0@'.format(use_elf_tls ? 'yes' : 'no')],
143
)
144
endif
145
146
subdir('tool')
147
148