skia2/experimental/iOSSampleApp/Shared/skia_ios.mm
caryclark@google.com 5987f58036 build iOS with 'make all'
This builds all skia tests by treating iOS tools
as executable applications. A few warnings were
fixed as well.

Removed old trace draw code and remnants.
Review URL: https://codereview.appspot.com/6597063

git-svn-id: http://skia.googlecode.com/svn/trunk@5776 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-10-02 18:33:14 +00:00

16 lines
404 B
Plaintext

#import <UIKit/UIKit.h>
#include "SkApplication.h"
extern void save_args(int argc, char *argv[]);
int main(int argc, char *argv[]) {
signal(SIGPIPE, SIG_IGN);
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
application_init();
save_args(argc, argv);
int retVal = UIApplicationMain(argc, argv, nil, nil);
application_term();
[pool release];
return retVal;
}