1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
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'
|