mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-05 11:33:57 +01:00
31 lines
655 B
Lua
31 lines
655 B
Lua
cflags{
|
|
'-I include',
|
|
'-I $dir',
|
|
'-I $outdir/include',
|
|
'-I $srcdir/include',
|
|
}
|
|
|
|
build('sed', '$outdir/include/ffi.h', '$srcdir/include/ffi.h.in', {
|
|
expr={
|
|
'-e s,@VERSION@,3.2.1,',
|
|
'-e s,@TARGET@,X86_64,',
|
|
'-e s,@HAVE_LONG_DOUBLE@,1,',
|
|
'-e s,@HAVE_LONG_DOUBLE_VARIANT@,0,',
|
|
'-e s,@FFI_EXEC_TRAMPOLINE_TABLE@,0,',
|
|
},
|
|
})
|
|
|
|
pkg.hdrs = {
|
|
copy('$outdir/include', '$srcdir/src/x86', {'ffitarget.h'}),
|
|
'$outdir/include/ffi.h',
|
|
install=true,
|
|
}
|
|
|
|
lib('libffi.a', [[src/(
|
|
prep_cif.c types.c raw_api.c java_raw_api.c closures.c
|
|
x86/(ffi64.c unix64.S ffi.c sysv.S)
|
|
)]], {'$dir/headers'})
|
|
file('lib/libffi.a', '644', '$outdir/libffi.a')
|
|
|
|
fetch 'git'
|