Created
January 15, 2013 20:41
-
-
Save carsonmcdonald/4541836 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MRuby::Build.new do |conf| | |
conf.cc = ENV['CC'] || 'gcc' | |
conf.ld = ENV['LD'] || 'gcc' | |
conf.ar = ENV['AR'] || 'ar' | |
conf.cflags << (ENV['CFLAGS'] || %w(-g -O3 -Wall -Werror-implicit-function-declaration)) | |
conf.ldflags << (ENV['LDFLAGS'] || %w(-lm)) | |
end | |
SIM_SYSROOT="#{SIMSDKPATH}" | |
DEVICE_SYSROOT="#{IOSSDKPATH}" | |
MRuby::CrossBuild.new('ios-simulator') do |conf| | |
conf.cc = 'xcrun' | |
conf.ld = 'xcrun' | |
conf.ar = 'ar' | |
conf.bins = [] | |
conf.cflags = %W(-sdk iphoneos llvm-gcc-4.2 -arch i386 -isysroot #{SIM_SYSROOT} -g -O3 -Wall -Werror-implicit-function-declaration -DDISABLE_GEMS) | |
conf.ldflags = %W(-sdk iphoneos llvm-gcc-4.2 -arch i386 -isysroot #{SIM_SYSROOT}) | |
end | |
MRuby::CrossBuild.new('ios-armv7') do |conf| | |
conf.cc = 'xcrun' | |
conf.ld = 'xcrun' | |
conf.ar = 'ar' | |
conf.bins = [] | |
conf.cflags = %W(-sdk iphoneos llvm-gcc-4.2 -arch armv7 -isysroot #{DEVICE_SYSROOT} -g -O3 -Wall -Werror-implicit-function-declaration -DDISABLE_GEMS) | |
conf.ldflags = %W(-sdk iphoneos llvm-gcc-4.2 -arch armv7 -isysroot #{DEVICE_SYSROOT}) | |
end | |
MRuby::CrossBuild.new('ios-armv7s') do |conf| | |
conf.cc = 'xcrun' | |
conf.ld = 'xcrun' | |
conf.ar = 'ar' | |
conf.bins = [] | |
conf.cflags = %W(-sdk iphoneos llvm-gcc-4.2 -arch armv7s -isysroot #{DEVICE_SYSROOT} -g -O3 -Wall -Werror-implicit-function-declaration -DDISABLE_GEMS) | |
conf.ldflags = %W(-sdk iphoneos llvm-gcc-4.2 -arch armv7s -isysroot #{DEVICE_SYSROOT}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment