summaryrefslogtreecommitdiff
path: root/src/tools/3rdparty/iossim/main.mm
blob: 7e88c5e485907226dc74f0d6a58b491570ccaee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Author: Landon Fuller <landonf@plausiblelabs.com>
 * Copyright (c) 2008-2011 Plausible Labs Cooperative, Inc.
 * All rights reserved.
 *
 * See the IOSSIM_LICENSE file in this directory for the license on the source code in this file.
 */
/* derived from https://github.com/phonegap/ios-sim */

#import <AppKit/AppKit.h>
#import <Foundation/NSFileManager.h>

#import "iphonesimulator.h"

/*
 * Runs the iPhoneSimulator backed by a main runloop.
 */
int main (int argc, char *argv[]) {
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    iPhoneSimulator *sim = [[iPhoneSimulator alloc] init];
    
    /* Execute command line handler */
    [sim runWithArgc: argc argv: argv];

    /* Run the loop to handle added input sources, if any */
    [[NSRunLoop mainRunLoop] run];

    [pool release];
    return 0;
}