aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/mesa.go
blob: 961cd736d7230e2f3bb6faf4d1ad3c84026f2197 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newLibglvnd() (pkg.Artifact, string) {
	const (
		version  = "1.7.0"
		checksum = "eIQJK2sgFQDHdeFkQO87TrSUaZRFG4y2DrwA8Ut-sGboI59uw1OOiIVqq2AIwnGY"
	)
	return t.NewPackage("libglvnd", version, newFromGitLab(
		"gitlab.freedesktop.org",
		"glvnd/libglvnd",
		"v"+version,
		checksum,
	), nil, &MesonHelper{
		Setup: []KV{
			{"Dx11", "enabled"},
			{"Dglx", "enabled"},
		},
		ScriptCompiled: `
export DISPLAY=':0'
Xvfb &
XVFB_PID="$!"
trap 'kill $XVFB_PID && wait $XVFB_PID' EXIT
`,
	},
		Binutils, // symbols check fail with llvm nm
		Xserver,  // test suite wants X server

		LibXext,
	), version
}
func init() {
	artifactsM[Libglvnd] = Metadata{
		f: Toolchain.newLibglvnd,

		Name:        "libglvnd",
		Description: "The GL Vendor-Neutral Dispatch library",
		Website:     "https://gitlab.freedesktop.org/glvnd/libglvnd",

		Dependencies: P{
			LibXext,
		},

		ID: 12098,
	}
}

func (t Toolchain) newLibdrm() (pkg.Artifact, string) {
	const (
		version  = "2.4.133"
		checksum = "bfj296NcR9DndO11hqDbSRFPqaweSLMqRk3dlCPZpM6FONX1WZ9J4JdbTDMUd1rU"
	)
	return t.NewPackage("libdrm", version, newFromGitLab(
		"gitlab.freedesktop.org",
		"mesa/libdrm",
		"libdrm-"+version,
		checksum,
	), nil, &MesonHelper{
		Setup: []KV{
			{"Dintel", "enabled"},
		},
	},
		Binutils, // symbols check fail with llvm nm

		Libpciaccess,
		KernelHeaders,
	), version
}
func init() {
	artifactsM[Libdrm] = Metadata{
		f: Toolchain.newLibdrm,

		Name:        "libdrm",
		Description: "a userspace library for accessing the DRM",
		Website:     "https://dri.freedesktop.org/",

		Dependencies: P{
			Libpciaccess,
		},

		ID: 1596,
	}
}

func (t Toolchain) newLibva() (pkg.Artifact, string) {
	const (
		version  = "2.23.0"
		checksum = "UmF5tPyWIG_w5kiR3KFpoYbF7UUcaak5tyc-RhOheNTwQlLkPlifreFYCM9FQxbq"
	)
	return t.NewPackage("libva", version, newFromGitHub(
		"intel/libva",
		version,
		checksum,
	), nil, &MesonHelper{
		Setup: []KV{
			{"Dwith_x11", "yes"},
			{"Dwith_glx", "yes"},
			{"Dwith_wayland", "yes"},
		},
	},
		Libdrm,
		LibXfixes,
		Libglvnd,
		Wayland,
		KernelHeaders,
	), version
}
func init() {
	artifactsM[Libva] = Metadata{
		f: Toolchain.newLibva,

		Name:        "libva",
		Description: "an implementation for VA-API (Video Acceleration API)",
		Website:     "https://01.org/vaapi",

		Dependencies: P{
			Libdrm,
			LibXfixes,
			Libglvnd,
			Wayland,
		},

		ID: 1752,
	}
}