Mercurial > pub > dyncall > dyncall
comparison doc/README.iOS @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e629dc19168 |
---|---|
1 Building DynCall for apple's iOS platforms (iPhone, iPod touch, iPad) | |
2 ===================================================================== | |
3 | |
4 | |
5 Environment Setup for Cross-Compilation using iPhone SDK: | |
6 | |
7 $ source ./buildsys/scripts/setenv-sdk-ios.sh | |
8 | |
9 | |
10 Package Configuration | |
11 | |
12 $ ./configure --target=iOS --sdk=<MAJOR>.<MINOR> | |
13 | |
14 | |
15 Building | |
16 | |
17 $ make | |
18 | |
19 | |
20 | |
21 Details: | |
22 | |
23 This builds by default universal binaries (armv7,arm64). | |
24 | |
25 Required configure switches: | |
26 | |
27 --target=[iOS|iPhoneSimulator] | |
28 | |
29 --sdk=<version> (tested versions 2.0..4.0, 6.1, 8.3) | |
30 | |
31 | |
32 Supported Tool-chains | |
33 | |
34 gcc, clang | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 Other ways to build | |
41 ------------------- | |
42 | |
43 Building directly with Makefile.embedded .. | |
44 | |
45 ARMv7 for iOS 6.1 | |
46 | |
47 $ make -f Makefile.embedded ios61-os | |
48 $ cd test && make -f Makefile.embedded ios61-os | |
49 | |
50 ARMv7 (no thumb) for iOS 6.1 | |
51 | |
52 $ make -f Makefile.embedded ios61-os-nothumb | |
53 $ cd test && make -f Makefile.embedded ios61-os-nothumb | |
54 | |
55 Simulator for iOS 6.1 | |
56 | |
57 $ make -f Makefile.embedded ios61-sim | |
58 $ cd test && make -f Makefile.embedded ios61-sim | |
59 | |
60 ARMv7/ARM64 Universal build for iOS 8.3 | |
61 | |
62 $ make -f Makefile.embedded ios83-os-universal | |
63 $ cd test && make -f Makefile.embedded ios83-os-universal | |
64 | |
65 Tested Mac OS X platforms: 10.[7,8,10] | |
66 Tested Xcode toolchains: 4.6, 6.3 | |
67 | |
68 | |
69 Building directly with Makefile.generic .. | |
70 | |
71 $ source buildsys/scripts/setenv-sdk-ios.sh | |
72 $ source buildsys/scripts/setenv-cross-ios.sh | |
73 | |
74 make -f Makefile.generic ... | |
75 | |
76 uses armv6 and sdk 4.3 as default, can be changed in 'setenv-cross-ios.sh'. | |
77 |