Fix ChangeLog merge
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -18,4 +18,5 @@ libffi*gz
|
|||||||
autom4te.cache
|
autom4te.cache
|
||||||
libffi.xcodeproj/xcuserdata
|
libffi.xcodeproj/xcuserdata
|
||||||
libffi.xcodeproj/project.xcworkspace
|
libffi.xcodeproj/project.xcworkspace
|
||||||
ios/
|
build_*/
|
||||||
|
darwin_*/
|
||||||
|
|||||||
34
ChangeLog
34
ChangeLog
@@ -2,6 +2,40 @@
|
|||||||
|
|
||||||
* src/mips/n32.S: Fix call floating point va function.
|
* src/mips/n32.S: Fix call floating point va function.
|
||||||
|
|
||||||
|
2014-01-21 Zachary Waldowski <zach@waldowski.me>
|
||||||
|
|
||||||
|
* src/aarch64/ffi.c: Fix missing semicolons on assertions under
|
||||||
|
debug mode.
|
||||||
|
|
||||||
|
2013-12-30 Zachary Waldowski <zach@waldowski.me>
|
||||||
|
|
||||||
|
* .gitignore: Exclude darwin_* generated source and build_* trees.
|
||||||
|
* src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
|
||||||
|
previous prototype warnings.
|
||||||
|
* src/arm/ffi.c: Prevent NULL dereference, fix short type warning
|
||||||
|
* src/dlmalloc.c: Fix warnings from set_segment_flags return type,
|
||||||
|
and the native use of size_t for malloc on platforms
|
||||||
|
* src/arm/sysv.S: Use unified syntax. Clang clean-ups for
|
||||||
|
ARM_FUNC_START.
|
||||||
|
* generate-osx-source-and-headers.py: Remove.
|
||||||
|
* build-ios.sh: Remove.
|
||||||
|
* libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
|
||||||
|
x86_64+aarch64 pieces in library. Export headers properly.
|
||||||
|
* src/x86/ffi64.c: More Clang warning clean-ups.
|
||||||
|
* src/closures.c (open_temp_exec_file_dir): Use size_t.
|
||||||
|
* src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
|
||||||
|
* src/aarch64/sysv.S: Use CNAME for global symbols. Only use
|
||||||
|
.size for ELF targets.
|
||||||
|
* src/aarch64/ffi.c: Clean up for double == long double. Clean up
|
||||||
|
from Clang warnings. Use Clang cache invalidation builtin. Use
|
||||||
|
size_t in place of unsigned in many places. Accommodate for
|
||||||
|
differences in Apple AArch64 ABI.
|
||||||
|
|
||||||
|
2013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
|
||||||
|
|
||||||
|
* generate-darwin-source-and-headers.py: Clean up, modernize,
|
||||||
|
merged version of previous scripts.
|
||||||
|
|
||||||
2013-11-21 Anthony Green <green@moxielogic.com>
|
2013-11-21 Anthony Green <green@moxielogic.com>
|
||||||
|
|
||||||
* configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
|
* configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ SUBDIRS = include testsuite man
|
|||||||
|
|
||||||
EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
|
EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
|
||||||
src/aarch64/ffi.c src/aarch64/ffitarget.h src/aarch64/sysv.S \
|
src/aarch64/ffi.c src/aarch64/ffitarget.h src/aarch64/sysv.S \
|
||||||
build-ios.sh src/alpha/ffi.c src/alpha/osf.S \
|
src/alpha/ffi.c src/alpha/osf.S \
|
||||||
src/alpha/ffitarget.h src/arc/ffi.c src/arc/arcompact.S \
|
src/alpha/ffitarget.h src/arc/ffi.c src/arc/arcompact.S \
|
||||||
src/arc/ffitarget.h src/arm/ffi.c src/arm/sysv.S \
|
src/arc/ffitarget.h src/arm/ffi.c src/arm/sysv.S \
|
||||||
src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
|
src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
|
||||||
|
|||||||
@@ -593,7 +593,7 @@ ACLOCAL_AMFLAGS = -I m4
|
|||||||
SUBDIRS = include testsuite man
|
SUBDIRS = include testsuite man
|
||||||
EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
|
EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj configure.host \
|
||||||
src/aarch64/ffi.c src/aarch64/ffitarget.h src/aarch64/sysv.S \
|
src/aarch64/ffi.c src/aarch64/ffitarget.h src/aarch64/sysv.S \
|
||||||
build-ios.sh src/alpha/ffi.c src/alpha/osf.S \
|
src/alpha/ffi.c src/alpha/osf.S \
|
||||||
src/alpha/ffitarget.h src/arc/ffi.c src/arc/arcompact.S \
|
src/alpha/ffitarget.h src/arc/ffi.c src/arc/arcompact.S \
|
||||||
src/arc/ffitarget.h src/arm/ffi.c src/arm/sysv.S \
|
src/arc/ffitarget.h src/arm/ffi.c src/arm/sysv.S \
|
||||||
src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
|
src/arm/ffitarget.h src/avr32/ffi.c src/avr32/sysv.S \
|
||||||
|
|||||||
2
README
2
README
@@ -51,6 +51,7 @@ tested:
|
|||||||
|-----------------+------------------+-------------------------|
|
|-----------------+------------------+-------------------------|
|
||||||
| Architecture | Operating System | Compiler |
|
| Architecture | Operating System | Compiler |
|
||||||
|-----------------+------------------+-------------------------|
|
|-----------------+------------------+-------------------------|
|
||||||
|
| AArch64 (ARM64) | iOS | Clang |
|
||||||
| AArch64 | Linux | GCC |
|
| AArch64 | Linux | GCC |
|
||||||
| Alpha | Linux | GCC |
|
| Alpha | Linux | GCC |
|
||||||
| Alpha | Tru64 | GCC |
|
| Alpha | Tru64 | GCC |
|
||||||
@@ -169,6 +170,7 @@ History
|
|||||||
See the ChangeLog files for details.
|
See the ChangeLog files for details.
|
||||||
|
|
||||||
3.0.14 TBD
|
3.0.14 TBD
|
||||||
|
Add AArch64 (ARM64) iOS support.
|
||||||
Add Nios II support.
|
Add Nios II support.
|
||||||
Add m88k and DEC VAX support.
|
Add m88k and DEC VAX support.
|
||||||
Fix MIPS N32 ABI bug.
|
Fix MIPS N32 ABI bug.
|
||||||
|
|||||||
67
build-ios.sh
67
build-ios.sh
@@ -1,67 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
PLATFORM_IOS=/Developer/Platforms/iPhoneOS.platform/
|
|
||||||
PLATFORM_IOS_SIM=/Developer/Platforms/iPhoneSimulator.platform/
|
|
||||||
SDK_IOS_VERSION="4.2"
|
|
||||||
MIN_IOS_VERSION="3.0"
|
|
||||||
OUTPUT_DIR="universal-ios"
|
|
||||||
|
|
||||||
build_target () {
|
|
||||||
local platform=$1
|
|
||||||
local sdk=$2
|
|
||||||
local arch=$3
|
|
||||||
local triple=$4
|
|
||||||
local builddir=$5
|
|
||||||
|
|
||||||
mkdir -p "${builddir}"
|
|
||||||
pushd "${builddir}"
|
|
||||||
export CC="${platform}"/Developer/usr/bin/gcc-4.2
|
|
||||||
export CFLAGS="-arch ${arch} -isysroot ${sdk} -miphoneos-version-min=${MIN_IOS_VERSION}"
|
|
||||||
../configure --host=${triple} && make
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
# Build all targets
|
|
||||||
build_target "${PLATFORM_IOS}" "${PLATFORM_IOS}/Developer/SDKs/iPhoneOS${SDK_IOS_VERSION}.sdk/" armv6 arm-apple-darwin10 armv6-ios
|
|
||||||
build_target "${PLATFORM_IOS}" "${PLATFORM_IOS}/Developer/SDKs/iPhoneOS${SDK_IOS_VERSION}.sdk/" armv7 arm-apple-darwin10 armv7-ios
|
|
||||||
build_target "${PLATFORM_IOS_SIM}" "${PLATFORM_IOS_SIM}/Developer/SDKs/iPhoneSimulator${SDK_IOS_VERSION}.sdk/" i386 i386-apple-darwin10 i386-ios-sim
|
|
||||||
|
|
||||||
# Create universal output directories
|
|
||||||
mkdir -p "${OUTPUT_DIR}"
|
|
||||||
mkdir -p "${OUTPUT_DIR}/include"
|
|
||||||
mkdir -p "${OUTPUT_DIR}/include/armv6"
|
|
||||||
mkdir -p "${OUTPUT_DIR}/include/armv7"
|
|
||||||
mkdir -p "${OUTPUT_DIR}/include/i386"
|
|
||||||
|
|
||||||
# Create the universal binary
|
|
||||||
lipo -create armv6-ios/.libs/libffi.a armv7-ios/.libs/libffi.a i386-ios-sim/.libs/libffi.a -output "${OUTPUT_DIR}/libffi.a"
|
|
||||||
|
|
||||||
# Copy in the headers
|
|
||||||
copy_headers () {
|
|
||||||
local src=$1
|
|
||||||
local dest=$2
|
|
||||||
|
|
||||||
# Fix non-relative header reference
|
|
||||||
sed 's/<ffitarget.h>/"ffitarget.h"/' < "${src}/include/ffi.h" > "${dest}/ffi.h"
|
|
||||||
cp "${src}/include/ffitarget.h" "${dest}"
|
|
||||||
}
|
|
||||||
|
|
||||||
copy_headers armv6-ios "${OUTPUT_DIR}/include/armv6"
|
|
||||||
copy_headers armv7-ios "${OUTPUT_DIR}/include/armv7"
|
|
||||||
copy_headers i386-ios-sim "${OUTPUT_DIR}/include/i386"
|
|
||||||
|
|
||||||
# Create top-level header
|
|
||||||
(
|
|
||||||
cat << EOF
|
|
||||||
#ifdef __arm__
|
|
||||||
#include <arm/arch.h>
|
|
||||||
#ifdef _ARM_ARCH_6
|
|
||||||
#include "include/armv6/ffi.h"
|
|
||||||
#elif _ARM_ARCH_7
|
|
||||||
#include "include/armv7/ffi.h"
|
|
||||||
#endif
|
|
||||||
#elif defined(__i386__)
|
|
||||||
#include "include/i386/ffi.h"
|
|
||||||
#endif
|
|
||||||
EOF
|
|
||||||
) > "${OUTPUT_DIR}/ffi.h"
|
|
||||||
209
generate-darwin-source-and-headers.py
Normal file
209
generate-darwin-source-and-headers.py
Normal file
@@ -0,0 +1,209 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
import subprocess
|
||||||
|
import os
|
||||||
|
import errno
|
||||||
|
import collections
|
||||||
|
import glob
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
class Platform(object):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class simulator_platform(Platform):
|
||||||
|
directory = 'darwin_ios'
|
||||||
|
sdk = 'iphonesimulator'
|
||||||
|
arch = 'i386'
|
||||||
|
triple = 'i386-apple-darwin11'
|
||||||
|
version_min = '-miphoneos-version-min=5.1.1'
|
||||||
|
|
||||||
|
prefix = "#ifdef __i386__\n\n"
|
||||||
|
suffix = "\n\n#endif"
|
||||||
|
src_dir = 'x86'
|
||||||
|
src_files = ['darwin.S', 'ffi.c']
|
||||||
|
|
||||||
|
|
||||||
|
class simulator64_platform(Platform):
|
||||||
|
directory = 'darwin_ios'
|
||||||
|
sdk = 'iphonesimulator'
|
||||||
|
arch = 'x86_64'
|
||||||
|
triple = 'x86_64-apple-darwin13'
|
||||||
|
version_min = '-miphoneos-version-min=7.0'
|
||||||
|
|
||||||
|
prefix = "#ifdef __x86_64__\n\n"
|
||||||
|
suffix = "\n\n#endif"
|
||||||
|
src_dir = 'x86'
|
||||||
|
src_files = ['darwin64.S', 'ffi64.c']
|
||||||
|
|
||||||
|
|
||||||
|
class device_platform(Platform):
|
||||||
|
directory = 'darwin_ios'
|
||||||
|
sdk = 'iphoneos'
|
||||||
|
arch = 'armv7'
|
||||||
|
triple = 'arm-apple-darwin11'
|
||||||
|
version_min = '-miphoneos-version-min=5.1.1'
|
||||||
|
|
||||||
|
prefix = "#ifdef __arm__\n\n"
|
||||||
|
suffix = "\n\n#endif"
|
||||||
|
src_dir = 'arm'
|
||||||
|
src_files = ['sysv.S', 'trampoline.S', 'ffi.c']
|
||||||
|
|
||||||
|
|
||||||
|
class device64_platform(Platform):
|
||||||
|
directory = 'darwin_ios'
|
||||||
|
sdk = 'iphoneos'
|
||||||
|
arch = 'arm64'
|
||||||
|
triple = 'aarch64-apple-darwin13'
|
||||||
|
version_min = '-miphoneos-version-min=7.0'
|
||||||
|
|
||||||
|
prefix = "#ifdef __arm64__\n\n"
|
||||||
|
suffix = "\n\n#endif"
|
||||||
|
src_dir = 'aarch64'
|
||||||
|
src_files = ['sysv.S', 'ffi.c']
|
||||||
|
|
||||||
|
|
||||||
|
class desktop32_platform(Platform):
|
||||||
|
directory = 'darwin_osx'
|
||||||
|
sdk = 'macosx'
|
||||||
|
arch = 'i386'
|
||||||
|
triple = 'i386-apple-darwin10'
|
||||||
|
version_min = '-mmacosx-version-min=10.6'
|
||||||
|
src_dir = 'x86'
|
||||||
|
src_files = ['darwin.S', 'ffi.c']
|
||||||
|
|
||||||
|
prefix = "#ifdef __i386__\n\n"
|
||||||
|
suffix = "\n\n#endif"
|
||||||
|
|
||||||
|
|
||||||
|
class desktop64_platform(Platform):
|
||||||
|
directory = 'darwin_osx'
|
||||||
|
sdk = 'macosx'
|
||||||
|
arch = 'x86_64'
|
||||||
|
triple = 'x86_64-apple-darwin10'
|
||||||
|
version_min = '-mmacosx-version-min=10.6'
|
||||||
|
|
||||||
|
prefix = "#ifdef __x86_64__\n\n"
|
||||||
|
suffix = "\n\n#endif"
|
||||||
|
src_dir = 'x86'
|
||||||
|
src_files = ['darwin64.S', 'ffi64.c']
|
||||||
|
|
||||||
|
|
||||||
|
def mkdir_p(path):
|
||||||
|
try:
|
||||||
|
os.makedirs(path)
|
||||||
|
except OSError as exc: # Python >2.5
|
||||||
|
if exc.errno == errno.EEXIST:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''):
|
||||||
|
mkdir_p(dst_dir)
|
||||||
|
out_filename = filename
|
||||||
|
|
||||||
|
if file_suffix:
|
||||||
|
split_name = os.path.splitext(filename)
|
||||||
|
out_filename = "%s_%s%s" % (split_name[0], file_suffix, split_name[1])
|
||||||
|
|
||||||
|
with open(os.path.join(src_dir, filename)) as in_file:
|
||||||
|
with open(os.path.join(dst_dir, out_filename), 'w') as out_file:
|
||||||
|
if prefix:
|
||||||
|
out_file.write(prefix)
|
||||||
|
|
||||||
|
out_file.write(in_file.read())
|
||||||
|
|
||||||
|
if suffix:
|
||||||
|
out_file.write(suffix)
|
||||||
|
|
||||||
|
|
||||||
|
def list_files(src_dir, pattern=None, filelist=None):
|
||||||
|
if pattern: filelist = glob.iglob(os.path.join(src_dir, pattern))
|
||||||
|
for file in filelist:
|
||||||
|
yield os.path.basename(file)
|
||||||
|
|
||||||
|
|
||||||
|
def copy_files(src_dir, dst_dir, pattern=None, filelist=None, file_suffix=None, prefix=None, suffix=None):
|
||||||
|
for filename in list_files(src_dir, pattern=pattern, filelist=filelist):
|
||||||
|
move_file(src_dir, dst_dir, filename, file_suffix=file_suffix, prefix=prefix, suffix=suffix)
|
||||||
|
|
||||||
|
|
||||||
|
def copy_src_platform_files(platform):
|
||||||
|
src_dir = os.path.join('src', platform.src_dir)
|
||||||
|
dst_dir = os.path.join(platform.directory, 'src', platform.src_dir)
|
||||||
|
copy_files(src_dir, dst_dir, filelist=platform.src_files, file_suffix=platform.arch, prefix=platform.prefix, suffix=platform.suffix)
|
||||||
|
|
||||||
|
|
||||||
|
def build_target(platform, platform_headers):
|
||||||
|
def xcrun_cmd(cmd):
|
||||||
|
return 'xcrun -sdk %s %s -arch %s' % (platform.sdk, cmd, platform.arch)
|
||||||
|
|
||||||
|
tag='%s-%s' % (platform.sdk, platform.arch)
|
||||||
|
build_dir = 'build_%s' % tag
|
||||||
|
mkdir_p(build_dir)
|
||||||
|
env = dict(CC=xcrun_cmd('clang'),
|
||||||
|
LD=xcrun_cmd('ld'),
|
||||||
|
CFLAGS='%s' % (platform.version_min))
|
||||||
|
working_dir = os.getcwd()
|
||||||
|
try:
|
||||||
|
os.chdir(build_dir)
|
||||||
|
subprocess.check_call(['../configure', '-host', platform.triple], env=env)
|
||||||
|
finally:
|
||||||
|
os.chdir(working_dir)
|
||||||
|
|
||||||
|
for src_dir in [build_dir, os.path.join(build_dir, 'include')]:
|
||||||
|
copy_files(src_dir,
|
||||||
|
os.path.join(platform.directory, 'include'),
|
||||||
|
pattern='*.h',
|
||||||
|
file_suffix=platform.arch,
|
||||||
|
prefix=platform.prefix,
|
||||||
|
suffix=platform.suffix)
|
||||||
|
|
||||||
|
for filename in list_files(src_dir, pattern='*.h'):
|
||||||
|
platform_headers[filename].add((platform.prefix, platform.arch, platform.suffix))
|
||||||
|
|
||||||
|
|
||||||
|
def make_tramp():
|
||||||
|
with open('src/arm/trampoline.S', 'w') as tramp_out:
|
||||||
|
p = subprocess.Popen(['bash', 'src/arm/gentramp.sh'], stdout=tramp_out)
|
||||||
|
p.wait()
|
||||||
|
|
||||||
|
|
||||||
|
def generate_source_and_headers(generate_osx=True, generate_ios=True):
|
||||||
|
copy_files('src', 'darwin_common/src', pattern='*.c')
|
||||||
|
copy_files('include', 'darwin_common/include', pattern='*.h')
|
||||||
|
|
||||||
|
if generate_ios:
|
||||||
|
make_tramp()
|
||||||
|
copy_src_platform_files(simulator_platform)
|
||||||
|
copy_src_platform_files(simulator64_platform)
|
||||||
|
copy_src_platform_files(device_platform)
|
||||||
|
copy_src_platform_files(device64_platform)
|
||||||
|
if generate_osx:
|
||||||
|
copy_src_platform_files(desktop32_platform)
|
||||||
|
copy_src_platform_files(desktop64_platform)
|
||||||
|
|
||||||
|
platform_headers = collections.defaultdict(set)
|
||||||
|
|
||||||
|
if generate_ios:
|
||||||
|
build_target(simulator_platform, platform_headers)
|
||||||
|
build_target(simulator64_platform, platform_headers)
|
||||||
|
build_target(device_platform, platform_headers)
|
||||||
|
build_target(device64_platform, platform_headers)
|
||||||
|
if generate_osx:
|
||||||
|
build_target(desktop32_platform, platform_headers)
|
||||||
|
build_target(desktop64_platform, platform_headers)
|
||||||
|
|
||||||
|
mkdir_p('darwin_common/include')
|
||||||
|
for header_name, tag_tuples in platform_headers.iteritems():
|
||||||
|
basename, suffix = os.path.splitext(header_name)
|
||||||
|
with open(os.path.join('darwin_common/include', header_name), 'w') as header:
|
||||||
|
for tag_tuple in tag_tuples:
|
||||||
|
header.write('%s#include <%s_%s%s>\n%s\n' % (tag_tuple[0], basename, tag_tuple[1], suffix, tag_tuple[2]))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument('--only-ios', action='store_true', default=False)
|
||||||
|
parser.add_argument('--only-osx', action='store_true', default=False)
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
generate_source_and_headers(generate_osx=not args.only_ios, generate_ios=not args.only_osx)
|
||||||
@@ -1,160 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import subprocess
|
|
||||||
import re
|
|
||||||
import os
|
|
||||||
import errno
|
|
||||||
import collections
|
|
||||||
import sys
|
|
||||||
|
|
||||||
class Platform(object):
|
|
||||||
pass
|
|
||||||
|
|
||||||
sdk_re = re.compile(r'.*-sdk ([a-zA-Z0-9.]*)')
|
|
||||||
|
|
||||||
def sdkinfo(sdkname):
|
|
||||||
ret = {}
|
|
||||||
for line in subprocess.Popen(['xcodebuild', '-sdk', sdkname, '-version'], stdout=subprocess.PIPE).stdout:
|
|
||||||
kv = line.strip().split(': ', 1)
|
|
||||||
if len(kv) == 2:
|
|
||||||
k,v = kv
|
|
||||||
ret[k] = v
|
|
||||||
return ret
|
|
||||||
|
|
||||||
sim_sdk_info = sdkinfo('iphonesimulator')
|
|
||||||
device_sdk_info = sdkinfo('iphoneos')
|
|
||||||
|
|
||||||
def latest_sdks():
|
|
||||||
latest_sim = None
|
|
||||||
latest_device = None
|
|
||||||
for line in subprocess.Popen(['xcodebuild', '-showsdks'], stdout=subprocess.PIPE).stdout:
|
|
||||||
match = sdk_re.match(line)
|
|
||||||
if match:
|
|
||||||
if 'Simulator' in line:
|
|
||||||
latest_sim = match.group(1)
|
|
||||||
elif 'iOS' in line:
|
|
||||||
latest_device = match.group(1)
|
|
||||||
|
|
||||||
return latest_sim, latest_device
|
|
||||||
|
|
||||||
sim_sdk, device_sdk = latest_sdks()
|
|
||||||
|
|
||||||
class simulator_platform(Platform):
|
|
||||||
sdk='iphonesimulator'
|
|
||||||
arch = 'i386'
|
|
||||||
name = 'simulator'
|
|
||||||
triple = 'i386-apple-darwin10'
|
|
||||||
sdkroot = sim_sdk_info['Path']
|
|
||||||
|
|
||||||
prefix = "#if !defined(__arm__) && defined(__i386__)\n\n"
|
|
||||||
suffix = "\n\n#endif"
|
|
||||||
|
|
||||||
class device_platform(Platform):
|
|
||||||
sdk='iphoneos'
|
|
||||||
name = 'ios'
|
|
||||||
arch = 'armv7'
|
|
||||||
triple = 'arm-apple-darwin10'
|
|
||||||
sdkroot = device_sdk_info['Path']
|
|
||||||
|
|
||||||
prefix = "#ifdef __arm__\n\n"
|
|
||||||
suffix = "\n\n#endif"
|
|
||||||
|
|
||||||
|
|
||||||
def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''):
|
|
||||||
if not os.path.exists(dst_dir):
|
|
||||||
os.makedirs(dst_dir)
|
|
||||||
|
|
||||||
out_filename = filename
|
|
||||||
|
|
||||||
if file_suffix:
|
|
||||||
split_name = os.path.splitext(filename)
|
|
||||||
out_filename = "%s_%s%s" % (split_name[0], file_suffix, split_name[1])
|
|
||||||
|
|
||||||
with open(os.path.join(src_dir, filename)) as in_file:
|
|
||||||
with open(os.path.join(dst_dir, out_filename), 'w') as out_file:
|
|
||||||
if prefix:
|
|
||||||
out_file.write(prefix)
|
|
||||||
|
|
||||||
out_file.write(in_file.read())
|
|
||||||
|
|
||||||
if suffix:
|
|
||||||
out_file.write(suffix)
|
|
||||||
|
|
||||||
headers_seen = collections.defaultdict(set)
|
|
||||||
|
|
||||||
def move_source_tree(src_dir, dest_dir, dest_include_dir, arch=None, prefix=None, suffix=None):
|
|
||||||
for root, dirs, files in os.walk(src_dir, followlinks=True):
|
|
||||||
relroot = os.path.relpath(root,src_dir)
|
|
||||||
|
|
||||||
def move_dir(arch, prefix='', suffix='', files=[]):
|
|
||||||
for file in files:
|
|
||||||
file_suffix = None
|
|
||||||
if file.endswith('.h'):
|
|
||||||
if dest_include_dir:
|
|
||||||
file_suffix = arch
|
|
||||||
if arch:
|
|
||||||
headers_seen[file].add(arch)
|
|
||||||
move_file(root, dest_include_dir, file, arch, prefix=prefix, suffix=suffix)
|
|
||||||
|
|
||||||
elif dest_dir:
|
|
||||||
outroot = os.path.join(dest_dir, relroot)
|
|
||||||
move_file(root, outroot, file, prefix=prefix, suffix=suffix)
|
|
||||||
|
|
||||||
if relroot == '.':
|
|
||||||
move_dir(arch=arch,
|
|
||||||
files=files,
|
|
||||||
prefix=prefix,
|
|
||||||
suffix=suffix)
|
|
||||||
elif relroot == 'arm':
|
|
||||||
move_dir(arch='arm',
|
|
||||||
prefix="#ifdef __arm__\n\n",
|
|
||||||
suffix="\n\n#endif",
|
|
||||||
files=files)
|
|
||||||
elif relroot == 'x86':
|
|
||||||
move_dir(arch='i386',
|
|
||||||
prefix="#if !defined(__arm__) && defined(__i386__)\n\n",
|
|
||||||
suffix="\n\n#endif",
|
|
||||||
files=files)
|
|
||||||
|
|
||||||
def build_target(platform):
|
|
||||||
def xcrun_cmd(cmd):
|
|
||||||
return subprocess.check_output(['xcrun', '-sdk', platform.sdkroot, '-find', cmd]).strip()
|
|
||||||
|
|
||||||
build_dir = 'build_' + platform.name
|
|
||||||
if not os.path.exists(build_dir):
|
|
||||||
os.makedirs(build_dir)
|
|
||||||
env = dict(CC=xcrun_cmd('clang'),
|
|
||||||
LD=xcrun_cmd('ld'),
|
|
||||||
CFLAGS='-arch %s -isysroot %s -miphoneos-version-min=4.0' % (platform.arch, platform.sdkroot))
|
|
||||||
working_dir=os.getcwd()
|
|
||||||
try:
|
|
||||||
os.chdir(build_dir)
|
|
||||||
subprocess.check_call(['../configure', '-host', platform.triple], env=env)
|
|
||||||
move_source_tree('.', None, '../ios/include',
|
|
||||||
arch=platform.arch,
|
|
||||||
prefix=platform.prefix,
|
|
||||||
suffix=platform.suffix)
|
|
||||||
move_source_tree('./include', None, '../ios/include',
|
|
||||||
arch=platform.arch,
|
|
||||||
prefix=platform.prefix,
|
|
||||||
suffix=platform.suffix)
|
|
||||||
finally:
|
|
||||||
os.chdir(working_dir)
|
|
||||||
|
|
||||||
for header_name, archs in headers_seen.iteritems():
|
|
||||||
basename, suffix = os.path.splitext(header_name)
|
|
||||||
|
|
||||||
def main():
|
|
||||||
move_source_tree('src', 'ios/src', 'ios/include')
|
|
||||||
move_source_tree('include', None, 'ios/include')
|
|
||||||
build_target(simulator_platform)
|
|
||||||
build_target(device_platform)
|
|
||||||
|
|
||||||
for header_name, archs in headers_seen.iteritems():
|
|
||||||
basename, suffix = os.path.splitext(header_name)
|
|
||||||
with open(os.path.join('ios/include', header_name), 'w') as header:
|
|
||||||
for arch in archs:
|
|
||||||
header.write('#include <%s_%s%s>\n' % (basename, arch, suffix))
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
@@ -1,153 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
import subprocess
|
|
||||||
import re
|
|
||||||
import os
|
|
||||||
import errno
|
|
||||||
import collections
|
|
||||||
import sys
|
|
||||||
|
|
||||||
class Platform(object):
|
|
||||||
pass
|
|
||||||
|
|
||||||
sdk_re = re.compile(r'.*-sdk ([a-zA-Z0-9.]*)')
|
|
||||||
|
|
||||||
def sdkinfo(sdkname):
|
|
||||||
ret = {}
|
|
||||||
for line in subprocess.Popen(['xcodebuild', '-sdk', sdkname, '-version'], stdout=subprocess.PIPE).stdout:
|
|
||||||
kv = line.strip().split(': ', 1)
|
|
||||||
if len(kv) == 2:
|
|
||||||
k,v = kv
|
|
||||||
ret[k] = v
|
|
||||||
return ret
|
|
||||||
|
|
||||||
desktop_sdk_info = sdkinfo('macosx')
|
|
||||||
|
|
||||||
def latest_sdks():
|
|
||||||
latest_desktop = None
|
|
||||||
for line in subprocess.Popen(['xcodebuild', '-showsdks'], stdout=subprocess.PIPE).stdout:
|
|
||||||
match = sdk_re.match(line)
|
|
||||||
if match:
|
|
||||||
if 'OS X' in line:
|
|
||||||
latest_desktop = match.group(1)
|
|
||||||
|
|
||||||
return latest_desktop
|
|
||||||
|
|
||||||
desktop_sdk = latest_sdks()
|
|
||||||
|
|
||||||
class desktop_platform_32(Platform):
|
|
||||||
sdk='macosx'
|
|
||||||
arch = 'i386'
|
|
||||||
name = 'mac32'
|
|
||||||
triple = 'i386-apple-darwin10'
|
|
||||||
sdkroot = desktop_sdk_info['Path']
|
|
||||||
|
|
||||||
prefix = "#if defined(__i386__) && !defined(__x86_64__)\n\n"
|
|
||||||
suffix = "\n\n#endif"
|
|
||||||
|
|
||||||
class desktop_platform_64(Platform):
|
|
||||||
sdk='macosx'
|
|
||||||
arch = 'x86_64'
|
|
||||||
name = 'mac'
|
|
||||||
triple = 'x86_64-apple-darwin10'
|
|
||||||
sdkroot = desktop_sdk_info['Path']
|
|
||||||
|
|
||||||
prefix = "#if !defined(__i386__) && defined(__x86_64__)\n\n"
|
|
||||||
suffix = "\n\n#endif"
|
|
||||||
|
|
||||||
def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''):
|
|
||||||
if not os.path.exists(dst_dir):
|
|
||||||
os.makedirs(dst_dir)
|
|
||||||
|
|
||||||
out_filename = filename
|
|
||||||
|
|
||||||
if file_suffix:
|
|
||||||
split_name = os.path.splitext(filename)
|
|
||||||
out_filename = "%s_%s%s" % (split_name[0], file_suffix, split_name[1])
|
|
||||||
|
|
||||||
with open(os.path.join(src_dir, filename)) as in_file:
|
|
||||||
with open(os.path.join(dst_dir, out_filename), 'w') as out_file:
|
|
||||||
if prefix:
|
|
||||||
out_file.write(prefix)
|
|
||||||
|
|
||||||
out_file.write(in_file.read())
|
|
||||||
|
|
||||||
if suffix:
|
|
||||||
out_file.write(suffix)
|
|
||||||
|
|
||||||
headers_seen = collections.defaultdict(set)
|
|
||||||
|
|
||||||
def move_source_tree(src_dir, dest_dir, dest_include_dir, arch=None, prefix=None, suffix=None):
|
|
||||||
for root, dirs, files in os.walk(src_dir, followlinks=True):
|
|
||||||
relroot = os.path.relpath(root,src_dir)
|
|
||||||
|
|
||||||
def move_dir(arch, prefix='', suffix='', files=[]):
|
|
||||||
for file in files:
|
|
||||||
file_suffix = None
|
|
||||||
if file.endswith('.h'):
|
|
||||||
if dest_include_dir:
|
|
||||||
file_suffix = arch
|
|
||||||
if arch:
|
|
||||||
headers_seen[file].add(arch)
|
|
||||||
move_file(root, dest_include_dir, file, arch, prefix=prefix, suffix=suffix)
|
|
||||||
|
|
||||||
elif dest_dir:
|
|
||||||
outroot = os.path.join(dest_dir, relroot)
|
|
||||||
move_file(root, outroot, file, prefix=prefix, suffix=suffix)
|
|
||||||
|
|
||||||
if relroot == '.':
|
|
||||||
move_dir(arch=arch,
|
|
||||||
files=files,
|
|
||||||
prefix=prefix,
|
|
||||||
suffix=suffix)
|
|
||||||
elif relroot == 'x86':
|
|
||||||
move_dir(arch='i386',
|
|
||||||
prefix="#if defined(__i386__) && !defined(__x86_64__)\n\n",
|
|
||||||
suffix="\n\n#endif",
|
|
||||||
files=files)
|
|
||||||
move_dir(arch='x86_64',
|
|
||||||
prefix="#if !defined(__i386__) && defined(__x86_64__)\n\n",
|
|
||||||
suffix="\n\n#endif",
|
|
||||||
files=files)
|
|
||||||
|
|
||||||
def build_target(platform):
|
|
||||||
def xcrun_cmd(cmd):
|
|
||||||
return subprocess.check_output(['xcrun', '-sdk', platform.sdkroot, '-find', cmd]).strip()
|
|
||||||
|
|
||||||
build_dir = 'build_' + platform.name
|
|
||||||
if not os.path.exists(build_dir):
|
|
||||||
os.makedirs(build_dir)
|
|
||||||
env = dict(CC=xcrun_cmd('clang'),
|
|
||||||
LD=xcrun_cmd('ld'),
|
|
||||||
CFLAGS='-arch %s -isysroot %s -mmacosx-version-min=10.6' % (platform.arch, platform.sdkroot))
|
|
||||||
working_dir=os.getcwd()
|
|
||||||
try:
|
|
||||||
os.chdir(build_dir)
|
|
||||||
subprocess.check_call(['../configure', '-host', platform.triple], env=env)
|
|
||||||
move_source_tree('.', None, '../osx/include',
|
|
||||||
arch=platform.arch,
|
|
||||||
prefix=platform.prefix,
|
|
||||||
suffix=platform.suffix)
|
|
||||||
move_source_tree('./include', None, '../osx/include',
|
|
||||||
arch=platform.arch,
|
|
||||||
prefix=platform.prefix,
|
|
||||||
suffix=platform.suffix)
|
|
||||||
finally:
|
|
||||||
os.chdir(working_dir)
|
|
||||||
|
|
||||||
for header_name, archs in headers_seen.iteritems():
|
|
||||||
basename, suffix = os.path.splitext(header_name)
|
|
||||||
|
|
||||||
def main():
|
|
||||||
move_source_tree('src', 'osx/src', 'osx/include')
|
|
||||||
move_source_tree('include', None, 'osx/include')
|
|
||||||
build_target(desktop_platform_32)
|
|
||||||
build_target(desktop_platform_64)
|
|
||||||
|
|
||||||
for header_name, archs in headers_seen.iteritems():
|
|
||||||
basename, suffix = os.path.splitext(header_name)
|
|
||||||
with open(os.path.join('osx/include', header_name), 'w') as header:
|
|
||||||
for arch in archs:
|
|
||||||
header.write('#include <%s_%s%s>\n' % (basename, arch, suffix))
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
@@ -7,473 +7,448 @@
|
|||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
6C43CBDC1534F76F00162364 /* ffi.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CBBD1534F76F00162364 /* ffi.c */; };
|
DBFA714A187F1D8600A76262 /* ffi.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA713E187F1D8600A76262 /* ffi.h */; };
|
||||||
6C43CBDD1534F76F00162364 /* sysv.S in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CBBF1534F76F00162364 /* sysv.S */; };
|
DBFA714B187F1D8600A76262 /* ffi_common.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA713F187F1D8600A76262 /* ffi_common.h */; };
|
||||||
6C43CBDE1534F76F00162364 /* trampoline.S in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CBC01534F76F00162364 /* trampoline.S */; };
|
DBFA714C187F1D8600A76262 /* fficonfig.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7140187F1D8600A76262 /* fficonfig.h */; };
|
||||||
6C43CBE61534F76F00162364 /* darwin.S in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CBC91534F76F00162364 /* darwin.S */; };
|
DBFA714D187F1D8600A76262 /* ffitarget.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7141187F1D8600A76262 /* ffitarget.h */; };
|
||||||
6C43CBE81534F76F00162364 /* ffi.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CBCB1534F76F00162364 /* ffi.c */; };
|
DBFA714E187F1D8600A76262 /* closures.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7143187F1D8600A76262 /* closures.c */; };
|
||||||
6C43CC1F1534F77800162364 /* darwin.S in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC051534F77800162364 /* darwin.S */; };
|
DBFA714F187F1D8600A76262 /* closures.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7143187F1D8600A76262 /* closures.c */; };
|
||||||
6C43CC201534F77800162364 /* darwin64.S in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC061534F77800162364 /* darwin64.S */; };
|
DBFA7156187F1D8600A76262 /* prep_cif.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7147187F1D8600A76262 /* prep_cif.c */; };
|
||||||
6C43CC211534F77800162364 /* ffi.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC071534F77800162364 /* ffi.c */; };
|
DBFA7157187F1D8600A76262 /* prep_cif.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7147187F1D8600A76262 /* prep_cif.c */; };
|
||||||
6C43CC221534F77800162364 /* ffi64.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC081534F77800162364 /* ffi64.c */; };
|
DBFA7158187F1D8600A76262 /* raw_api.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7148187F1D8600A76262 /* raw_api.c */; };
|
||||||
6C43CC2F1534F7BE00162364 /* closures.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC281534F7BE00162364 /* closures.c */; };
|
DBFA7159187F1D8600A76262 /* raw_api.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7148187F1D8600A76262 /* raw_api.c */; };
|
||||||
6C43CC301534F7BE00162364 /* closures.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC281534F7BE00162364 /* closures.c */; };
|
DBFA715A187F1D8600A76262 /* types.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7149187F1D8600A76262 /* types.c */; };
|
||||||
6C43CC351534F7BE00162364 /* java_raw_api.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2B1534F7BE00162364 /* java_raw_api.c */; };
|
DBFA715B187F1D8600A76262 /* types.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7149187F1D8600A76262 /* types.c */; };
|
||||||
6C43CC361534F7BE00162364 /* java_raw_api.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2B1534F7BE00162364 /* java_raw_api.c */; };
|
DBFA7177187F1D9B00A76262 /* ffi_arm64.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA716C187F1D9B00A76262 /* ffi_arm64.c */; };
|
||||||
6C43CC371534F7BE00162364 /* prep_cif.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2C1534F7BE00162364 /* prep_cif.c */; };
|
DBFA7178187F1D9B00A76262 /* sysv_arm64.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA716D187F1D9B00A76262 /* sysv_arm64.S */; };
|
||||||
6C43CC381534F7BE00162364 /* prep_cif.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2C1534F7BE00162364 /* prep_cif.c */; };
|
DBFA7179187F1D9B00A76262 /* ffi_armv7.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA716F187F1D9B00A76262 /* ffi_armv7.c */; };
|
||||||
6C43CC391534F7BE00162364 /* raw_api.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2D1534F7BE00162364 /* raw_api.c */; };
|
DBFA717A187F1D9B00A76262 /* sysv_armv7.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7170187F1D9B00A76262 /* sysv_armv7.S */; };
|
||||||
6C43CC3A1534F7BE00162364 /* raw_api.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2D1534F7BE00162364 /* raw_api.c */; };
|
DBFA717B187F1D9B00A76262 /* trampoline_armv7.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7171187F1D9B00A76262 /* trampoline_armv7.S */; };
|
||||||
6C43CC3B1534F7BE00162364 /* types.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2E1534F7BE00162364 /* types.c */; };
|
DBFA717C187F1D9B00A76262 /* darwin64_x86_64.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7173187F1D9B00A76262 /* darwin64_x86_64.S */; };
|
||||||
6C43CC3C1534F7BE00162364 /* types.c in Sources */ = {isa = PBXBuildFile; fileRef = 6C43CC2E1534F7BE00162364 /* types.c */; };
|
DBFA717D187F1D9B00A76262 /* darwin_i386.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7174187F1D9B00A76262 /* darwin_i386.S */; };
|
||||||
6C43CC971535032600162364 /* ffi.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC8D1535032600162364 /* ffi.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA717E187F1D9B00A76262 /* ffi64_x86_64.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7175187F1D9B00A76262 /* ffi64_x86_64.c */; };
|
||||||
6C43CC981535032600162364 /* ffi_common.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC8E1535032600162364 /* ffi_common.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA717F187F1D9B00A76262 /* ffi_i386.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA7176187F1D9B00A76262 /* ffi_i386.c */; };
|
||||||
6C43CC991535032600162364 /* ffi_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC8F1535032600162364 /* ffi_i386.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA718E187F1DA100A76262 /* ffi_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7182187F1DA100A76262 /* ffi_i386.h */; };
|
||||||
6C43CC9A1535032600162364 /* ffi_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC901535032600162364 /* ffi_x86_64.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA718F187F1DA100A76262 /* ffi_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7183187F1DA100A76262 /* ffi_x86_64.h */; };
|
||||||
6C43CC9B1535032600162364 /* fficonfig.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC911535032600162364 /* fficonfig.h */; };
|
DBFA7190187F1DA100A76262 /* fficonfig_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7184187F1DA100A76262 /* fficonfig_i386.h */; };
|
||||||
6C43CC9C1535032600162364 /* fficonfig_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC921535032600162364 /* fficonfig_i386.h */; };
|
DBFA7191187F1DA100A76262 /* fficonfig_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7185187F1DA100A76262 /* fficonfig_x86_64.h */; };
|
||||||
6C43CC9D1535032600162364 /* fficonfig_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC931535032600162364 /* fficonfig_x86_64.h */; };
|
DBFA7192187F1DA100A76262 /* ffitarget_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7186187F1DA100A76262 /* ffitarget_i386.h */; };
|
||||||
6C43CC9E1535032600162364 /* ffitarget.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC941535032600162364 /* ffitarget.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA7193187F1DA100A76262 /* ffitarget_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = DBFA7187187F1DA100A76262 /* ffitarget_x86_64.h */; };
|
||||||
6C43CC9F1535032600162364 /* ffitarget_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC951535032600162364 /* ffitarget_i386.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA7194187F1DA100A76262 /* darwin64_x86_64.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA718A187F1DA100A76262 /* darwin64_x86_64.S */; };
|
||||||
6C43CCA01535032600162364 /* ffitarget_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CC961535032600162364 /* ffitarget_x86_64.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA7195187F1DA100A76262 /* darwin_i386.S in Sources */ = {isa = PBXBuildFile; fileRef = DBFA718B187F1DA100A76262 /* darwin_i386.S */; };
|
||||||
6C43CCAD1535039600162364 /* ffi.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA21535039600162364 /* ffi.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA7196187F1DA100A76262 /* ffi64_x86_64.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA718C187F1DA100A76262 /* ffi64_x86_64.c */; };
|
||||||
6C43CCAE1535039600162364 /* ffi_armv7.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA31535039600162364 /* ffi_armv7.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
DBFA7197187F1DA100A76262 /* ffi_i386.c in Sources */ = {isa = PBXBuildFile; fileRef = DBFA718D187F1DA100A76262 /* ffi_i386.c */; };
|
||||||
6C43CCAF1535039600162364 /* ffi_common.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA41535039600162364 /* ffi_common.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
6C43CCB01535039600162364 /* ffi_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA51535039600162364 /* ffi_i386.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
6C43CCB11535039600162364 /* fficonfig.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA61535039600162364 /* fficonfig.h */; };
|
|
||||||
6C43CCB21535039600162364 /* fficonfig_armv7.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA71535039600162364 /* fficonfig_armv7.h */; };
|
|
||||||
6C43CCB31535039600162364 /* fficonfig_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA81535039600162364 /* fficonfig_i386.h */; };
|
|
||||||
6C43CCB41535039600162364 /* ffitarget.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCA91535039600162364 /* ffitarget.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
6C43CCB51535039600162364 /* ffitarget_arm.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCAA1535039600162364 /* ffitarget_arm.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
6C43CCB61535039600162364 /* ffitarget_armv7.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCAB1535039600162364 /* ffitarget_armv7.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
6C43CCB71535039600162364 /* ffitarget_i386.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C43CCAC1535039600162364 /* ffitarget_i386.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
|
DB13B1641849DF1E0010F42D /* CopyFiles */ = {
|
||||||
|
isa = PBXCopyFilesBuildPhase;
|
||||||
|
buildActionMask = 8;
|
||||||
|
dstPath = "include/$(PRODUCT_NAME)";
|
||||||
|
dstSubfolderSpec = 16;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 1;
|
||||||
|
};
|
||||||
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
6C43CB3D1534E9D100162364 /* libffi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libffi.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
DB13B1661849DF1E0010F42D /* libffi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libffi.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
6C43CBBD1534F76F00162364 /* ffi.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi.c; sourceTree = "<group>"; };
|
DB13B1911849DF510010F42D /* ffi.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = ffi.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
6C43CBBF1534F76F00162364 /* sysv.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = sysv.S; sourceTree = "<group>"; };
|
DBFA713E187F1D8600A76262 /* ffi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi.h; sourceTree = "<group>"; };
|
||||||
6C43CBC01534F76F00162364 /* trampoline.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = trampoline.S; sourceTree = "<group>"; };
|
DBFA713F187F1D8600A76262 /* ffi_common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_common.h; sourceTree = "<group>"; };
|
||||||
6C43CBC91534F76F00162364 /* darwin.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin.S; sourceTree = "<group>"; };
|
DBFA7140187F1D8600A76262 /* fficonfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig.h; sourceTree = "<group>"; };
|
||||||
6C43CBCB1534F76F00162364 /* ffi.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi.c; sourceTree = "<group>"; };
|
DBFA7141187F1D8600A76262 /* ffitarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget.h; sourceTree = "<group>"; };
|
||||||
6C43CC051534F77800162364 /* darwin.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin.S; sourceTree = "<group>"; };
|
DBFA7143187F1D8600A76262 /* closures.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = closures.c; sourceTree = "<group>"; };
|
||||||
6C43CC061534F77800162364 /* darwin64.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin64.S; sourceTree = "<group>"; };
|
DBFA7145187F1D8600A76262 /* dlmalloc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = dlmalloc.c; sourceTree = "<group>"; };
|
||||||
6C43CC071534F77800162364 /* ffi.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi.c; sourceTree = "<group>"; };
|
DBFA7147187F1D8600A76262 /* prep_cif.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = prep_cif.c; sourceTree = "<group>"; };
|
||||||
6C43CC081534F77800162364 /* ffi64.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi64.c; sourceTree = "<group>"; };
|
DBFA7148187F1D8600A76262 /* raw_api.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = raw_api.c; sourceTree = "<group>"; };
|
||||||
6C43CC281534F7BE00162364 /* closures.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = closures.c; path = src/closures.c; sourceTree = SOURCE_ROOT; };
|
DBFA7149187F1D8600A76262 /* types.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = types.c; sourceTree = "<group>"; };
|
||||||
6C43CC2B1534F7BE00162364 /* java_raw_api.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = java_raw_api.c; path = src/java_raw_api.c; sourceTree = SOURCE_ROOT; };
|
DBFA715E187F1D9B00A76262 /* ffi_arm64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_arm64.h; sourceTree = "<group>"; };
|
||||||
6C43CC2C1534F7BE00162364 /* prep_cif.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = prep_cif.c; path = src/prep_cif.c; sourceTree = SOURCE_ROOT; };
|
DBFA715F187F1D9B00A76262 /* ffi_armv7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_armv7.h; sourceTree = "<group>"; };
|
||||||
6C43CC2D1534F7BE00162364 /* raw_api.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = raw_api.c; path = src/raw_api.c; sourceTree = SOURCE_ROOT; };
|
DBFA7160187F1D9B00A76262 /* ffi_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_i386.h; sourceTree = "<group>"; };
|
||||||
6C43CC2E1534F7BE00162364 /* types.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = types.c; path = src/types.c; sourceTree = SOURCE_ROOT; };
|
DBFA7161187F1D9B00A76262 /* ffi_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_x86_64.h; sourceTree = "<group>"; };
|
||||||
6C43CC8D1535032600162364 /* ffi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi.h; sourceTree = "<group>"; };
|
DBFA7162187F1D9B00A76262 /* fficonfig_arm64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_arm64.h; sourceTree = "<group>"; };
|
||||||
6C43CC8E1535032600162364 /* ffi_common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_common.h; sourceTree = "<group>"; };
|
DBFA7163187F1D9B00A76262 /* fficonfig_armv7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_armv7.h; sourceTree = "<group>"; };
|
||||||
6C43CC8F1535032600162364 /* ffi_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_i386.h; sourceTree = "<group>"; };
|
DBFA7164187F1D9B00A76262 /* fficonfig_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_i386.h; sourceTree = "<group>"; };
|
||||||
6C43CC901535032600162364 /* ffi_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_x86_64.h; sourceTree = "<group>"; };
|
DBFA7165187F1D9B00A76262 /* fficonfig_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_x86_64.h; sourceTree = "<group>"; };
|
||||||
6C43CC911535032600162364 /* fficonfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig.h; sourceTree = "<group>"; };
|
DBFA7166187F1D9B00A76262 /* ffitarget_arm64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_arm64.h; sourceTree = "<group>"; };
|
||||||
6C43CC921535032600162364 /* fficonfig_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_i386.h; sourceTree = "<group>"; };
|
DBFA7167187F1D9B00A76262 /* ffitarget_armv7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_armv7.h; sourceTree = "<group>"; };
|
||||||
6C43CC931535032600162364 /* fficonfig_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_x86_64.h; sourceTree = "<group>"; };
|
DBFA7168187F1D9B00A76262 /* ffitarget_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_i386.h; sourceTree = "<group>"; };
|
||||||
6C43CC941535032600162364 /* ffitarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget.h; sourceTree = "<group>"; };
|
DBFA7169187F1D9B00A76262 /* ffitarget_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_x86_64.h; sourceTree = "<group>"; };
|
||||||
6C43CC951535032600162364 /* ffitarget_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_i386.h; sourceTree = "<group>"; };
|
DBFA716C187F1D9B00A76262 /* ffi_arm64.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi_arm64.c; sourceTree = "<group>"; };
|
||||||
6C43CC961535032600162364 /* ffitarget_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_x86_64.h; sourceTree = "<group>"; };
|
DBFA716D187F1D9B00A76262 /* sysv_arm64.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = sysv_arm64.S; sourceTree = "<group>"; };
|
||||||
6C43CCA21535039600162364 /* ffi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi.h; sourceTree = "<group>"; };
|
DBFA716F187F1D9B00A76262 /* ffi_armv7.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi_armv7.c; sourceTree = "<group>"; };
|
||||||
6C43CCA31535039600162364 /* ffi_armv7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_armv7.h; sourceTree = "<group>"; };
|
DBFA7170187F1D9B00A76262 /* sysv_armv7.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = sysv_armv7.S; sourceTree = "<group>"; };
|
||||||
6C43CCA41535039600162364 /* ffi_common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_common.h; sourceTree = "<group>"; };
|
DBFA7171187F1D9B00A76262 /* trampoline_armv7.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = trampoline_armv7.S; sourceTree = "<group>"; };
|
||||||
6C43CCA51535039600162364 /* ffi_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_i386.h; sourceTree = "<group>"; };
|
DBFA7173187F1D9B00A76262 /* darwin64_x86_64.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin64_x86_64.S; sourceTree = "<group>"; };
|
||||||
6C43CCA61535039600162364 /* fficonfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig.h; sourceTree = "<group>"; };
|
DBFA7174187F1D9B00A76262 /* darwin_i386.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin_i386.S; sourceTree = "<group>"; };
|
||||||
6C43CCA71535039600162364 /* fficonfig_armv7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_armv7.h; sourceTree = "<group>"; };
|
DBFA7175187F1D9B00A76262 /* ffi64_x86_64.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi64_x86_64.c; sourceTree = "<group>"; };
|
||||||
6C43CCA81535039600162364 /* fficonfig_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_i386.h; sourceTree = "<group>"; };
|
DBFA7176187F1D9B00A76262 /* ffi_i386.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi_i386.c; sourceTree = "<group>"; };
|
||||||
6C43CCA91535039600162364 /* ffitarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget.h; sourceTree = "<group>"; };
|
DBFA7182187F1DA100A76262 /* ffi_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_i386.h; sourceTree = "<group>"; };
|
||||||
6C43CCAA1535039600162364 /* ffitarget_arm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_arm.h; sourceTree = "<group>"; };
|
DBFA7183187F1DA100A76262 /* ffi_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffi_x86_64.h; sourceTree = "<group>"; };
|
||||||
6C43CCAB1535039600162364 /* ffitarget_armv7.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_armv7.h; sourceTree = "<group>"; };
|
DBFA7184187F1DA100A76262 /* fficonfig_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_i386.h; sourceTree = "<group>"; };
|
||||||
6C43CCAC1535039600162364 /* ffitarget_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_i386.h; sourceTree = "<group>"; };
|
DBFA7185187F1DA100A76262 /* fficonfig_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fficonfig_x86_64.h; sourceTree = "<group>"; };
|
||||||
F6F980BA147386130008F121 /* libffi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libffi.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
DBFA7186187F1DA100A76262 /* ffitarget_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_i386.h; sourceTree = "<group>"; };
|
||||||
|
DBFA7187187F1DA100A76262 /* ffitarget_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ffitarget_x86_64.h; sourceTree = "<group>"; };
|
||||||
|
DBFA718A187F1DA100A76262 /* darwin64_x86_64.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin64_x86_64.S; sourceTree = "<group>"; };
|
||||||
|
DBFA718B187F1DA100A76262 /* darwin_i386.S */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = darwin_i386.S; sourceTree = "<group>"; };
|
||||||
|
DBFA718C187F1DA100A76262 /* ffi64_x86_64.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi64_x86_64.c; sourceTree = "<group>"; };
|
||||||
|
DBFA718D187F1DA100A76262 /* ffi_i386.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ffi_i386.c; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
|
||||||
6C43CB3A1534E9D100162364 /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
F6F980B7147386130008F121 /* Frameworks */ = {
|
|
||||||
isa = PBXFrameworksBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
/* End PBXFrameworksBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
6C43CBAF1534F76F00162364 /* iOS */ = {
|
DB13B15B1849DEB70010F42D = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CCA11535039600162364 /* include */,
|
DBFA713C187F1D8600A76262 /* darwin_common */,
|
||||||
6C43CBBB1534F76F00162364 /* src */,
|
DBFA715C187F1D9B00A76262 /* darwin_ios */,
|
||||||
|
DBFA7180187F1DA100A76262 /* darwin_osx */,
|
||||||
|
DB13B1671849DF1E0010F42D /* Products */,
|
||||||
);
|
);
|
||||||
name = iOS;
|
|
||||||
path = ios;
|
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CBBB1534F76F00162364 /* src */ = {
|
DB13B1671849DF1E0010F42D /* Products */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CBC81534F76F00162364 /* x86 */,
|
DB13B1661849DF1E0010F42D /* libffi.a */,
|
||||||
6C43CBBC1534F76F00162364 /* arm */,
|
DB13B1911849DF510010F42D /* ffi.dylib */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA713C187F1D8600A76262 /* darwin_common */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA713D187F1D8600A76262 /* include */,
|
||||||
|
DBFA7142187F1D8600A76262 /* src */,
|
||||||
|
);
|
||||||
|
path = "darwin_common";
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA713D187F1D8600A76262 /* include */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA713E187F1D8600A76262 /* ffi.h */,
|
||||||
|
DBFA713F187F1D8600A76262 /* ffi_common.h */,
|
||||||
|
DBFA7140187F1D8600A76262 /* fficonfig.h */,
|
||||||
|
DBFA7141187F1D8600A76262 /* ffitarget.h */,
|
||||||
|
);
|
||||||
|
path = include;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA7142187F1D8600A76262 /* src */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA7143187F1D8600A76262 /* closures.c */,
|
||||||
|
DBFA7145187F1D8600A76262 /* dlmalloc.c */,
|
||||||
|
DBFA7147187F1D8600A76262 /* prep_cif.c */,
|
||||||
|
DBFA7148187F1D8600A76262 /* raw_api.c */,
|
||||||
|
DBFA7149187F1D8600A76262 /* types.c */,
|
||||||
);
|
);
|
||||||
path = src;
|
path = src;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CBBC1534F76F00162364 /* arm */ = {
|
DBFA715C187F1D9B00A76262 /* darwin_ios */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CBBD1534F76F00162364 /* ffi.c */,
|
DBFA715D187F1D9B00A76262 /* include */,
|
||||||
6C43CBBF1534F76F00162364 /* sysv.S */,
|
DBFA716A187F1D9B00A76262 /* src */,
|
||||||
6C43CBC01534F76F00162364 /* trampoline.S */,
|
);
|
||||||
|
path = "darwin_ios";
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA715D187F1D9B00A76262 /* include */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA715E187F1D9B00A76262 /* ffi_arm64.h */,
|
||||||
|
DBFA715F187F1D9B00A76262 /* ffi_armv7.h */,
|
||||||
|
DBFA7160187F1D9B00A76262 /* ffi_i386.h */,
|
||||||
|
DBFA7161187F1D9B00A76262 /* ffi_x86_64.h */,
|
||||||
|
DBFA7162187F1D9B00A76262 /* fficonfig_arm64.h */,
|
||||||
|
DBFA7163187F1D9B00A76262 /* fficonfig_armv7.h */,
|
||||||
|
DBFA7164187F1D9B00A76262 /* fficonfig_i386.h */,
|
||||||
|
DBFA7165187F1D9B00A76262 /* fficonfig_x86_64.h */,
|
||||||
|
DBFA7166187F1D9B00A76262 /* ffitarget_arm64.h */,
|
||||||
|
DBFA7167187F1D9B00A76262 /* ffitarget_armv7.h */,
|
||||||
|
DBFA7168187F1D9B00A76262 /* ffitarget_i386.h */,
|
||||||
|
DBFA7169187F1D9B00A76262 /* ffitarget_x86_64.h */,
|
||||||
|
);
|
||||||
|
path = include;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA716A187F1D9B00A76262 /* src */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA716B187F1D9B00A76262 /* aarch64 */,
|
||||||
|
DBFA716E187F1D9B00A76262 /* arm */,
|
||||||
|
DBFA7172187F1D9B00A76262 /* x86 */,
|
||||||
|
);
|
||||||
|
path = src;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA716B187F1D9B00A76262 /* aarch64 */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA716C187F1D9B00A76262 /* ffi_arm64.c */,
|
||||||
|
DBFA716D187F1D9B00A76262 /* sysv_arm64.S */,
|
||||||
|
);
|
||||||
|
path = aarch64;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA716E187F1D9B00A76262 /* arm */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA716F187F1D9B00A76262 /* ffi_armv7.c */,
|
||||||
|
DBFA7170187F1D9B00A76262 /* sysv_armv7.S */,
|
||||||
|
DBFA7171187F1D9B00A76262 /* trampoline_armv7.S */,
|
||||||
);
|
);
|
||||||
path = arm;
|
path = arm;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CBC81534F76F00162364 /* x86 */ = {
|
DBFA7172187F1D9B00A76262 /* x86 */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CBC91534F76F00162364 /* darwin.S */,
|
DBFA7173187F1D9B00A76262 /* darwin64_x86_64.S */,
|
||||||
6C43CBCB1534F76F00162364 /* ffi.c */,
|
DBFA7174187F1D9B00A76262 /* darwin_i386.S */,
|
||||||
|
DBFA7175187F1D9B00A76262 /* ffi64_x86_64.c */,
|
||||||
|
DBFA7176187F1D9B00A76262 /* ffi_i386.c */,
|
||||||
);
|
);
|
||||||
path = x86;
|
path = x86;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CBF01534F77800162364 /* OS X */ = {
|
DBFA7180187F1DA100A76262 /* darwin_osx */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CC8C1535032600162364 /* include */,
|
DBFA7181187F1DA100A76262 /* include */,
|
||||||
6C43CBFC1534F77800162364 /* src */,
|
DBFA7188187F1DA100A76262 /* src */,
|
||||||
);
|
);
|
||||||
name = "OS X";
|
path = "darwin_osx";
|
||||||
path = osx;
|
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CBFC1534F77800162364 /* src */ = {
|
DBFA7181187F1DA100A76262 /* include */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CC041534F77800162364 /* x86 */,
|
DBFA7182187F1DA100A76262 /* ffi_i386.h */,
|
||||||
|
DBFA7183187F1DA100A76262 /* ffi_x86_64.h */,
|
||||||
|
DBFA7184187F1DA100A76262 /* fficonfig_i386.h */,
|
||||||
|
DBFA7185187F1DA100A76262 /* fficonfig_x86_64.h */,
|
||||||
|
DBFA7186187F1DA100A76262 /* ffitarget_i386.h */,
|
||||||
|
DBFA7187187F1DA100A76262 /* ffitarget_x86_64.h */,
|
||||||
|
);
|
||||||
|
path = include;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
DBFA7188187F1DA100A76262 /* src */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
DBFA7189187F1DA100A76262 /* x86 */,
|
||||||
);
|
);
|
||||||
path = src;
|
path = src;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CC041534F77800162364 /* x86 */ = {
|
DBFA7189187F1DA100A76262 /* x86 */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
6C43CC051534F77800162364 /* darwin.S */,
|
DBFA718A187F1DA100A76262 /* darwin64_x86_64.S */,
|
||||||
6C43CC061534F77800162364 /* darwin64.S */,
|
DBFA718B187F1DA100A76262 /* darwin_i386.S */,
|
||||||
6C43CC071534F77800162364 /* ffi.c */,
|
DBFA718C187F1DA100A76262 /* ffi64_x86_64.c */,
|
||||||
6C43CC081534F77800162364 /* ffi64.c */,
|
DBFA718D187F1DA100A76262 /* ffi_i386.c */,
|
||||||
);
|
);
|
||||||
path = x86;
|
path = x86;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
6C43CC3D1534F7C400162364 /* src */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
6C43CC281534F7BE00162364 /* closures.c */,
|
|
||||||
6C43CC2B1534F7BE00162364 /* java_raw_api.c */,
|
|
||||||
6C43CC2C1534F7BE00162364 /* prep_cif.c */,
|
|
||||||
6C43CC2D1534F7BE00162364 /* raw_api.c */,
|
|
||||||
6C43CC2E1534F7BE00162364 /* types.c */,
|
|
||||||
);
|
|
||||||
name = src;
|
|
||||||
path = ios;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
6C43CC8C1535032600162364 /* include */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
6C43CC8D1535032600162364 /* ffi.h */,
|
|
||||||
6C43CC8E1535032600162364 /* ffi_common.h */,
|
|
||||||
6C43CC8F1535032600162364 /* ffi_i386.h */,
|
|
||||||
6C43CC901535032600162364 /* ffi_x86_64.h */,
|
|
||||||
6C43CC911535032600162364 /* fficonfig.h */,
|
|
||||||
6C43CC921535032600162364 /* fficonfig_i386.h */,
|
|
||||||
6C43CC931535032600162364 /* fficonfig_x86_64.h */,
|
|
||||||
6C43CC941535032600162364 /* ffitarget.h */,
|
|
||||||
6C43CC951535032600162364 /* ffitarget_i386.h */,
|
|
||||||
6C43CC961535032600162364 /* ffitarget_x86_64.h */,
|
|
||||||
);
|
|
||||||
path = include;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
6C43CCA11535039600162364 /* include */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
6C43CCA21535039600162364 /* ffi.h */,
|
|
||||||
6C43CCA31535039600162364 /* ffi_armv7.h */,
|
|
||||||
6C43CCA41535039600162364 /* ffi_common.h */,
|
|
||||||
6C43CCA51535039600162364 /* ffi_i386.h */,
|
|
||||||
6C43CCA61535039600162364 /* fficonfig.h */,
|
|
||||||
6C43CCA71535039600162364 /* fficonfig_armv7.h */,
|
|
||||||
6C43CCA81535039600162364 /* fficonfig_i386.h */,
|
|
||||||
6C43CCA91535039600162364 /* ffitarget.h */,
|
|
||||||
6C43CCAA1535039600162364 /* ffitarget_arm.h */,
|
|
||||||
6C43CCAB1535039600162364 /* ffitarget_armv7.h */,
|
|
||||||
6C43CCAC1535039600162364 /* ffitarget_i386.h */,
|
|
||||||
);
|
|
||||||
path = include;
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
F6B0839514721EE50031D8A1 = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
6C43CC3D1534F7C400162364 /* src */,
|
|
||||||
6C43CBAF1534F76F00162364 /* iOS */,
|
|
||||||
6C43CBF01534F77800162364 /* OS X */,
|
|
||||||
F6F980C6147386260008F121 /* Products */,
|
|
||||||
);
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
F6F980C6147386260008F121 /* Products */ = {
|
|
||||||
isa = PBXGroup;
|
|
||||||
children = (
|
|
||||||
F6F980BA147386130008F121 /* libffi.a */,
|
|
||||||
6C43CB3D1534E9D100162364 /* libffi.a */,
|
|
||||||
);
|
|
||||||
name = Products;
|
|
||||||
path = ../..;
|
|
||||||
sourceTree = BUILT_PRODUCTS_DIR;
|
|
||||||
};
|
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXHeadersBuildPhase section */
|
/* Begin PBXHeadersBuildPhase section */
|
||||||
6C43CB3B1534E9D100162364 /* Headers */ = {
|
DB13B18F1849DF510010F42D /* Headers */ = {
|
||||||
isa = PBXHeadersBuildPhase;
|
isa = PBXHeadersBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
6C43CC971535032600162364 /* ffi.h in Headers */,
|
DBFA714C187F1D8600A76262 /* fficonfig.h in Headers */,
|
||||||
6C43CC981535032600162364 /* ffi_common.h in Headers */,
|
DBFA714D187F1D8600A76262 /* ffitarget.h in Headers */,
|
||||||
6C43CC991535032600162364 /* ffi_i386.h in Headers */,
|
DBFA714A187F1D8600A76262 /* ffi.h in Headers */,
|
||||||
6C43CC9A1535032600162364 /* ffi_x86_64.h in Headers */,
|
DBFA718F187F1DA100A76262 /* ffi_x86_64.h in Headers */,
|
||||||
6C43CC9E1535032600162364 /* ffitarget.h in Headers */,
|
DBFA7191187F1DA100A76262 /* fficonfig_x86_64.h in Headers */,
|
||||||
6C43CC9F1535032600162364 /* ffitarget_i386.h in Headers */,
|
DBFA718E187F1DA100A76262 /* ffi_i386.h in Headers */,
|
||||||
6C43CCA01535032600162364 /* ffitarget_x86_64.h in Headers */,
|
DBFA7190187F1DA100A76262 /* fficonfig_i386.h in Headers */,
|
||||||
6C43CC9B1535032600162364 /* fficonfig.h in Headers */,
|
DBFA714B187F1D8600A76262 /* ffi_common.h in Headers */,
|
||||||
6C43CC9C1535032600162364 /* fficonfig_i386.h in Headers */,
|
DBFA7193187F1DA100A76262 /* ffitarget_x86_64.h in Headers */,
|
||||||
6C43CC9D1535032600162364 /* fficonfig_x86_64.h in Headers */,
|
DBFA7192187F1DA100A76262 /* ffitarget_i386.h in Headers */,
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
F6F980B8147386130008F121 /* Headers */ = {
|
|
||||||
isa = PBXHeadersBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
6C43CCAD1535039600162364 /* ffi.h in Headers */,
|
|
||||||
6C43CCAE1535039600162364 /* ffi_armv7.h in Headers */,
|
|
||||||
6C43CCAF1535039600162364 /* ffi_common.h in Headers */,
|
|
||||||
6C43CCB01535039600162364 /* ffi_i386.h in Headers */,
|
|
||||||
6C43CCB41535039600162364 /* ffitarget.h in Headers */,
|
|
||||||
6C43CCB51535039600162364 /* ffitarget_arm.h in Headers */,
|
|
||||||
6C43CCB61535039600162364 /* ffitarget_armv7.h in Headers */,
|
|
||||||
6C43CCB71535039600162364 /* ffitarget_i386.h in Headers */,
|
|
||||||
6C43CCB11535039600162364 /* fficonfig.h in Headers */,
|
|
||||||
6C43CCB21535039600162364 /* fficonfig_armv7.h in Headers */,
|
|
||||||
6C43CCB31535039600162364 /* fficonfig_i386.h in Headers */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXHeadersBuildPhase section */
|
/* End PBXHeadersBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
6C43CB3C1534E9D100162364 /* libffi OS X */ = {
|
DB13B1651849DF1E0010F42D /* libffi-iOS */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = 6C43CB4A1534E9D100162364 /* Build configuration list for PBXNativeTarget "libffi OS X" */;
|
buildConfigurationList = DB13B18B1849DF1E0010F42D /* Build configuration list for PBXNativeTarget "libffi-iOS" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
6C43CC401534FF3B00162364 /* Generate Source and Headers */,
|
DB13B3051849E01C0010F42D /* ShellScript */,
|
||||||
6C43CB391534E9D100162364 /* Sources */,
|
DB13B1621849DF1E0010F42D /* Sources */,
|
||||||
6C43CB3A1534E9D100162364 /* Frameworks */,
|
DB13B1641849DF1E0010F42D /* CopyFiles */,
|
||||||
6C43CB3B1534E9D100162364 /* Headers */,
|
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = "libffi OS X";
|
name = "libffi-iOS";
|
||||||
productName = "ffi OS X";
|
productName = ffi;
|
||||||
productReference = 6C43CB3D1534E9D100162364 /* libffi.a */;
|
productReference = DB13B1661849DF1E0010F42D /* libffi.a */;
|
||||||
productType = "com.apple.product-type.library.static";
|
productType = "com.apple.product-type.library.static";
|
||||||
};
|
};
|
||||||
F6F980B9147386130008F121 /* libffi iOS */ = {
|
DB13B1901849DF510010F42D /* libffi-Mac */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = F6F980C4147386130008F121 /* Build configuration list for PBXNativeTarget "libffi iOS" */;
|
buildConfigurationList = DB13B1B01849DF520010F42D /* Build configuration list for PBXNativeTarget "libffi-Mac" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
6C43CC3E1534F8E200162364 /* Generate Trampoline */,
|
DB13B3061849E0490010F42D /* ShellScript */,
|
||||||
6C43CC3F1534FF1B00162364 /* Generate Source and Headers */,
|
DB13B18D1849DF510010F42D /* Sources */,
|
||||||
F6F980B6147386130008F121 /* Sources */,
|
DB13B18F1849DF510010F42D /* Headers */,
|
||||||
F6F980B7147386130008F121 /* Frameworks */,
|
|
||||||
F6F980B8147386130008F121 /* Headers */,
|
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = "libffi iOS";
|
name = "libffi-Mac";
|
||||||
productName = ffi;
|
productName = ffi;
|
||||||
productReference = F6F980BA147386130008F121 /* libffi.a */;
|
productReference = DB13B1911849DF510010F42D /* ffi.dylib */;
|
||||||
productType = "com.apple.product-type.library.static";
|
productType = "com.apple.product-type.library.dynamic";
|
||||||
};
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
/* Begin PBXProject section */
|
/* Begin PBXProject section */
|
||||||
F6B0839714721EE50031D8A1 /* Project object */ = {
|
DB13B15C1849DEB70010F42D /* Project object */ = {
|
||||||
isa = PBXProject;
|
isa = PBXProject;
|
||||||
attributes = {
|
attributes = {
|
||||||
LastUpgradeCheck = 0430;
|
LastUpgradeCheck = 0510;
|
||||||
};
|
};
|
||||||
buildConfigurationList = F6B0839A14721EE50031D8A1 /* Build configuration list for PBXProject "libffi" */;
|
buildConfigurationList = DB13B15F1849DEB70010F42D /* Build configuration list for PBXProject "libffi" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
developmentRegion = English;
|
developmentRegion = English;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
en,
|
en,
|
||||||
);
|
);
|
||||||
mainGroup = F6B0839514721EE50031D8A1;
|
mainGroup = DB13B15B1849DEB70010F42D;
|
||||||
productRefGroup = F6B0839514721EE50031D8A1;
|
productRefGroup = DB13B1671849DF1E0010F42D /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
F6F980B9147386130008F121 /* libffi iOS */,
|
DB13B1651849DF1E0010F42D /* libffi-iOS */,
|
||||||
6C43CB3C1534E9D100162364 /* libffi OS X */,
|
DB13B1901849DF510010F42D /* libffi-Mac */,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
|
||||||
/* Begin PBXShellScriptBuildPhase section */
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
6C43CC3E1534F8E200162364 /* Generate Trampoline */ = {
|
DB13B3051849E01C0010F42D /* ShellScript */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
);
|
);
|
||||||
inputPaths = (
|
inputPaths = (
|
||||||
);
|
);
|
||||||
name = "Generate Trampoline";
|
|
||||||
outputPaths = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
shellPath = /usr/bin/python;
|
|
||||||
shellScript = "import subprocess\nimport re\nimport os\nimport errno\nimport sys\n\ndef main():\n with open('src/arm/trampoline.S', 'w') as tramp_out:\n p = subprocess.Popen(['bash', 'src/arm/gentramp.sh'], stdout=tramp_out)\n p.wait()\n\nif __name__ == '__main__':\n main()";
|
|
||||||
};
|
|
||||||
6C43CC3F1534FF1B00162364 /* Generate Source and Headers */ = {
|
|
||||||
isa = PBXShellScriptBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
inputPaths = (
|
|
||||||
);
|
|
||||||
name = "Generate Source and Headers";
|
|
||||||
outputPaths = (
|
outputPaths = (
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "/usr/bin/python generate-ios-source-and-headers.py";
|
shellScript = "/usr/bin/python generate-darwin-source-and-headers.py --only-ios";
|
||||||
};
|
};
|
||||||
6C43CC401534FF3B00162364 /* Generate Source and Headers */ = {
|
DB13B3061849E0490010F42D /* ShellScript */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
);
|
);
|
||||||
inputPaths = (
|
inputPaths = (
|
||||||
);
|
);
|
||||||
name = "Generate Source and Headers";
|
|
||||||
outputPaths = (
|
outputPaths = (
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
shellScript = "/usr/bin/python generate-osx-source-and-headers.py";
|
shellScript = "/usr/bin/python generate-darwin-source-and-headers.py --only-osx";
|
||||||
};
|
};
|
||||||
/* End PBXShellScriptBuildPhase section */
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
6C43CB391534E9D100162364 /* Sources */ = {
|
DB13B1621849DF1E0010F42D /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
6C43CC1F1534F77800162364 /* darwin.S in Sources */,
|
DBFA717E187F1D9B00A76262 /* ffi64_x86_64.c in Sources */,
|
||||||
6C43CC201534F77800162364 /* darwin64.S in Sources */,
|
DBFA7179187F1D9B00A76262 /* ffi_armv7.c in Sources */,
|
||||||
6C43CC211534F77800162364 /* ffi.c in Sources */,
|
DBFA717B187F1D9B00A76262 /* trampoline_armv7.S in Sources */,
|
||||||
6C43CC221534F77800162364 /* ffi64.c in Sources */,
|
DBFA714E187F1D8600A76262 /* closures.c in Sources */,
|
||||||
6C43CC301534F7BE00162364 /* closures.c in Sources */,
|
DBFA717A187F1D9B00A76262 /* sysv_armv7.S in Sources */,
|
||||||
6C43CC361534F7BE00162364 /* java_raw_api.c in Sources */,
|
DBFA717D187F1D9B00A76262 /* darwin_i386.S in Sources */,
|
||||||
6C43CC381534F7BE00162364 /* prep_cif.c in Sources */,
|
DBFA7156187F1D8600A76262 /* prep_cif.c in Sources */,
|
||||||
6C43CC3A1534F7BE00162364 /* raw_api.c in Sources */,
|
DBFA717F187F1D9B00A76262 /* ffi_i386.c in Sources */,
|
||||||
6C43CC3C1534F7BE00162364 /* types.c in Sources */,
|
DBFA7158187F1D8600A76262 /* raw_api.c in Sources */,
|
||||||
|
DBFA7178187F1D9B00A76262 /* sysv_arm64.S in Sources */,
|
||||||
|
DBFA717C187F1D9B00A76262 /* darwin64_x86_64.S in Sources */,
|
||||||
|
DBFA715A187F1D8600A76262 /* types.c in Sources */,
|
||||||
|
DBFA7177187F1D9B00A76262 /* ffi_arm64.c in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
F6F980B6147386130008F121 /* Sources */ = {
|
DB13B18D1849DF510010F42D /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
6C43CBDC1534F76F00162364 /* ffi.c in Sources */,
|
DBFA7196187F1DA100A76262 /* ffi64_x86_64.c in Sources */,
|
||||||
6C43CBDD1534F76F00162364 /* sysv.S in Sources */,
|
DBFA7195187F1DA100A76262 /* darwin_i386.S in Sources */,
|
||||||
6C43CBDE1534F76F00162364 /* trampoline.S in Sources */,
|
DBFA7157187F1D8600A76262 /* prep_cif.c in Sources */,
|
||||||
6C43CBE61534F76F00162364 /* darwin.S in Sources */,
|
DBFA7197187F1DA100A76262 /* ffi_i386.c in Sources */,
|
||||||
6C43CBE81534F76F00162364 /* ffi.c in Sources */,
|
DBFA715B187F1D8600A76262 /* types.c in Sources */,
|
||||||
6C43CC2F1534F7BE00162364 /* closures.c in Sources */,
|
DBFA7159187F1D8600A76262 /* raw_api.c in Sources */,
|
||||||
6C43CC351534F7BE00162364 /* java_raw_api.c in Sources */,
|
DBFA714F187F1D8600A76262 /* closures.c in Sources */,
|
||||||
6C43CC371534F7BE00162364 /* prep_cif.c in Sources */,
|
DBFA7194187F1DA100A76262 /* darwin64_x86_64.S in Sources */,
|
||||||
6C43CC391534F7BE00162364 /* raw_api.c in Sources */,
|
|
||||||
6C43CC3B1534F7BE00162364 /* types.c in Sources */,
|
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
/* End PBXSourcesBuildPhase section */
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin XCBuildConfiguration section */
|
/* Begin XCBuildConfiguration section */
|
||||||
6C43CB4B1534E9D100162364 /* Debug */ = {
|
DB13B1601849DEB70010F42D /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
HEADER_SEARCH_PATHS = (
|
||||||
DSTROOT = /tmp/ffi.dst;
|
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"",
|
"darwin_common/include",
|
||||||
);
|
);
|
||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
|
||||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
PRODUCT_NAME = ffi;
|
|
||||||
SDKROOT = macosx;
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
6C43CB4C1534E9D100162364 /* Release */ = {
|
DB13B1611849DEB70010F42D /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
HEADER_SEARCH_PATHS = (
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
||||||
DSTROOT = /tmp/ffi.dst;
|
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"",
|
"darwin_common/include",
|
||||||
);
|
);
|
||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
|
||||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
|
||||||
PRODUCT_NAME = ffi;
|
|
||||||
SDKROOT = macosx;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
F6B083AB14721EE50031D8A1 /* Debug */ = {
|
DB13B1871849DF1E0010F42D /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DSTROOT = /tmp/ffi.dst;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
@@ -482,98 +457,181 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
);
|
);
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
GCC_WARN_UNUSED_VALUE = NO;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
HEADER_SEARCH_PATHS = ios/include;
|
HEADER_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"darwin_ios/include",
|
||||||
|
);
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||||
|
"IPHONEOS_DEPLOYMENT_TARGET[arch=arm64]" = 7.0;
|
||||||
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
|
PRODUCT_NAME = ffi;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
F6B083AC14721EE50031D8A1 /* Release */ = {
|
DB13B1881849DF1E0010F42D /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
||||||
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
COPY_PHASE_STRIP = YES;
|
COPY_PHASE_STRIP = YES;
|
||||||
|
DSTROOT = /tmp/ffi.dst;
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = "";
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
GCC_WARN_UNUSED_VALUE = NO;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
HEADER_SEARCH_PATHS = ios/include;
|
HEADER_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"darwin_ios/include",
|
||||||
|
);
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||||
|
"IPHONEOS_DEPLOYMENT_TARGET[arch=arm64]" = 7.0;
|
||||||
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
|
PRODUCT_NAME = ffi;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
VALIDATE_PRODUCT = YES;
|
VALIDATE_PRODUCT = YES;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
F6F980C2147386130008F121 /* Debug */ = {
|
DB13B1B11849DF520010F42D /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = (
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
armv6,
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
armv7,
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
|
DYLIB_CURRENT_VERSION = 1;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"DEBUG=1",
|
||||||
|
"$(inherited)",
|
||||||
);
|
);
|
||||||
DSTROOT = /tmp/ffi.dst;
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_THUMB_SUPPORT = NO;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
HEADER_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"darwin_osx/include",
|
||||||
|
);
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
OTHER_LDFLAGS = "-Wl,-no_compact_unwind";
|
||||||
PRODUCT_NAME = ffi;
|
PRODUCT_NAME = ffi;
|
||||||
SKIP_INSTALL = YES;
|
SDKROOT = macosx;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
F6F980C3147386130008F121 /* Release */ = {
|
DB13B1B21849DF520010F42D /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ARCHS = (
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
armv6,
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
armv7,
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||||
|
CLANG_WARN_INT_CONVERSION = YES;
|
||||||
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||||
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
|
DYLIB_CURRENT_VERSION = 1;
|
||||||
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||||
|
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||||
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
HEADER_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"darwin_osx/include",
|
||||||
);
|
);
|
||||||
DSTROOT = /tmp/ffi.dst;
|
MACOSX_DEPLOYMENT_TARGET = 10.6;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
OTHER_LDFLAGS = "-Wl,-no_compact_unwind";
|
||||||
GCC_THUMB_SUPPORT = NO;
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
|
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
|
||||||
PRODUCT_NAME = ffi;
|
PRODUCT_NAME = ffi;
|
||||||
SKIP_INSTALL = YES;
|
SDKROOT = macosx;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
6C43CB4A1534E9D100162364 /* Build configuration list for PBXNativeTarget "libffi OS X" */ = {
|
DB13B15F1849DEB70010F42D /* Build configuration list for PBXProject "libffi" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
6C43CB4B1534E9D100162364 /* Debug */,
|
DB13B1601849DEB70010F42D /* Debug */,
|
||||||
6C43CB4C1534E9D100162364 /* Release */,
|
DB13B1611849DEB70010F42D /* Release */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
F6B0839A14721EE50031D8A1 /* Build configuration list for PBXProject "libffi" */ = {
|
DB13B18B1849DF1E0010F42D /* Build configuration list for PBXNativeTarget "libffi-iOS" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
F6B083AB14721EE50031D8A1 /* Debug */,
|
DB13B1871849DF1E0010F42D /* Debug */,
|
||||||
F6B083AC14721EE50031D8A1 /* Release */,
|
DB13B1881849DF1E0010F42D /* Release */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
F6F980C4147386130008F121 /* Build configuration list for PBXNativeTarget "libffi iOS" */ = {
|
DB13B1B01849DF520010F42D /* Build configuration list for PBXNativeTarget "libffi-Mac" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
F6F980C2147386130008F121 /* Debug */,
|
DB13B1B11849DF520010F42D /* Debug */,
|
||||||
F6F980C3147386130008F121 /* Release */,
|
DB13B1B21849DF520010F42D /* Release */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
};
|
};
|
||||||
rootObject = F6B0839714721EE50031D8A1 /* Project object */;
|
rootObject = DB13B15C1849DEB70010F42D /* Project object */;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/* Stack alignment requirement in bytes */
|
/* Stack alignment requirement in bytes */
|
||||||
|
#if defined (__APPLE__)
|
||||||
|
#define AARCH64_STACK_ALIGN 1
|
||||||
|
#else
|
||||||
#define AARCH64_STACK_ALIGN 16
|
#define AARCH64_STACK_ALIGN 16
|
||||||
|
#endif
|
||||||
|
|
||||||
#define N_X_ARG_REG 8
|
#define N_X_ARG_REG 8
|
||||||
#define N_V_ARG_REG 8
|
#define N_V_ARG_REG 8
|
||||||
@@ -49,6 +53,23 @@ struct call_context
|
|||||||
} v [AARCH64_N_VREG];
|
} v [AARCH64_N_VREG];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined (__clang__) && defined (__APPLE__)
|
||||||
|
extern void
|
||||||
|
sys_icache_invalidate (void *start, size_t len);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
ffi_clear_cache (void *start, void *end)
|
||||||
|
{
|
||||||
|
#if defined (__clang__) && defined (__APPLE__)
|
||||||
|
sys_icache_invalidate (start, (char *)end - (char *)start);
|
||||||
|
#elif defined (__GNUC__)
|
||||||
|
__builtin___clear_cache (start, end);
|
||||||
|
#else
|
||||||
|
#error "Missing builtin to flush instruction cache"
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
get_x_addr (struct call_context *context, unsigned n)
|
get_x_addr (struct call_context *context, unsigned n)
|
||||||
{
|
{
|
||||||
@@ -94,8 +115,10 @@ get_basic_type_addr (unsigned short type, struct call_context *context,
|
|||||||
return get_s_addr (context, n);
|
return get_s_addr (context, n);
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
return get_d_addr (context, n);
|
return get_d_addr (context, n);
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
return get_v_addr (context, n);
|
return get_v_addr (context, n);
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
case FFI_TYPE_SINT8:
|
case FFI_TYPE_SINT8:
|
||||||
case FFI_TYPE_UINT16:
|
case FFI_TYPE_UINT16:
|
||||||
@@ -107,6 +130,8 @@ get_basic_type_addr (unsigned short type, struct call_context *context,
|
|||||||
case FFI_TYPE_UINT64:
|
case FFI_TYPE_UINT64:
|
||||||
case FFI_TYPE_SINT64:
|
case FFI_TYPE_SINT64:
|
||||||
return get_x_addr (context, n);
|
return get_x_addr (context, n);
|
||||||
|
case FFI_TYPE_VOID:
|
||||||
|
return NULL;
|
||||||
default:
|
default:
|
||||||
FFI_ASSERT (0);
|
FFI_ASSERT (0);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -123,15 +148,26 @@ get_basic_type_alignment (unsigned short type)
|
|||||||
case FFI_TYPE_FLOAT:
|
case FFI_TYPE_FLOAT:
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
return sizeof (UINT64);
|
return sizeof (UINT64);
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
return sizeof (long double);
|
return sizeof (long double);
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
case FFI_TYPE_SINT8:
|
case FFI_TYPE_SINT8:
|
||||||
|
#if defined (__APPLE__)
|
||||||
|
return sizeof (UINT8);
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT16:
|
case FFI_TYPE_UINT16:
|
||||||
case FFI_TYPE_SINT16:
|
case FFI_TYPE_SINT16:
|
||||||
|
#if defined (__APPLE__)
|
||||||
|
return sizeof (UINT16);
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT32:
|
case FFI_TYPE_UINT32:
|
||||||
case FFI_TYPE_INT:
|
case FFI_TYPE_INT:
|
||||||
case FFI_TYPE_SINT32:
|
case FFI_TYPE_SINT32:
|
||||||
|
#if defined (__APPLE__)
|
||||||
|
return sizeof (UINT32);
|
||||||
|
#endif
|
||||||
case FFI_TYPE_POINTER:
|
case FFI_TYPE_POINTER:
|
||||||
case FFI_TYPE_UINT64:
|
case FFI_TYPE_UINT64:
|
||||||
case FFI_TYPE_SINT64:
|
case FFI_TYPE_SINT64:
|
||||||
@@ -154,8 +190,10 @@ get_basic_type_size (unsigned short type)
|
|||||||
return sizeof (UINT32);
|
return sizeof (UINT32);
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
return sizeof (UINT64);
|
return sizeof (UINT64);
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
return sizeof (long double);
|
return sizeof (long double);
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
return sizeof (UINT8);
|
return sizeof (UINT8);
|
||||||
case FFI_TYPE_SINT8:
|
case FFI_TYPE_SINT8:
|
||||||
@@ -186,7 +224,7 @@ ffi_call_SYSV (unsigned (*)(struct call_context *context, unsigned char *,
|
|||||||
extended_cif *),
|
extended_cif *),
|
||||||
struct call_context *context,
|
struct call_context *context,
|
||||||
extended_cif *,
|
extended_cif *,
|
||||||
unsigned,
|
size_t,
|
||||||
void (*fn)(void));
|
void (*fn)(void));
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
@@ -305,7 +343,9 @@ is_register_candidate (ffi_type *ty)
|
|||||||
case FFI_TYPE_VOID:
|
case FFI_TYPE_VOID:
|
||||||
case FFI_TYPE_FLOAT:
|
case FFI_TYPE_FLOAT:
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
case FFI_TYPE_UINT16:
|
case FFI_TYPE_UINT16:
|
||||||
case FFI_TYPE_UINT32:
|
case FFI_TYPE_UINT32:
|
||||||
@@ -367,12 +407,12 @@ struct arg_state
|
|||||||
{
|
{
|
||||||
unsigned ngrn; /* Next general-purpose register number. */
|
unsigned ngrn; /* Next general-purpose register number. */
|
||||||
unsigned nsrn; /* Next vector register number. */
|
unsigned nsrn; /* Next vector register number. */
|
||||||
unsigned nsaa; /* Next stack offset. */
|
size_t nsaa; /* Next stack offset. */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Initialize a procedure call argument marshalling state. */
|
/* Initialize a procedure call argument marshalling state. */
|
||||||
static void
|
static void
|
||||||
arg_init (struct arg_state *state, unsigned call_frame_size)
|
arg_init (struct arg_state *state, size_t call_frame_size)
|
||||||
{
|
{
|
||||||
state->ngrn = 0;
|
state->ngrn = 0;
|
||||||
state->nsrn = 0;
|
state->nsrn = 0;
|
||||||
@@ -400,35 +440,35 @@ available_v (struct arg_state *state)
|
|||||||
static void *
|
static void *
|
||||||
allocate_to_x (struct call_context *context, struct arg_state *state)
|
allocate_to_x (struct call_context *context, struct arg_state *state)
|
||||||
{
|
{
|
||||||
FFI_ASSERT (state->ngrn < N_X_ARG_REG)
|
FFI_ASSERT (state->ngrn < N_X_ARG_REG);
|
||||||
return get_x_addr (context, (state->ngrn)++);
|
return get_x_addr (context, (state->ngrn)++);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
allocate_to_s (struct call_context *context, struct arg_state *state)
|
allocate_to_s (struct call_context *context, struct arg_state *state)
|
||||||
{
|
{
|
||||||
FFI_ASSERT (state->nsrn < N_V_ARG_REG)
|
FFI_ASSERT (state->nsrn < N_V_ARG_REG);
|
||||||
return get_s_addr (context, (state->nsrn)++);
|
return get_s_addr (context, (state->nsrn)++);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
allocate_to_d (struct call_context *context, struct arg_state *state)
|
allocate_to_d (struct call_context *context, struct arg_state *state)
|
||||||
{
|
{
|
||||||
FFI_ASSERT (state->nsrn < N_V_ARG_REG)
|
FFI_ASSERT (state->nsrn < N_V_ARG_REG);
|
||||||
return get_d_addr (context, (state->nsrn)++);
|
return get_d_addr (context, (state->nsrn)++);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
allocate_to_v (struct call_context *context, struct arg_state *state)
|
allocate_to_v (struct call_context *context, struct arg_state *state)
|
||||||
{
|
{
|
||||||
FFI_ASSERT (state->nsrn < N_V_ARG_REG)
|
FFI_ASSERT (state->nsrn < N_V_ARG_REG);
|
||||||
return get_v_addr (context, (state->nsrn)++);
|
return get_v_addr (context, (state->nsrn)++);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate an aligned slot on the stack and return a pointer to it. */
|
/* Allocate an aligned slot on the stack and return a pointer to it. */
|
||||||
static void *
|
static void *
|
||||||
allocate_to_stack (struct arg_state *state, void *stack, unsigned alignment,
|
allocate_to_stack (struct arg_state *state, void *stack, size_t alignment,
|
||||||
unsigned size)
|
size_t size)
|
||||||
{
|
{
|
||||||
void *allocation;
|
void *allocation;
|
||||||
|
|
||||||
@@ -436,7 +476,9 @@ allocate_to_stack (struct arg_state *state, void *stack, unsigned alignment,
|
|||||||
alignment of the argument's type. */
|
alignment of the argument's type. */
|
||||||
state->nsaa = ALIGN (state->nsaa, alignment);
|
state->nsaa = ALIGN (state->nsaa, alignment);
|
||||||
state->nsaa = ALIGN (state->nsaa, alignment);
|
state->nsaa = ALIGN (state->nsaa, alignment);
|
||||||
|
#if !defined (__APPLE__)
|
||||||
state->nsaa = ALIGN (state->nsaa, 8);
|
state->nsaa = ALIGN (state->nsaa, 8);
|
||||||
|
#endif
|
||||||
|
|
||||||
allocation = stack + state->nsaa;
|
allocation = stack + state->nsaa;
|
||||||
|
|
||||||
@@ -457,9 +499,11 @@ copy_basic_type (void *dest, void *source, unsigned short type)
|
|||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
*(double *) dest = *(double *) source;
|
*(double *) dest = *(double *) source;
|
||||||
break;
|
break;
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
*(long double *) dest = *(long double *) source;
|
*(long double *) dest = *(long double *) source;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
*(ffi_arg *) dest = *(UINT8 *) source;
|
*(ffi_arg *) dest = *(UINT8 *) source;
|
||||||
break;
|
break;
|
||||||
@@ -486,6 +530,8 @@ copy_basic_type (void *dest, void *source, unsigned short type)
|
|||||||
case FFI_TYPE_SINT64:
|
case FFI_TYPE_SINT64:
|
||||||
*(ffi_sarg *) dest = *(SINT64 *) source;
|
*(ffi_sarg *) dest = *(SINT64 *) source;
|
||||||
break;
|
break;
|
||||||
|
case FFI_TYPE_VOID:
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
FFI_ASSERT (0);
|
FFI_ASSERT (0);
|
||||||
@@ -514,7 +560,6 @@ copy_hfa_to_reg_or_stack (void *memory,
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned short type = get_homogeneous_type (ty);
|
unsigned short type = get_homogeneous_type (ty);
|
||||||
unsigned elems = element_count (ty);
|
|
||||||
for (i = 0; i < elems; i++)
|
for (i = 0; i < elems; i++)
|
||||||
{
|
{
|
||||||
void *reg = allocate_to_v (context, state);
|
void *reg = allocate_to_v (context, state);
|
||||||
@@ -548,11 +593,13 @@ allocate_to_register_or_stack (struct call_context *context,
|
|||||||
return allocate_to_d (context, state);
|
return allocate_to_d (context, state);
|
||||||
state->nsrn = N_V_ARG_REG;
|
state->nsrn = N_V_ARG_REG;
|
||||||
break;
|
break;
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
if (state->nsrn < N_V_ARG_REG)
|
if (state->nsrn < N_V_ARG_REG)
|
||||||
return allocate_to_v (context, state);
|
return allocate_to_v (context, state);
|
||||||
state->nsrn = N_V_ARG_REG;
|
state->nsrn = N_V_ARG_REG;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
case FFI_TYPE_SINT8:
|
case FFI_TYPE_SINT8:
|
||||||
case FFI_TYPE_UINT16:
|
case FFI_TYPE_UINT16:
|
||||||
@@ -615,7 +662,9 @@ aarch64_prep_args (struct call_context *context, unsigned char *stack,
|
|||||||
appropriate register, or if none are available, to the stack. */
|
appropriate register, or if none are available, to the stack. */
|
||||||
case FFI_TYPE_FLOAT:
|
case FFI_TYPE_FLOAT:
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
case FFI_TYPE_SINT8:
|
case FFI_TYPE_SINT8:
|
||||||
case FFI_TYPE_UINT16:
|
case FFI_TYPE_UINT16:
|
||||||
@@ -728,7 +777,7 @@ ffi_call (ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
|
|||||||
case FFI_SYSV:
|
case FFI_SYSV:
|
||||||
{
|
{
|
||||||
struct call_context context;
|
struct call_context context;
|
||||||
unsigned stack_bytes;
|
size_t stack_bytes;
|
||||||
|
|
||||||
/* Figure out the total amount of stack space we need, the
|
/* Figure out the total amount of stack space we need, the
|
||||||
above call frame space needs to be 16 bytes aligned to
|
above call frame space needs to be 16 bytes aligned to
|
||||||
@@ -745,7 +794,9 @@ ffi_call (ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
|
|||||||
case FFI_TYPE_VOID:
|
case FFI_TYPE_VOID:
|
||||||
case FFI_TYPE_FLOAT:
|
case FFI_TYPE_FLOAT:
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
|
#endif
|
||||||
case FFI_TYPE_UINT8:
|
case FFI_TYPE_UINT8:
|
||||||
case FFI_TYPE_SINT8:
|
case FFI_TYPE_SINT8:
|
||||||
case FFI_TYPE_UINT16:
|
case FFI_TYPE_UINT16:
|
||||||
@@ -778,7 +829,7 @@ ffi_call (ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
|
|||||||
}
|
}
|
||||||
else if ((cif->rtype->size + 7) / 8 < N_X_ARG_REG)
|
else if ((cif->rtype->size + 7) / 8 < N_X_ARG_REG)
|
||||||
{
|
{
|
||||||
unsigned size = ALIGN (cif->rtype->size, sizeof (UINT64));
|
size_t size = ALIGN (cif->rtype->size, sizeof (UINT64));
|
||||||
memcpy (rvalue, get_x_addr (&context, 0), size);
|
memcpy (rvalue, get_x_addr (&context, 0), size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -824,7 +875,7 @@ static unsigned char trampoline [] =
|
|||||||
memcpy (__tramp + 12, &__fun, sizeof (__fun)); \
|
memcpy (__tramp + 12, &__fun, sizeof (__fun)); \
|
||||||
memcpy (__tramp + 20, &__ctx, sizeof (__ctx)); \
|
memcpy (__tramp + 20, &__ctx, sizeof (__ctx)); \
|
||||||
memcpy (__tramp + 28, &__flags, sizeof (__flags)); \
|
memcpy (__tramp + 28, &__flags, sizeof (__flags)); \
|
||||||
__clear_cache(__tramp, __tramp + FFI_TRAMPOLINE_SIZE); \
|
ffi_clear_cache(__tramp, __tramp + FFI_TRAMPOLINE_SIZE); \
|
||||||
})
|
})
|
||||||
|
|
||||||
ffi_status
|
ffi_status
|
||||||
@@ -863,7 +914,7 @@ ffi_prep_closure_loc (ffi_closure* closure,
|
|||||||
descriptors, invokes the wrapped function, then marshalls the return
|
descriptors, invokes the wrapped function, then marshalls the return
|
||||||
value back into the call context. */
|
value back into the call context. */
|
||||||
|
|
||||||
void
|
void FFI_HIDDEN
|
||||||
ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
|
ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
|
||||||
void *stack)
|
void *stack)
|
||||||
{
|
{
|
||||||
@@ -897,10 +948,12 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
|
|||||||
case FFI_TYPE_SINT64:
|
case FFI_TYPE_SINT64:
|
||||||
case FFI_TYPE_FLOAT:
|
case FFI_TYPE_FLOAT:
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
avalue[i] = allocate_to_register_or_stack (context, stack,
|
avalue[i] = allocate_to_register_or_stack (context, stack,
|
||||||
&state, ty->type);
|
&state, ty->type);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case FFI_TYPE_STRUCT:
|
case FFI_TYPE_STRUCT:
|
||||||
if (is_hfa (ty))
|
if (is_hfa (ty))
|
||||||
@@ -958,11 +1011,13 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
memcpy (&avalue[i],
|
memcpy (&avalue[i],
|
||||||
allocate_to_v (context, &state),
|
allocate_to_v (context, &state),
|
||||||
sizeof (*avalue));
|
sizeof (*avalue));
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
FFI_ASSERT (0);
|
FFI_ASSERT (0);
|
||||||
@@ -1033,7 +1088,9 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
|
|||||||
case FFI_TYPE_SINT64:
|
case FFI_TYPE_SINT64:
|
||||||
case FFI_TYPE_FLOAT:
|
case FFI_TYPE_FLOAT:
|
||||||
case FFI_TYPE_DOUBLE:
|
case FFI_TYPE_DOUBLE:
|
||||||
|
#if FFI_TYPE_DOUBLE != FFI_TYPE_LONGDOUBLE
|
||||||
case FFI_TYPE_LONGDOUBLE:
|
case FFI_TYPE_LONGDOUBLE:
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
void *addr = get_basic_type_addr (cif->rtype->type, context, 0);
|
void *addr = get_basic_type_addr (cif->rtype->type, context, 0);
|
||||||
copy_basic_type (addr, rvalue, cif->rtype->type);
|
copy_basic_type (addr, rvalue, cif->rtype->type);
|
||||||
@@ -1042,19 +1099,19 @@ ffi_closure_SYSV_inner (ffi_closure *closure, struct call_context *context,
|
|||||||
case FFI_TYPE_STRUCT:
|
case FFI_TYPE_STRUCT:
|
||||||
if (is_hfa (cif->rtype))
|
if (is_hfa (cif->rtype))
|
||||||
{
|
{
|
||||||
int i;
|
int j;
|
||||||
unsigned short type = get_homogeneous_type (cif->rtype);
|
unsigned short type = get_homogeneous_type (cif->rtype);
|
||||||
unsigned elems = element_count (cif->rtype);
|
unsigned elems = element_count (cif->rtype);
|
||||||
for (i = 0; i < elems; i++)
|
for (j = 0; j < elems; j++)
|
||||||
{
|
{
|
||||||
void *reg = get_basic_type_addr (type, context, i);
|
void *reg = get_basic_type_addr (type, context, j);
|
||||||
copy_basic_type (reg, rvalue, type);
|
copy_basic_type (reg, rvalue, type);
|
||||||
rvalue += get_basic_type_size (type);
|
rvalue += get_basic_type_size (type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((cif->rtype->size + 7) / 8 < N_X_ARG_REG)
|
else if ((cif->rtype->size + 7) / 8 < N_X_ARG_REG)
|
||||||
{
|
{
|
||||||
unsigned size = ALIGN (cif->rtype->size, sizeof (UINT64)) ;
|
size_t size = ALIGN (cif->rtype->size, sizeof (UINT64)) ;
|
||||||
memcpy (get_x_addr (context, 0), rvalue, size);
|
memcpy (get_x_addr (context, 0), rvalue, size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -23,14 +23,30 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||||||
#include <fficonfig.h>
|
#include <fficonfig.h>
|
||||||
#include <ffi.h>
|
#include <ffi.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_MACHINE_ASM_H
|
||||||
|
#include <machine/asm.h>
|
||||||
|
#else
|
||||||
|
#ifdef __USER_LABEL_PREFIX__
|
||||||
|
#define CONCAT1(a, b) CONCAT2(a, b)
|
||||||
|
#define CONCAT2(a, b) a ## b
|
||||||
|
|
||||||
|
/* Use the right prefix for global labels. */
|
||||||
|
#define CNAME(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
|
||||||
|
#else
|
||||||
|
#define CNAME(x) x
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
|
#define cfi_adjust_cfa_offset(off) .cfi_adjust_cfa_offset off
|
||||||
#define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off
|
#define cfi_rel_offset(reg, off) .cfi_rel_offset reg, off
|
||||||
#define cfi_restore(reg) .cfi_restore reg
|
#define cfi_restore(reg) .cfi_restore reg
|
||||||
#define cfi_def_cfa_register(reg) .cfi_def_cfa_register reg
|
#define cfi_def_cfa_register(reg) .cfi_def_cfa_register reg
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.globl ffi_call_SYSV
|
.globl CNAME(ffi_call_SYSV)
|
||||||
.type ffi_call_SYSV, #function
|
#ifdef __ELF__
|
||||||
|
.type CNAME(ffi_call_SYSV), #function
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ffi_call_SYSV()
|
/* ffi_call_SYSV()
|
||||||
|
|
||||||
@@ -53,7 +69,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||||||
extended_cif *),
|
extended_cif *),
|
||||||
struct call_context *context,
|
struct call_context *context,
|
||||||
extended_cif *,
|
extended_cif *,
|
||||||
unsigned required_stack_size,
|
size_t required_stack_size,
|
||||||
void (*fn)(void));
|
void (*fn)(void));
|
||||||
|
|
||||||
Therefore on entry we have:
|
Therefore on entry we have:
|
||||||
@@ -82,7 +98,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||||||
#define ffi_call_SYSV_FS (8 * 4)
|
#define ffi_call_SYSV_FS (8 * 4)
|
||||||
|
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
ffi_call_SYSV:
|
CNAME(ffi_call_SYSV):
|
||||||
stp x29, x30, [sp, #-16]!
|
stp x29, x30, [sp, #-16]!
|
||||||
cfi_adjust_cfa_offset (16)
|
cfi_adjust_cfa_offset (16)
|
||||||
cfi_rel_offset (x29, 0)
|
cfi_rel_offset (x29, 0)
|
||||||
@@ -92,11 +108,11 @@ ffi_call_SYSV:
|
|||||||
cfi_def_cfa_register (x29)
|
cfi_def_cfa_register (x29)
|
||||||
sub sp, sp, #ffi_call_SYSV_FS
|
sub sp, sp, #ffi_call_SYSV_FS
|
||||||
|
|
||||||
stp x21, x22, [sp, 0]
|
stp x21, x22, [sp, #0]
|
||||||
cfi_rel_offset (x21, 0 - ffi_call_SYSV_FS)
|
cfi_rel_offset (x21, 0 - ffi_call_SYSV_FS)
|
||||||
cfi_rel_offset (x22, 8 - ffi_call_SYSV_FS)
|
cfi_rel_offset (x22, 8 - ffi_call_SYSV_FS)
|
||||||
|
|
||||||
stp x23, x24, [sp, 16]
|
stp x23, x24, [sp, #16]
|
||||||
cfi_rel_offset (x23, 16 - ffi_call_SYSV_FS)
|
cfi_rel_offset (x23, 16 - ffi_call_SYSV_FS)
|
||||||
cfi_rel_offset (x24, 24 - ffi_call_SYSV_FS)
|
cfi_rel_offset (x24, 24 - ffi_call_SYSV_FS)
|
||||||
|
|
||||||
@@ -180,7 +196,9 @@ ffi_call_SYSV:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.cfi_endproc
|
.cfi_endproc
|
||||||
.size ffi_call_SYSV, .-ffi_call_SYSV
|
#ifdef __ELF__
|
||||||
|
.size CNAME(ffi_call_SYSV), .-CNAME(ffi_call_SYSV)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ffi_closure_SYSV_FS (8 * 2 + AARCH64_CALL_CONTEXT_SIZE)
|
#define ffi_closure_SYSV_FS (8 * 2 + AARCH64_CALL_CONTEXT_SIZE)
|
||||||
|
|
||||||
@@ -222,9 +240,9 @@ ffi_call_SYSV:
|
|||||||
Voila! */
|
Voila! */
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.globl ffi_closure_SYSV
|
.globl CNAME(ffi_closure_SYSV)
|
||||||
.cfi_startproc
|
.cfi_startproc
|
||||||
ffi_closure_SYSV:
|
CNAME(ffi_closure_SYSV):
|
||||||
stp x29, x30, [sp, #-16]!
|
stp x29, x30, [sp, #-16]!
|
||||||
cfi_adjust_cfa_offset (16)
|
cfi_adjust_cfa_offset (16)
|
||||||
cfi_rel_offset (x29, 0)
|
cfi_rel_offset (x29, 0)
|
||||||
@@ -270,7 +288,7 @@ ffi_closure_SYSV:
|
|||||||
trampoline was called. */
|
trampoline was called. */
|
||||||
add x2, x29, #16
|
add x2, x29, #16
|
||||||
|
|
||||||
bl ffi_closure_SYSV_inner
|
bl CNAME(ffi_closure_SYSV_inner)
|
||||||
|
|
||||||
/* Figure out if we should touch the vector registers. */
|
/* Figure out if we should touch the vector registers. */
|
||||||
ldr x0, [x22, #8]
|
ldr x0, [x22, #8]
|
||||||
@@ -304,4 +322,6 @@ ffi_closure_SYSV:
|
|||||||
|
|
||||||
ret
|
ret
|
||||||
.cfi_endproc
|
.cfi_endproc
|
||||||
.size ffi_closure_SYSV, .-ffi_closure_SYSV
|
#ifdef __ELF__
|
||||||
|
.size CNAME(ffi_closure_SYSV), .-CNAME(ffi_closure_SYSV)
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
static int vfp_type_p (ffi_type *);
|
static int vfp_type_p (ffi_type *);
|
||||||
static void layout_vfp_args (ffi_cif *);
|
static void layout_vfp_args (ffi_cif *);
|
||||||
|
|
||||||
|
int ffi_prep_args_SYSV(char *stack, extended_cif *ecif, float *vfp_space);
|
||||||
|
int ffi_prep_args_VFP(char *stack, extended_cif *ecif, float *vfp_space);
|
||||||
|
|
||||||
static char* ffi_align(ffi_type **p_arg, char *argp)
|
static char* ffi_align(ffi_type **p_arg, char *argp)
|
||||||
{
|
{
|
||||||
/* Align if necessary */
|
/* Align if necessary */
|
||||||
@@ -347,9 +350,17 @@ void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (small_struct)
|
if (small_struct)
|
||||||
memcpy (rvalue, &temp, cif->rtype->size);
|
{
|
||||||
|
FFI_ASSERT(rvalue != NULL);
|
||||||
|
memcpy (rvalue, &temp, cif->rtype->size);
|
||||||
|
}
|
||||||
|
|
||||||
else if (vfp_struct)
|
else if (vfp_struct)
|
||||||
memcpy (rvalue, ecif.rvalue, cif->rtype->size);
|
{
|
||||||
|
FFI_ASSERT(rvalue != NULL);
|
||||||
|
memcpy (rvalue, ecif.rvalue, cif->rtype->size);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** private members **/
|
/** private members **/
|
||||||
@@ -366,7 +377,7 @@ void ffi_closure_VFP (ffi_closure *);
|
|||||||
|
|
||||||
/* This function is jumped to by the trampoline */
|
/* This function is jumped to by the trampoline */
|
||||||
|
|
||||||
unsigned int
|
unsigned int FFI_HIDDEN
|
||||||
ffi_closure_inner (ffi_closure *closure,
|
ffi_closure_inner (ffi_closure *closure,
|
||||||
void **respp, void *args, void *vfp_args)
|
void **respp, void *args, void *vfp_args)
|
||||||
{
|
{
|
||||||
@@ -860,7 +871,7 @@ static int vfp_type_p (ffi_type *t)
|
|||||||
|
|
||||||
static int place_vfp_arg (ffi_cif *cif, ffi_type *t)
|
static int place_vfp_arg (ffi_cif *cif, ffi_type *t)
|
||||||
{
|
{
|
||||||
int reg = cif->vfp_reg_free;
|
short reg = cif->vfp_reg_free;
|
||||||
int nregs = t->size / sizeof (float);
|
int nregs = t->size / sizeof (float);
|
||||||
int align = ((t->type == FFI_TYPE_STRUCT_VFP_FLOAT
|
int align = ((t->type == FFI_TYPE_STRUCT_VFP_FLOAT
|
||||||
|| t->type == FFI_TYPE_FLOAT) ? 1 : 2);
|
|| t->type == FFI_TYPE_FLOAT) ? 1 : 2);
|
||||||
|
|||||||
@@ -109,42 +109,27 @@
|
|||||||
#define UNWIND @
|
#define UNWIND @
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
.syntax unified
|
||||||
|
|
||||||
#if defined(__thumb__) && !defined(__THUMB_INTERWORK__)
|
#if defined(__thumb__) && !defined(__THUMB_INTERWORK__)
|
||||||
.macro ARM_FUNC_START name
|
#define ARM_FUNC_START(name) \
|
||||||
.text
|
.text; \
|
||||||
.align 0
|
.align 2; \
|
||||||
.thumb
|
.thumb; \
|
||||||
.thumb_func
|
.thumb_func; \
|
||||||
#ifdef __APPLE__
|
ENTRY(name); \
|
||||||
ENTRY($0)
|
bx pc; \
|
||||||
|
nop; \
|
||||||
|
.arm; \
|
||||||
|
UNWIND .fnstart; \
|
||||||
|
_L__##name:
|
||||||
#else
|
#else
|
||||||
ENTRY(\name)
|
#define ARM_FUNC_START(name) \
|
||||||
#endif
|
.text; \
|
||||||
bx pc
|
.align 2; \
|
||||||
nop
|
.arm; \
|
||||||
.arm
|
ENTRY(name); \
|
||||||
UNWIND .fnstart
|
UNWIND .fnstart
|
||||||
/* A hook to tell gdb that we've switched to ARM mode. Also used to call
|
|
||||||
directly from other local arm routines. */
|
|
||||||
#ifdef __APPLE__
|
|
||||||
_L__$0:
|
|
||||||
#else
|
|
||||||
_L__\name:
|
|
||||||
#endif
|
|
||||||
.endm
|
|
||||||
#else
|
|
||||||
.macro ARM_FUNC_START name
|
|
||||||
.text
|
|
||||||
.align 0
|
|
||||||
.arm
|
|
||||||
#ifdef __APPLE__
|
|
||||||
ENTRY($0)
|
|
||||||
#else
|
|
||||||
ENTRY(\name)
|
|
||||||
#endif
|
|
||||||
UNWIND .fnstart
|
|
||||||
.endm
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.macro RETLDM regs=, cond=, dirn=ia
|
.macro RETLDM regs=, cond=, dirn=ia
|
||||||
@@ -171,7 +156,7 @@ _L__\name:
|
|||||||
@ sp+0: ecif.rvalue
|
@ sp+0: ecif.rvalue
|
||||||
|
|
||||||
@ This assumes we are using gas.
|
@ This assumes we are using gas.
|
||||||
ARM_FUNC_START ffi_call_SYSV
|
ARM_FUNC_START(ffi_call_SYSV)
|
||||||
@ Save registers
|
@ Save registers
|
||||||
stmfd sp!, {r0-r3, fp, lr}
|
stmfd sp!, {r0-r3, fp, lr}
|
||||||
UNWIND .save {r0-r3, fp, lr}
|
UNWIND .save {r0-r3, fp, lr}
|
||||||
@@ -228,7 +213,7 @@ ARM_FUNC_START ffi_call_SYSV
|
|||||||
#if defined(__SOFTFP__) || defined(__ARM_EABI__)
|
#if defined(__SOFTFP__) || defined(__ARM_EABI__)
|
||||||
cmpne r3, #FFI_TYPE_DOUBLE
|
cmpne r3, #FFI_TYPE_DOUBLE
|
||||||
#endif
|
#endif
|
||||||
stmeqia r2, {r0, r1}
|
stmiaeq r2, {r0, r1}
|
||||||
|
|
||||||
#if !defined(__SOFTFP__) && !defined(__ARM_EABI__)
|
#if !defined(__SOFTFP__) && !defined(__ARM_EABI__)
|
||||||
beq LSYM(Lepilogue)
|
beq LSYM(Lepilogue)
|
||||||
@@ -266,7 +251,7 @@ LSYM(Lepilogue):
|
|||||||
void *args;
|
void *args;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ARM_FUNC_START ffi_closure_SYSV
|
ARM_FUNC_START(ffi_closure_SYSV)
|
||||||
UNWIND .pad #16
|
UNWIND .pad #16
|
||||||
add ip, sp, #16
|
add ip, sp, #16
|
||||||
stmfd sp!, {ip, lr}
|
stmfd sp!, {ip, lr}
|
||||||
@@ -345,7 +330,7 @@ ARM_FUNC_START ffi_closure_SYSV
|
|||||||
@ r3: fig->flags
|
@ r3: fig->flags
|
||||||
@ sp+0: ecif.rvalue
|
@ sp+0: ecif.rvalue
|
||||||
|
|
||||||
ARM_FUNC_START ffi_call_VFP
|
ARM_FUNC_START(ffi_call_VFP)
|
||||||
@ Save registers
|
@ Save registers
|
||||||
stmfd sp!, {r0-r3, fp, lr}
|
stmfd sp!, {r0-r3, fp, lr}
|
||||||
UNWIND .save {r0-r3, fp, lr}
|
UNWIND .save {r0-r3, fp, lr}
|
||||||
@@ -433,7 +418,7 @@ LSYM(Lepilogue_vfp):
|
|||||||
.size CNAME(ffi_call_VFP),.ffi_call_VFP_end-CNAME(ffi_call_VFP)
|
.size CNAME(ffi_call_VFP),.ffi_call_VFP_end-CNAME(ffi_call_VFP)
|
||||||
|
|
||||||
|
|
||||||
ARM_FUNC_START ffi_closure_VFP
|
ARM_FUNC_START(ffi_closure_VFP)
|
||||||
fstmfdd sp!, {d0-d7}
|
fstmfdd sp!, {d0-d7}
|
||||||
@ r0-r3, then d0-d7
|
@ r0-r3, then d0-d7
|
||||||
UNWIND .pad #80
|
UNWIND .pad #80
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ static int
|
|||||||
open_temp_exec_file_dir (const char *dir)
|
open_temp_exec_file_dir (const char *dir)
|
||||||
{
|
{
|
||||||
static const char suffix[] = "/ffiXXXXXX";
|
static const char suffix[] = "/ffiXXXXXX";
|
||||||
int lendir = strlen (dir);
|
size_t lendir = strlen (dir);
|
||||||
char *tempname = __builtin_alloca (lendir + sizeof (suffix));
|
char *tempname = __builtin_alloca (lendir + sizeof (suffix));
|
||||||
|
|
||||||
if (!tempname)
|
if (!tempname)
|
||||||
|
|||||||
@@ -1661,7 +1661,7 @@ struct malloc_chunk {
|
|||||||
typedef struct malloc_chunk mchunk;
|
typedef struct malloc_chunk mchunk;
|
||||||
typedef struct malloc_chunk* mchunkptr;
|
typedef struct malloc_chunk* mchunkptr;
|
||||||
typedef struct malloc_chunk* sbinptr; /* The type of bins of chunks */
|
typedef struct malloc_chunk* sbinptr; /* The type of bins of chunks */
|
||||||
typedef unsigned int bindex_t; /* Described below */
|
typedef size_t bindex_t; /* Described below */
|
||||||
typedef unsigned int binmap_t; /* Described below */
|
typedef unsigned int binmap_t; /* Described below */
|
||||||
typedef unsigned int flag_t; /* The type of various bit flag sets */
|
typedef unsigned int flag_t; /* The type of various bit flag sets */
|
||||||
|
|
||||||
@@ -3388,7 +3388,7 @@ static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
|
|||||||
*ss = m->seg; /* Push current record */
|
*ss = m->seg; /* Push current record */
|
||||||
m->seg.base = tbase;
|
m->seg.base = tbase;
|
||||||
m->seg.size = tsize;
|
m->seg.size = tsize;
|
||||||
set_segment_flags(&m->seg, mmapped);
|
(void)set_segment_flags(&m->seg, mmapped);
|
||||||
m->seg.next = ss;
|
m->seg.next = ss;
|
||||||
|
|
||||||
/* Insert trailing fenceposts */
|
/* Insert trailing fenceposts */
|
||||||
@@ -3548,7 +3548,7 @@ static void* sys_alloc(mstate m, size_t nb) {
|
|||||||
if (!is_initialized(m)) { /* first-time initialization */
|
if (!is_initialized(m)) { /* first-time initialization */
|
||||||
m->seg.base = m->least_addr = tbase;
|
m->seg.base = m->least_addr = tbase;
|
||||||
m->seg.size = tsize;
|
m->seg.size = tsize;
|
||||||
set_segment_flags(&m->seg, mmap_flag);
|
(void)set_segment_flags(&m->seg, mmap_flag);
|
||||||
m->magic = mparams.magic;
|
m->magic = mparams.magic;
|
||||||
init_bins(m);
|
init_bins(m);
|
||||||
if (is_global(m))
|
if (is_global(m))
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ ffi_status FFI_HIDDEN ffi_prep_cif_core(ffi_cif *cif, ffi_abi abi,
|
|||||||
{
|
{
|
||||||
/* Add any padding if necessary */
|
/* Add any padding if necessary */
|
||||||
if (((*ptr)->alignment - 1) & bytes)
|
if (((*ptr)->alignment - 1) & bytes)
|
||||||
bytes = ALIGN(bytes, (*ptr)->alignment);
|
bytes = (unsigned)ALIGN(bytes, (*ptr)->alignment);
|
||||||
|
|
||||||
#ifdef TILE
|
#ifdef TILE
|
||||||
if (bytes < 10 * FFI_SIZEOF_ARG &&
|
if (bytes < 10 * FFI_SIZEOF_ARG &&
|
||||||
|
|||||||
@@ -39,9 +39,11 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
/* ffi_prep_args is called by the assembly routine once stack space
|
/* ffi_prep_args is called by the assembly routine once stack space
|
||||||
has been allocated for the function's arguments */
|
has been allocated for the function's arguments */
|
||||||
|
|
||||||
|
void ffi_prep_args(char *stack, extended_cif *ecif);
|
||||||
void ffi_prep_args(char *stack, extended_cif *ecif)
|
void ffi_prep_args(char *stack, extended_cif *ecif)
|
||||||
{
|
{
|
||||||
register unsigned int i;
|
register unsigned int i;
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ merge_classes (enum x86_64_reg_class class1, enum x86_64_reg_class class2)
|
|||||||
|
|
||||||
See the x86-64 PS ABI for details.
|
See the x86-64 PS ABI for details.
|
||||||
*/
|
*/
|
||||||
static int
|
static size_t
|
||||||
classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
||||||
size_t byte_offset)
|
size_t byte_offset)
|
||||||
{
|
{
|
||||||
@@ -168,7 +168,7 @@ classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
|||||||
case FFI_TYPE_SINT64:
|
case FFI_TYPE_SINT64:
|
||||||
case FFI_TYPE_POINTER:
|
case FFI_TYPE_POINTER:
|
||||||
{
|
{
|
||||||
int size = byte_offset + type->size;
|
size_t size = byte_offset + type->size;
|
||||||
|
|
||||||
if (size <= 4)
|
if (size <= 4)
|
||||||
{
|
{
|
||||||
@@ -209,8 +209,8 @@ classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
|||||||
return 2;
|
return 2;
|
||||||
case FFI_TYPE_STRUCT:
|
case FFI_TYPE_STRUCT:
|
||||||
{
|
{
|
||||||
const int UNITS_PER_WORD = 8;
|
const size_t UNITS_PER_WORD = 8;
|
||||||
int words = (type->size + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
|
size_t words = (type->size + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
|
||||||
ffi_type **ptr;
|
ffi_type **ptr;
|
||||||
int i;
|
int i;
|
||||||
enum x86_64_reg_class subclasses[MAX_CLASSES];
|
enum x86_64_reg_class subclasses[MAX_CLASSES];
|
||||||
@@ -233,7 +233,7 @@ classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
|||||||
/* Merge the fields of structure. */
|
/* Merge the fields of structure. */
|
||||||
for (ptr = type->elements; *ptr != NULL; ptr++)
|
for (ptr = type->elements; *ptr != NULL; ptr++)
|
||||||
{
|
{
|
||||||
int num;
|
size_t num;
|
||||||
|
|
||||||
byte_offset = ALIGN (byte_offset, (*ptr)->alignment);
|
byte_offset = ALIGN (byte_offset, (*ptr)->alignment);
|
||||||
|
|
||||||
@@ -242,7 +242,7 @@ classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
|||||||
return 0;
|
return 0;
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
{
|
{
|
||||||
int pos = byte_offset / 8;
|
size_t pos = byte_offset / 8;
|
||||||
classes[i + pos] =
|
classes[i + pos] =
|
||||||
merge_classes (subclasses[i], classes[i + pos]);
|
merge_classes (subclasses[i], classes[i + pos]);
|
||||||
}
|
}
|
||||||
@@ -306,11 +306,12 @@ classify_argument (ffi_type *type, enum x86_64_reg_class classes[],
|
|||||||
class. Return zero iff parameter should be passed in memory, otherwise
|
class. Return zero iff parameter should be passed in memory, otherwise
|
||||||
the number of registers. */
|
the number of registers. */
|
||||||
|
|
||||||
static int
|
static size_t
|
||||||
examine_argument (ffi_type *type, enum x86_64_reg_class classes[MAX_CLASSES],
|
examine_argument (ffi_type *type, enum x86_64_reg_class classes[MAX_CLASSES],
|
||||||
_Bool in_return, int *pngpr, int *pnsse)
|
_Bool in_return, int *pngpr, int *pnsse)
|
||||||
{
|
{
|
||||||
int i, n, ngpr, nsse;
|
size_t n;
|
||||||
|
int i, ngpr, nsse;
|
||||||
|
|
||||||
n = classify_argument (type, classes, 0);
|
n = classify_argument (type, classes, 0);
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
@@ -351,9 +352,9 @@ examine_argument (ffi_type *type, enum x86_64_reg_class classes[MAX_CLASSES],
|
|||||||
ffi_status
|
ffi_status
|
||||||
ffi_prep_cif_machdep (ffi_cif *cif)
|
ffi_prep_cif_machdep (ffi_cif *cif)
|
||||||
{
|
{
|
||||||
int gprcount, ssecount, i, avn, n, ngpr, nsse, flags;
|
int gprcount, ssecount, i, avn, ngpr, nsse, flags;
|
||||||
enum x86_64_reg_class classes[MAX_CLASSES];
|
enum x86_64_reg_class classes[MAX_CLASSES];
|
||||||
size_t bytes;
|
size_t bytes, n;
|
||||||
|
|
||||||
gprcount = ssecount = 0;
|
gprcount = ssecount = 0;
|
||||||
|
|
||||||
@@ -411,7 +412,7 @@ ffi_prep_cif_machdep (ffi_cif *cif)
|
|||||||
if (ssecount)
|
if (ssecount)
|
||||||
flags |= 1 << 11;
|
flags |= 1 << 11;
|
||||||
cif->flags = flags;
|
cif->flags = flags;
|
||||||
cif->bytes = ALIGN (bytes, 8);
|
cif->bytes = (unsigned)ALIGN (bytes, 8);
|
||||||
|
|
||||||
return FFI_OK;
|
return FFI_OK;
|
||||||
}
|
}
|
||||||
@@ -454,8 +455,7 @@ ffi_call (ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
|
|||||||
|
|
||||||
for (i = 0; i < avn; ++i)
|
for (i = 0; i < avn; ++i)
|
||||||
{
|
{
|
||||||
size_t size = arg_types[i]->size;
|
size_t n, size = arg_types[i]->size;
|
||||||
int n;
|
|
||||||
|
|
||||||
n = examine_argument (arg_types[i], classes, 0, &ngpr, &nsse);
|
n = examine_argument (arg_types[i], classes, 0, &ngpr, &nsse);
|
||||||
if (n == 0
|
if (n == 0
|
||||||
@@ -584,7 +584,7 @@ ffi_closure_unix64_inner(ffi_closure *closure, void *rvalue,
|
|||||||
if (ret != FFI_TYPE_VOID)
|
if (ret != FFI_TYPE_VOID)
|
||||||
{
|
{
|
||||||
enum x86_64_reg_class classes[MAX_CLASSES];
|
enum x86_64_reg_class classes[MAX_CLASSES];
|
||||||
int n = examine_argument (cif->rtype, classes, 1, &ngpr, &nsse);
|
size_t n = examine_argument (cif->rtype, classes, 1, &ngpr, &nsse);
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
{
|
{
|
||||||
/* The return value goes in memory. Arrange for the closure
|
/* The return value goes in memory. Arrange for the closure
|
||||||
@@ -611,7 +611,7 @@ ffi_closure_unix64_inner(ffi_closure *closure, void *rvalue,
|
|||||||
for (i = 0; i < avn; ++i)
|
for (i = 0; i < avn; ++i)
|
||||||
{
|
{
|
||||||
enum x86_64_reg_class classes[MAX_CLASSES];
|
enum x86_64_reg_class classes[MAX_CLASSES];
|
||||||
int n;
|
size_t n;
|
||||||
|
|
||||||
n = examine_argument (arg_types[i], classes, 0, &ngpr, &nsse);
|
n = examine_argument (arg_types[i], classes, 0, &ngpr, &nsse);
|
||||||
if (n == 0
|
if (n == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user