diff options
| author | Michael Forney <mforney@mforney.org> | 2017-09-17 00:03:34 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-09-25 19:23:06 -0700 |
| commit | ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch) | |
| tree | 48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/st | |
| parent | cb362b531d79708a259bbf070dee5104fd63df08 (diff) | |
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/st')
| -rw-r--r-- | pkg/st/gen.lua | 39 | ||||
| -rw-r--r-- | pkg/st/gen.rc | 32 |
2 files changed, 39 insertions, 32 deletions
diff --git a/pkg/st/gen.lua b/pkg/st/gen.lua new file mode 100644 index 00000000..3707f1be --- /dev/null +++ b/pkg/st/gen.lua @@ -0,0 +1,39 @@ +cflags{ + [[-D 'VERSION="0.7"']], + '-I $dir', + '-I pkg/fontconfig/src', + '-I pkg/libxkbcommon/src', + '-I $builddir/pkg/pixman/include', + '-I $builddir/pkg/wayland/include', + '-I $builddir/pkg/wayland-protocols/include', + '-I $builddir/pkg/wld/include', +} + +pkg.deps = { + '$builddir/pkg/fontconfig/fetch.stamp', + '$builddir/pkg/libxkbcommon/fetch.stamp', + 'pkg/pixman/headers', + 'pkg/wayland/headers', + 'pkg/wayland-protocols/headers', + 'pkg/wld/headers', +} + +exe('st', [[st.c $builddir/pkg/( + libxkbcommon/libxkbcommon.a + wayland/libwayland-client.a.d + wayland/libwayland-cursor.a.d + wayland-protocols/xdg-shell-unstable-v5-protocol.c.o + wld/libwld.a.d +)]]) +file('bin/st', '755', '$outdir/st') +man{'st.1'} + +local terminfo = {'s/st', 's/st-256color'} +build('tic', expand{'$outdir/', terminfo}, '$srcdir/st.info', { + ticflags='-x -o $outdir', +}) +for _, t in ipairs(terminfo) do + file('share/terminfo/'..t, '644', '$outdir/'..t) +end + +fetch 'git' diff --git a/pkg/st/gen.rc b/pkg/st/gen.rc deleted file mode 100644 index af3c562a..00000000 --- a/pkg/st/gen.rc +++ /dev/null @@ -1,32 +0,0 @@ -cflags\ - -D 'VERSION=''"0.7"''' \ - -I '$dir' \ - -I pkg/fontconfig/src\ - -I pkg/libxkbcommon/src\ - -I '$builddir'/pkg/pixman/include\ - -I '$builddir'/pkg/wayland/include\ - -I '$builddir'/pkg/wayland-protocols/include\ - -I '$builddir'/pkg/wld/include - -phony deps\ - '$builddir'/pkg/^(fontconfig libxkbcommon)^/fetch.stamp\ - pkg/^(pixman wayland wayland-protocols wld)^/headers - -exe st -d '$dir'/deps st.c '$builddir'/^(\ - pkg/libxkbcommon/libxkbcommon.a\ - pkg/wayland/libwayland-client.a.d\ - pkg/wayland/libwayland-cursor.a.d\ - pkg/wayland-protocols/xdg-shell-unstable-v5-protocol.c.o\ - pkg/wld/libwld.a.d\ -) -file bin/st '$outdir'/st 755 -man 1 st.1 - -terminfo=s/^(st st-256color) -terminfo_outs='$outdir'/$terminfo -build $"terminfo_outs tic '$srcdir'/st.info ; with\ - ticflags '-x -o $outdir' -for(t in $terminfo) - file share/terminfo/$t '$outdir'/$t 644 - -fetch git |
