Skip to content

Commit

Permalink
Merge with MountainFix
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasiliniuc committed Dec 19, 2012
2 parents 3461320 + 44ab960 commit 413f731
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion rules/dll.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(work, name, objects, whole_libs, libs, linkflags, linker)
#puts "libflags: #{libflags}"
if(whole_libs.size > 0)
if(HOST == :darwin)
libflags += " #{whole_libs.join(' ')} -m32"
libflags += " #{whole_libs.join(' ')}"
else
libflags += " -Wl,--whole-archive #{whole_libs.join(' ')} -Wl,--no-whole-archive"
end
Expand Down
10 changes: 5 additions & 5 deletions rules/gcc_flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ def define_cflags
@HOST_FLAGS = " -DLINUX -fPIC"
if(HOST_PLATFORM == :darwin)
sdkNumber = (File.exist?("/Developer/SDKs/MacOSX10.5.sdk")) ? "5":"6"
sdkAdress = "/Developer/SDKs/MacOSX10.#{sdkNumber}.sdk"
@HOST_FLAGS += " -isysroot #{sdkAdress} -mmacosx-version-min=10.5 -m32 -DDARWIN"
sdkAdress = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
@HOST_FLAGS = " -isysroot #{sdkAdress} -mmacosx-version-min=10.5 -DDARWIN"
end
@HOST_CPPFLAGS = ""
elsif(HOST == :darwin)
sdkAdress = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
if(!File.exist?(sdkAdress))
sdkNumber = (File.exist?("/Developer/SDKs/MacOSX10.5.sdk")) ? "5":"6"
sdkAdress = "/Developer/SDKs/MacOSX10.#{sdkNumber}.sdk"
sdkAdress = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
end
@HOST_FLAGS = " -isysroot #{sdkAdress} -mmacosx-version-min=10.5 -m32 -DDARWIN"
@HOST_CPPFLAGS = " -isysroot #{sdkAdress} -mmacosx-version-min=10.5 -m32 -fPIC"
@HOST_FLAGS = " -isysroot #{sdkAdress} -mmacosx-version-min=10.5 -DDARWIN"
@HOST_CPPFLAGS = " -isysroot #{sdkAdress} -mmacosx-version-min=10.5 -fPIC"
else
error "Unsupported host: #{HOST}"
end
Expand Down
2 changes: 1 addition & 1 deletion rules/native_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class NativeGccLinkWork < NativeGccWork

def setup3(all_objects, have_cppfiles)
if(HOST == :darwin)
@EXTRA_LINKFLAGS += " -m32 -L/sw/lib -L/opt/local/lib -framework Cocoa -framework IOBluetooth -framework Foundation"
@EXTRA_LINKFLAGS += " -L/sw/lib -L/opt/local/lib -framework Cocoa -framework IOBluetooth -framework Foundation"
end
if(PROFILING)
@EXTRA_LINKFLAGS += " -pg"
Expand Down
8 changes: 4 additions & 4 deletions runtimes/cpp/platforms/iphone/buildLibraries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
end

# build everything
sh "#{xcodebuild} -target MoSyncLib -configuration Debug -sdk iphoneos -project MoSync.xcodeproj"
sh "#{xcodebuild} -target MoSyncLib -configuration Release -sdk iphoneos -project MoSync.xcodeproj"
sh "#{xcodebuild} -target MoSyncLib -configuration Debug -sdk iphonesimulator -project MoSync.xcodeproj"
sh "#{xcodebuild} -target MoSyncLib -configuration Release -sdk iphonesimulator -project MoSync.xcodeproj"
sh "xcodebuild -target MoSyncLib -configuration Debug -sdk iphoneos -project MoSync.xcodeproj"
sh "xcodebuild -target MoSyncLib -configuration Release -sdk iphoneos -project MoSync.xcodeproj"
sh "xcodebuild -target MoSyncLib -configuration Debug -sdk iphonesimulator -project MoSync.xcodeproj"
sh "xcodebuild -target MoSyncLib -configuration Release -sdk iphonesimulator -project MoSync.xcodeproj"g
#sh "/Developer/usr/bin/xcodebuild -target MoSyncLib -configuration Debug -sdk iphoneos3.2 -project MoSync.xcodeproj"
#sh "/Developer/usr/bin/xcodebuild -target MoSyncLib -configuration Release -sdk iphoneos3.2 -project MoSync.xcodeproj"
#sh "/Developer/usr/bin/xcodebuild -target MoSyncLib -configuration Debug -sdk iphonesimulator3.2 -project MoSync.xcodeproj"
Expand Down

0 comments on commit 413f731

Please sign in to comment.