Sha256: 8164480e199eb673189bd4c8c617369949edb337070b1f6b3c05f85ae414d9d0
Contents?: true
Size: 947 Bytes
Versions: 8
Compression:
Stored size: 947 Bytes
Contents
require 'rake/clean' SDK_VERSION = '3.1.2' SDK_ROOT = "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator#{SDK_VERSION}.sdk" CFLAGS = '-arch i386 -pipe -std=c99 -DTARGET_OS_IPHONE' SDK_CFLAGS = "-isysroot #{SDK_ROOT} -F/System/Library/PrivateFrameworks -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000" CC = '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' rule '.o' => '.m' do |o| sh "#{CC} -I. -Ijson -c -o #{o.name} -fvisibility=hidden -x objective-c #{CFLAGS} #{SDK_CFLAGS} #{o.source}" end CLEAN.include('**/*.o') file 'libicuke.dylib' => FileList['**/*.m'].ext('.o') do |t| sh "#{CC} -dynamiclib -o #{t.name} -fvisibility=hidden #{CFLAGS} #{SDK_CFLAGS} -framework Foundation -framework GraphicsServices -framework UIKit -framework CFNetwork -framework AXRuntime #{t.prerequisites.join(' ')}" end CLEAN.include('libicuke.dylib') task :install => 'libicuke.dylib' task :default => :install
Version data entries
8 entries across 8 versions & 1 rubygems