master hovercats/oakiss / pkg / libjpeg-turbo / gen.lua
 1cflags{
 2	'-I $outdir',
 3	'-I $outdir/include',
 4}
 5
 6build('cat', '$outdir/jconfigint.h', {
 7	'$builddir/probe/HAVE__THREAD_LOCAL',
 8	'$builddir/probe/HAVE___BUILTIN_CTZL',
 9	'$dir/jconfigint.h',
10})
11
12pkg.deps = {
13	'$gendir/headers',
14	'$outdir/jconfigint.h',
15}
16
17lib('libjpeg-turbo.a', [[
18	jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c
19	jcicc.c jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c
20	jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c jdatadst.c
21	jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c jdicc.c jdinput.c
22	jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c jdpostct.c jdsample.c
23	jdtrans.c jerror.c jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c
24	jidctint.c jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c
25
26	jaricom.c jcarith.c jdarith.c jsimd_none.c
27]])
28
29pkg.hdrs = {
30	copy('$outdir/include', '$srcdir', {'jmorecfg.h', 'jpeglib.h'}),
31	copy('$outdir/include', '$dir', {'jconfig.h'}),
32}
33
34fetch 'git'