summaryrefslogtreecommitdiff
path: root/lib/mesa/mk/Makefile
blob: 4f7d66c190b5f4825e1f9fb36c4411e83f92261e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#	$OpenBSD: Makefile,v 1.12 2024/07/25 06:54:05 jsg Exp $

.include "config.mk"

SUBDIR=		include pkgconfig \
		libblake3 libcompiler libdri \
		libgallium libgalliumvl \
		libglapi_static libglcpp libglsl \
		libloader \
		libmesa libmesa_format \
		libmesa_util libmesa_util_c11 \
		libnir libpipe_loader_static libsoftpipe \
		libmesa_util_sse41 \
		libswdri libswkmsdri \
		libws_null libwsw libvtn libxmlconfig

.if ${XENOCARA_BUILD_DRI3:L} == "yes" || make(obj)
SUBDIR+=	libloader_dri3_helper
.endif

.if ${WITH_SSE41} == "yes" || make(obj)
SUBDIR+=	libmesa_sse41
.endif

.if ${WITH_AMD_VK} == "yes" || ${WITH_GALLIUM_RADEONSI} == "yes" || make(obj)
SUBDIR+=	libaddrlib libamd_common libamd_common_llvm libamdgpuwinsys
.endif

.if ${WITH_GALLIUM_CROCUS} == "yes" || ${WITH_GALLIUM_IRIS} == "yes" || \
    ${WITH_INTEL_VK} == "yes" || make(obj)
SUBDIR+=	libblorp libintel_common libintel_compiler libintel_dev \
		libintel-driver-ds \
		libintel_perf libisl libisl_tiled_memcpy \
		libisl_tiled_memcpy_sse41
.for GFX in 40 50 60 70 75 80 90 110 120 125 200
SUBDIR+=	libisl_gfx${GFX}
.endfor
.endif

.if ${WITH_GALLIUM_R300} == "yes" || ${WITH_GALLIUM_R600} == "yes" || \
    ${WITH_GALLIUM_RADEONSI} == "yes" || make(obj)
SUBDIR+=	libradeonwinsys
.endif

.if ${WITH_AMD_VK} == "yes" || ${WITH_INTEL_VK} == "yes" || make(obj)
SUBDIR+=	libvulkan_runtime libvulkan_util libvulkan_wsi
.endif

.if ${WITH_LLVM} == "yes" || make(obj)
SUBDIR+=	libllvmpipe
.endif

.if ${WITH_AMD_VK} == "yes" || make(obj)
SUBDIR+=	libaco
SUBDIR+=	libvulkan_radeon
.endif

.if ${WITH_INTEL_VK} == "yes" || make(obj)
SUBDIR+=	libanv_common  libanv_hasvk_common
.for GEN in 70 75 80 90 110 120 125 200
SUBDIR+=	libanv_gen${GEN}
.endfor
SUBDIR+=	libvulkan_intel libvulkan_intel_hasvk
.endif

.if ${WITH_GALLIUM_I915} == "yes" || make(obj)
SUBDIR+=	libi915 libi915drm
.endif

.if ${WITH_GALLIUM_CROCUS} == "yes" || make(obj)
SUBDIR+=	libcrocus libcrocuswinsys
.for GEN in 40 45 50 60 70 75 80
SUBDIR+=	libcrocus_per_hw_ver${GEN}
.endfor
.endif

.if ${WITH_GALLIUM_IRIS} == "yes" || make(obj)
SUBDIR+=	libiris libiriswinsys
.for GEN in 80 90 110 120 125 200
SUBDIR+=	libiris_gen${GEN}
.endfor
.endif

.if ${WITH_GALLIUM_R300} == "yes" || make(obj)
SUBDIR+=	libr300
.endif

.if ${WITH_GALLIUM_R600} == "yes" || make(obj)
SUBDIR+=	libr600
.endif

.if ${WITH_GALLIUM_RADEONSI} == "yes" || make(obj)
.for GEN in 6 7 8 9 10 103 11 115
SUBDIR+=	libradeonsi_gfx${GEN}
.endfor
SUBDIR+=	libradeonsi
.endif

# installed libs
SUBDIR+=	libglapi libgbm libEGL libGL libGLESv1_CM libGLESv2 libOSMesa

SUBDIR+=	libgallium_dri

.if ${WITH_GALLIUM_VA} == "yes" || make(obj)
SUBDIR+=	libva_st libgallium_drv_video
.endif

.include <bsd.subdir.mk>