mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-12 21:34:47 +02:00
d4297a13c8
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.
72 lines
1.3 KiB
Lua
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'
|