summaryrefslogtreecommitdiff
path: root/pkg/libjpeg-turbo/gen.lua
blob: d41756e7256ac0ec36dda68bc98df28efd1fd63a (plain)
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
cflags{
	'-I $outdir',
	'-I $outdir/include',
}

build('cat', '$outdir/jconfigint.h', {
	'$builddir/probe/HAVE__THREAD_LOCAL',
	'$builddir/probe/HAVE___BUILTIN_CTZL',
	'$dir/jconfigint.h',
})

pkg.deps = {
	'$gendir/headers',
	'$outdir/jconfigint.h',
}

lib('libjpeg-turbo.a', [[
	jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c
	jcicc.c jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c
	jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c jdatadst.c
	jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c jdicc.c jdinput.c
	jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c jdpostct.c jdsample.c
	jdtrans.c jerror.c jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c
	jidctint.c jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c

	jaricom.c jcarith.c jdarith.c jsimd_none.c
]])

pkg.hdrs = {
	copy('$outdir/include', '$srcdir', {'jmorecfg.h', 'jpeglib.h'}),
	copy('$outdir/include', '$dir', {'jconfig.h'}),
}

fetch 'git'