Permalink
Browse files

Stash more hacking

  • Loading branch information...
1 parent 4a324e9 commit fd3fc3cb01c05d44338067055e71463b47c22bab @alloy committed Apr 3, 2011
Showing with 6 additions and 5 deletions.
  1. +3 −2 bridgesupport/source/build-ios.rb
  2. +3 −3 bridgesupport/source/gen_bridge_metadata.rb
@@ -1,10 +1,11 @@
BIN = File.expand_path('../gen_bridge_metadata.rb', __FILE__)
-ROOT = '/Developer-Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk'
+ROOT = '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk'
#cmd = "#{BIN} -d -c '-framework Foundation -framework IMCore' -f #{ROOT}/System/Library/Frameworks/AssetsLibrary.framework -o ../iOS/AssetsLibrary.bridgesupport"
#cmd = "#{BIN} -d -c '-framework Foundation' -f #{ROOT}/System/Library/Frameworks/AddressBook.framework -o ../iOS/AddressBook.bridgesupport"
#cmd = "#{BIN} -d -c '-framework Foundation' -f #{ROOT}/System/Library/Frameworks/GameKit.framework -o ../iOS/GameKit.bridgesupport"
#cmd = "#{BIN} -d -c '-framework Foundation' -f #{ROOT}/System/Library/Frameworks/CoreGraphics.framework -o ../iOS/CoreGraphics.bridgesupport"
-cmd = "#{BIN} -d -c '-framework Foundation' -f #{ROOT}/System/Library/Frameworks/CoreLocation.framework -o ../iOS/CoreLocation.bridgesupport"
+#cmd = "#{BIN} -d -c '-framework Foundation' -f #{ROOT}/System/Library/Frameworks/CoreLocation.framework -o ../iOS/CoreLocation.bridgesupport"
+cmd = "#{BIN} -d -c '-framework Foundation' -f #{ROOT}/System/Library/Frameworks/UIKit.framework -o ../iOS/UIKit.bridgesupport"
puts cmd
exec cmd
@@ -31,7 +31,7 @@
require 'optparse'
require 'tmpdir'
-SYSROOT = '/Developer-Xcode4/Platforms/iPhoneSimulator.platform/Developer'
+SYSROOT = '/Developer/Platforms/iPhoneSimulator.platform/Developer'
SDKROOT = File.join(SYSROOT, 'SDKs/iPhoneSimulator4.2.sdk')
#SYSROOT = '/Developer/Platforms/iPhoneOS.platform/Developer'
@@ -1811,8 +1811,8 @@ def compile_and_execute_code(code, cleanup_when_fail=false, emulate_ppc=false)
unless system(line)
msg = "Can't compile C code... aborting\ncommand was: #{line}\n\n#{File.read(tmp_log_path)}"
$stderr.puts "Code was:\n<<<<<<<\n#{code}>>>>>>>\n" if $DEBUG
- File.unlink(tmp_log_path)
- File.unlink(tmp_src.path) if cleanup_when_fail
+ #File.unlink(tmp_log_path)
+ #File.unlink(tmp_src.path) if cleanup_when_fail
raise msg
end

0 comments on commit fd3fc3c

Please sign in to comment.