Files
oasis-linux-mirror/pkg/fontconfig/gen.lua
T
Michael Forney d4297a13c8 Use -isystem to include library headers
This way, warnings from headers that come from another package (in
particular linux-headers) won't show up when they get included.

To make sure we still track dependencies, use -MD instead of -MMD.
2020-06-05 03:01:44 -07:00

72 lines
1.3 KiB
Lua

cflags{
'-D HAVE_CONFIG_H',
'-I $dir',
'-I $outdir',
'-I $srcdir',
'-isystem $builddir/pkg/freetype/include',
'-isystem $builddir/pkg/expat/include',
'-isystem $builddir/pkg/util-linux/include',
}
pkg.hdrs = copy('$outdir/include/fontconfig', '$srcdir/fontconfig', {
'fontconfig.h',
'fcfreetype.h',
})
pkg.deps = {
'pkg/expat/headers',
'pkg/freetype/headers',
'pkg/util-linux/headers',
}
rule('makealias', '$srcdir/src/makealias $srcdir/src $out $in')
local function makealias(name, srcs)
local outs = {'$outdir/'..name..'.h', '$outdir/'..name..'tail.h'}
table.insert(pkg.deps, outs)
build('makealias', outs, {expand{'$srcdir/', srcs}, '|', '$srcdir/src/makealias'})
end
makealias('fcalias', {
'fontconfig/fontconfig.h',
'fontconfig/fcprivate.h',
'src/fcdeprecate.h',
})
makealias('fcftalias', 'fontconfig/fcfreetype.h')
lib('libfontconfig.a', [[
src/(
fcatomic.c
fccache.c
fccfg.c
fccharset.c
fccompat.c
fcdbg.c
fcdefault.c
fcdir.c
fcformat.c
fcfreetype.c
fcfs.c
fcptrlist.c
fchash.c
fcinit.c
fclang.c
fclist.c
fcmatch.c
fcmatrix.c
fcname.c
fcobjs.c
fcpat.c
fcrange.c
fcserialize.c
fcstat.c
fcstr.c
fcweight.c
fcxml.c
ftglue.c
)
$builddir/pkg/expat/libexpat.a.d
$builddir/pkg/freetype/libfreetype.a.d
$builddir/pkg/util-linux/libuuid.a.d
]])
fetch 'curl'