diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-02 02:19:16 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-02 04:22:22 -0700 |
| commit | d3edcea45684cb5fce0a58d1572463990e8fd3ff (patch) | |
| tree | f570e9f67e4be9e8ea70f0e515f0c76d6ec47bf8 | |
| parent | 4f9e793714bf4dd12c158e93892e04245f7319fc (diff) | |
Use lua header target
| -rw-r--r-- | pkg/lpeg/gen.lua | 6 | ||||
| -rw-r--r-- | pkg/mpv/gen.lua | 4 | ||||
| -rw-r--r-- | pkg/vis/gen.lua | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/pkg/lpeg/gen.lua b/pkg/lpeg/gen.lua index 71a7ec0d..f08b64f2 100644 --- a/pkg/lpeg/gen.lua +++ b/pkg/lpeg/gen.lua @@ -1,15 +1,17 @@ cflags{ '-std=c99', '-D NDEBUG', - '-I $basedir/pkg/lua/src/src', + '-I $builddir/pkg/lua/include', } +pkg.deps = {'pkg/lua/headers'} + lib('liblpeg.a', { 'lpvm.c', 'lpcap.c', 'lptree.c', 'lpcode.c', 'lpprint.c', -}, {'pkg/lua/fetch'}) +}) fetch 'curl' diff --git a/pkg/mpv/gen.lua b/pkg/mpv/gen.lua index 15110134..70e1a5da 100644 --- a/pkg/mpv/gen.lua +++ b/pkg/mpv/gen.lua @@ -139,9 +139,9 @@ if options['HAVE_LIBASS'] then table.insert(pkg.deps, 'pkg/libass/headers') end if options['HAVE_LUA'] then - cflags{'-I $basedir/pkg/lua/src/src'} + cflags{'-I $builddir/pkg/lua/include'} table.insert(libs, 'lua/liblua.a') - table.insert(pkg.deps, 'pkg/lua/fetch') + table.insert(pkg.deps, 'pkg/lua/headers') end if options['HAVE_WAYLAND'] then cflags{ diff --git a/pkg/vis/gen.lua b/pkg/vis/gen.lua index 0a585017..a4e399c3 100644 --- a/pkg/vis/gen.lua +++ b/pkg/vis/gen.lua @@ -16,7 +16,7 @@ cflags{ '-D NDEBUG', '-I $outdir', '-I $basedir/pkg/libtermkey/src', - '-I $basedir/pkg/lua/src/src', + '-I $builddir/pkg/lua/include', '-I $builddir/pkg/ncurses/include', } @@ -25,7 +25,7 @@ build('copy', '$outdir/config.h', '$srcdir/config.def.h') pkg.deps = { '$outdir/config.h', 'pkg/libtermkey/fetch', - 'pkg/lua/fetch', + 'pkg/lua/headers', 'pkg/ncurses/headers', } |
