From d4e26d1da16a40ac34bdb622750de0b6bf853e75 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Apr 2008 20:58:24 +0000 Subject: Ported UIKit Tools to iPhoneOS 2.0. --- make.sh | 2 ++ makefile | 3 +-- uialert.mm | 7 +++++-- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100755 make.sh diff --git a/make.sh b/make.sh new file mode 100755 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 "$@" diff --git a/makefile b/makefile index 83a4e00..e5f9b02 100644 --- 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 diff --git a/uialert.mm b/uialert.mm index a72cbd4..403dbd2 100644 --- a/uialert.mm +++ b/uialert.mm @@ -1,5 +1,8 @@ -#include +#import +#import + #include +#include 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]; -- cgit v1.2.3