]> git.saurik.com Git - uikittools.git/commitdiff
Ported UIKit Tools to iPhoneOS 2.0.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Apr 2008 20:58:24 +0000 (20:58 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Apr 2008 20:58:24 +0000 (20:58 +0000)
make.sh [new file with mode: 0755]
makefile
uialert.mm

diff --git a/make.sh b/make.sh
new file mode 100755 (executable)
index 0000000..5ae4611
--- /dev/null
+++ b/make.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+PATH=/apl/n42/pre/bin:$PATH exec /apl/tel/exec.sh uikittools make "$@"
index 83a4e006a2380f95f5a59ceca7608b9137cbabab..e5f9b02948d361b8461ffec028a0619f8bae079e 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,5 +1,4 @@
 all: uialert
 
 %: %.mm
-       arm-apple-darwin-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc
-       arm-apple-darwin-strip $@
+       $${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc
index a72cbd4b41747a6403c918a89cd1cac458b5fda1..403dbd23a16c76268c5f16765ac738ca039ab69b 100644 (file)
@@ -1,5 +1,8 @@
-#include <UIKit/UIKit.h>
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
 #include <unistd.h>
+#include <cstdlib>
 
 int argc_;
 char **argv_;
@@ -44,7 +47,7 @@ int main(int argc, char *argv[]) {
     argv_ = argv;
 
     char *args[] = {
-        "AlertSheet", NULL
+        (char *) "AlertSheet", NULL
     };
 
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];