feat: add gtk & dependencies
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("4.23.3")
|
||||
description("The main GTK4 library.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/gtk/4.23/gtk-4.23.3.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
builddep("glib-dev @target")
|
||||
builddep("gdk-pixbuf-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libpango-dev @target")
|
||||
builddep("libcairo-gobject-dev @target")
|
||||
builddep("libepoxy-dev @target")
|
||||
builddep("libxkbcommon-dev @target")
|
||||
builddep("libgraphene-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"-Dx11-backend=false",
|
||||
"-Dmedia-gstreamer=enabled",
|
||||
"-Dprint-cups=disabled",
|
||||
"-Dvulkan=enabled",
|
||||
"-Dintrospection=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("gtk4")
|
||||
cpp.use_auto_pack(["bin", "lib"])
|
||||
|
||||
package("gtk4-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in New Issue
Block a user