123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- # Generated by devtools/yamaker from nixpkgs 22.05.
- LIBRARY()
- LICENSE(
- CC-PDDC AND
- MIT
- )
- LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
- VERSION(3.3)
- ORIGINAL_SOURCE(https://github.com/libffi/libffi/archive/v3.3.tar.gz)
- ADDINCL(
- contrib/restricted/libffi
- contrib/restricted/libffi/include
- contrib/restricted/libffi/src
- GLOBAL contrib/restricted/libffi/include
- )
- NO_COMPILER_WARNINGS()
- NO_RUNTIME()
- CFLAGS(
- -DHAVE_CONFIG_H
- GLOBAL -DFFI_BUILDING
- )
- SRCS(
- src/closures.c
- src/java_raw_api.c
- src/prep_cif.c
- src/raw_api.c
- src/types.c
- )
- IF (ARCH_ARM64 AND OS_ANDROID)
- ADDINCL(
- contrib/restricted/libffi/configs/aarch64-unknown-linux-android21
- GLOBAL contrib/restricted/libffi/configs/aarch64-unknown-linux-android21/include
- )
- SRCS(
- src/aarch64/ffi.c
- src/aarch64/sysv.S
- )
- ELSEIF (ARCH_ARM64 AND OS_DARWIN)
- ADDINCL(
- contrib/restricted/libffi/configs/aarch64-apple-macos
- GLOBAL contrib/restricted/libffi/configs/aarch64-apple-macos/include
- )
- SRCS(
- src/aarch64/ffi.c
- src/aarch64/sysv.S
- )
- ELSEIF (ARCH_ARM64 AND OS_IOS)
- ADDINCL(
- contrib/restricted/libffi/configs/aarch64-apple-iphoneos
- GLOBAL contrib/restricted/libffi/configs/aarch64-apple-iphoneos/include
- )
- SRCS(
- src/aarch64/ffi.c
- src/aarch64/sysv.S
- )
- ELSEIF (ARCH_ARM64 AND OS_LINUX)
- ADDINCL(
- contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu
- GLOBAL contrib/restricted/libffi/configs/aarch64-unknown-linux-gnu/include
- )
- SRCS(
- src/aarch64/ffi.c
- src/aarch64/sysv.S
- )
- ELSEIF (ARCH_ARM7 AND OS_ANDROID)
- ADDINCL(
- contrib/restricted/libffi/configs/armv7a-unknown-linux-androideabi16
- GLOBAL contrib/restricted/libffi/configs/armv7a-unknown-linux-androideabi16/include
- )
- SRCS(
- src/arm/ffi.c
- src/arm/sysv.S
- )
- ELSEIF (ARCH_ARM7 AND OS_LINUX)
- ADDINCL(
- contrib/restricted/libffi/configs/armv7a-unknown-linux-gnueabihf
- GLOBAL contrib/restricted/libffi/configs/armv7a-unknown-linux-gnueabihf/include
- )
- SRCS(
- src/arm/ffi.c
- src/arm/sysv.S
- )
- ELSEIF (ARCH_I386 AND OS_ANDROID)
- ADDINCL(
- contrib/restricted/libffi/configs/i686-pc-linux-android16
- GLOBAL contrib/restricted/libffi/configs/i686-pc-linux-android16/include
- )
- SRCS(
- src/x86/ffi.c
- src/x86/sysv.S
- )
- ELSEIF (ARCH_I386 AND OS_WINDOWS)
- ADDINCL(
- contrib/restricted/libffi/configs/i386-microsoft-windows
- GLOBAL contrib/restricted/libffi/configs/i386-microsoft-windows/include
- )
- LDFLAGS(/safeseh:no)
- SRCS(
- configs/i386-microsoft-windows/sysv_intel.masm
- src/x86/ffi.c
- )
- ELSEIF (ARCH_PPC64LE AND OS_LINUX)
- ADDINCL(
- contrib/restricted/libffi/configs/powerpc64le-unknown-linux-gnu
- GLOBAL contrib/restricted/libffi/configs/powerpc64le-unknown-linux-gnu/include
- )
- SRCS(
- src/powerpc/ffi.c
- src/powerpc/ffi_linux64.c
- src/powerpc/ffi_sysv.c
- src/powerpc/linux64.S
- src/powerpc/linux64_closure.S
- src/powerpc/ppc_closure.S
- src/powerpc/sysv.S
- )
- ELSEIF (ARCH_X86_64 AND OS_ANDROID)
- ADDINCL(
- contrib/restricted/libffi/configs/x86_64-pc-linux-android21
- GLOBAL contrib/restricted/libffi/configs/x86_64-pc-linux-android21/include
- )
- SRCS(
- src/x86/ffi64.c
- src/x86/ffiw64.c
- src/x86/unix64.S
- src/x86/win64.S
- )
- ELSEIF (ARCH_X86_64 AND OS_DARWIN)
- ADDINCL(
- contrib/restricted/libffi/configs/x86_64-apple-macosx
- GLOBAL contrib/restricted/libffi/configs/x86_64-apple-macosx/include
- )
- SRCS(
- src/x86/ffi64.c
- src/x86/ffiw64.c
- src/x86/unix64.S
- src/x86/win64.S
- )
- ELSEIF (ARCH_X86_64 AND OS_IOS)
- ADDINCL(
- contrib/restricted/libffi/configs/x86_64-apple-iphonesimulator
- GLOBAL contrib/restricted/libffi/configs/x86_64-apple-iphonesimulator/include
- )
- SRCS(
- src/x86/ffi64.c
- src/x86/ffiw64.c
- src/x86/unix64.S
- src/x86/win64.S
- )
- ELSEIF (ARCH_X86_64 AND OS_LINUX)
- ADDINCL(
- contrib/restricted/libffi/configs/x86_64-pc-linux-gnu
- GLOBAL contrib/restricted/libffi/configs/x86_64-pc-linux-gnu/include
- )
- SRCS(
- src/x86/ffi64.c
- src/x86/ffiw64.c
- src/x86/unix64.S
- src/x86/win64.S
- )
- ELSEIF (ARCH_X86_64 AND OS_WINDOWS)
- ADDINCL(
- contrib/restricted/libffi/configs/x86_64-microsoft-windows
- GLOBAL contrib/restricted/libffi/configs/x86_64-microsoft-windows/include
- )
- SRCS(
- configs/x86_64-microsoft-windows/win64_intel.masm
- src/x86/ffiw64.c
- )
- ELSEIF (OS_NONE)
- ADDINCL(
- contrib/restricted/libffi/configs/x86_64-pc-linux-gnu
- GLOBAL contrib/restricted/libffi/configs/x86_64-pc-linux-gnu/include
- )
- ELSE()
- MESSAGE(FATAL_ERROR Unsupported libffi platform: ${TARGET_PLATFORM} / ${HARDWARE_TYPE})
- ENDIF()
- END()
- RECURSE(
- testsuite
- )
|