• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ffi_sources = """
2src/prep_cif.c
3src/closures.c
4""".split()
5
6ffi_platforms = {
7    'MIPS_IRIX': ['src/mips/ffi.c', 'src/mips/o32.S', 'src/mips/n32.S'],
8    'MIPS_LINUX': ['src/mips/ffi.c', 'src/mips/o32.S'],
9    'X86': ['src/x86/ffi.c', 'src/x86/sysv.S', 'src/x86/win32.S'],
10    'X86_FREEBSD': ['src/x86/ffi.c', 'src/x86/freebsd.S'],
11    'X86_WIN32': ['src/x86/ffi.c', 'src/x86/win32.S'],
12    'SPARC': ['src/sparc/ffi.c', 'src/sparc/v8.S', 'src/sparc/v9.S'],
13    'ALPHA': ['src/alpha/ffi.c', 'src/alpha/osf.S'],
14    'IA64': ['src/ia64/ffi.c', 'src/ia64/unix.S'],
15    'M32R': ['src/m32r/sysv.S', 'src/m32r/ffi.c'],
16    'M68K': ['src/m68k/ffi.c', 'src/m68k/sysv.S'],
17    'POWERPC': ['src/powerpc/ffi.c', 'src/powerpc/ffi_sysv.c', 'src/powerpc/ffi_linux64.c', 'src/powerpc/sysv.S', 'src/powerpc/ppc_closure.S', 'src/powerpc/linux64.S', 'src/powerpc/linux64_closure.S'],
18    'POWERPC_AIX': ['src/powerpc/ffi_darwin.c', 'src/powerpc/aix.S', 'src/powerpc/aix_closure.S'],
19    'POWERPC_FREEBSD': ['src/powerpc/ffi.c', 'src/powerpc/sysv.S', 'src/powerpc/ppc_closure.S'],
20    'AARCH64': ['src/aarch64/sysv.S', 'src/aarch64/ffi.c'],
21    'ARM': ['src/arm/sysv.S', 'src/arm/ffi.c'],
22    'LIBFFI_CRIS': ['src/cris/sysv.S', 'src/cris/ffi.c'],
23    'FRV': ['src/frv/eabi.S', 'src/frv/ffi.c'],
24    'S390': ['src/s390/sysv.S', 'src/s390/ffi.c'],
25    'X86_64': ['src/x86/ffi64.c', 'src/x86/unix64.S', 'src/x86/ffi.c', 'src/x86/sysv.S'],
26    'SH': ['src/sh/sysv.S', 'src/sh/ffi.c'],
27    'SH64': ['src/sh64/sysv.S', 'src/sh64/ffi.c'],
28    'PA': ['src/pa/linux.S', 'src/pa/ffi.c'],
29    'PA_LINUX': ['src/pa/linux.S', 'src/pa/ffi.c'],
30    'PA_HPUX': ['src/pa/hpux32.S', 'src/pa/ffi.c'],
31}
32
33ffi_sources += ffi_platforms['@TARGET@']
34
35ffi_cflags = '@CFLAGS@'
36