linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
gen.sh
(1509B)
1 git 3fe15e7
2
3 cflags "
4 -DWITH_WAYLAND_SHM
5 -DWITH_WAYLAND_DRM
6 -I$outdir
7 -isystem $pkgdir/fontconfig/include
8 -isystem $pkgdir/freetype/include
9 -isystem $pkgdir/libdrm/include
10 -isystem $pkgdir/linux-headers/include
11 -isystem $pkgdir/pixman/include
12 -isystem $pkgdir/wayland/include
13 -Wno-pedantic
14 -Wno-unused-parameter
15 -Wno-sign-compare
16 -Wno-old-style-declaration
17 "
18
19 dep "
20 $outdir/protocol/wayland-drm-client-protocol.h
21 fontconfig/headers
22 freetype/headers
23 libdrm/headers
24 linux-headers/headers
25 pixman/headers
26 wayland/headers
27 "
28
29 include --prefix wld "
30 drm.h
31 pixman.h
32 wayland.h
33 wld.h
34 "
35
36 waylandproto protocol/wayland-drm.xml \
37 --client protocol/wayland-drm-client-protocol.h \
38 --server protocol/wayland-drm-server-protocol.h \
39 --code wayland-drm-protocol.c
40
41 srcs="
42 buffer.c
43 buffered_surface.c
44 color.c
45 context.c
46 drm.c
47 dumb.c
48 font.c
49 renderer.c
50 surface.c
51 pixman.c
52 wayland.c
53 wayland-shm.c
54 wayland-drm.c
55 $outdir/wayland-drm-protocol.c.o
56 "
57
58 libs="
59 $pkgdir/fontconfig/libfontconfig.a.d
60 $pkgdir/freetype/libfreetype.a.d
61 $pkgdir/libdrm/libdrm.a
62 $pkgdir/pixman/libpixman.a
63 $pkgdir/wayland/libwayland-client.a.d
64 "
65
66 if has_video_driver intel; then
67 cflags -DWITH_DRM_INTEL -isystem ./pkg/libdrm/src/intel
68 srcs="$srcs intel.c intel/batch.c"
69 libs="$libs $pkgdir/libdrm/libdrm_intel.a.d"
70 fi
71
72 if has_video_driver nouveau; then
73 cflags -DWITH_DRM_NOUVEAU -isystem ./pkg/libdrm/src/nouveau
74 srcs="$srcs nouveau.c"
75 libs="$libs $pkgdir/libdrm/libdrm_nouveau.a"
76 fi
77
78 lib libwld.a $srcs $libs