commit bcfe4ba

0uppy  ·  2026-04-08 16:28:15 +0000 UTC
parent 211a5de
slgro 1.2 - Replaced make for meson, added building instructions aswell

Fuck my life ALL of the commits i made for 1.2 that i made before were wiped bc of a woopsie i had with Forgejo ughhh
2 files changed,  +72, -0
+31, -0
 1@@ -0,0 +1,31 @@
 2+Hai!! Im dani, and im here to teach you how to build slgro *super epic music starts playing* ouowowuwowuwwowowuw
 3+-------------------------------------------------------------------------------------------------------
 4+
 5+dependencies
 6+================ 
 7+
 8+at build time :
 9+meson, ninja, wayland-dev, libxkbcommon-dev, libinput-dev, libdrm-dev, fontconfig-dev, pixman-dev, xcb-util-wm-dev, xwayland-dev, luajit-dev
10+
11+at runtime :
12+neuwld (https://git.sr.ht/~shrub900/neuwld) neuswc (https://git.sr.ht/~shrub900/neuswc), luajit
13+
14+
15+building
16+========
17+meson setup build
18+ninja -C build
19+sudo ninja -C build install
20+sudo chmod 4755 /usr/bin/swc-launch
21+
22+
23+config
24+======
25+copy the config.lua to ~/.config/slgro/config.lua and edit it to your liking :D
26+slgro reads it on startup, so, no need to recompile for config changes!!
27+
28+mkdir -p ~/.config/slgro
29+cp config.lua ~/.config/slgro/config.lua
30+
31+-------------------------------------------------------------------------------------------------------
32+That's it, with this you can now use slgro!! wowie!! for any questions, contact me at @ouppy:4d2.org xP
+41, -0
 1@@ -0,0 +1,41 @@
 2+project('slgro', 'c',
 3+  version: '1.2',
 4+  default_options: ['c_std=c99', 'warning_level=2'],
 5+)
 6+
 7+add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
 8+
 9+deps = [
10+  dependency('swc'),
11+  dependency('wayland-server'),
12+  dependency('xkbcommon'),
13+  dependency('libinput'),
14+  dependency('pixman-1'),
15+  dependency('libdrm'),
16+  dependency('wld'),
17+  dependency('libudev'),
18+  dependency('xcb'),
19+  dependency('xcb-composite'),
20+  dependency('xcb-ewmh'),
21+  dependency('xcb-icccm'),
22+  dependency('luajit'),
23+]
24+
25+src = [
26+  'source/slgro.c',
27+  'source/util.c',
28+  'source/lua-config.c',
29+]
30+
31+install_data('source/config.lua',
32+  install_dir: '/usr/share/slgro',
33+)
34+
35+executable('slgro', src,
36+  dependencies: deps,
37+  include_directories: include_directories('source'),
38+  install: true,
39+  install_dir: get_option('bindir'),
40+)
41+
42+