You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will build and install the library for the given IOS_PLATFORM.
27
34
28
35
## Options
29
36
30
-
* Set `-DIOS_PLATFORM` to "SIMULATOR" to build for iOS simulator 32 bit (i386)
31
-
* Set `-DIOS_PLATFORM` to "SIMULATOR64" (example above) to build for iOS simulator 64 bit (x86_64)
32
-
* Set `-DIOS_PLATFORM` to "OS" to build for Device (armv7, armv7s, arm64)
33
-
* Set `-DIOS_PLATFORM` to "TVOS" to build for tvOS (arm64)
34
-
* Set `-DIOS_PLATFORM` to "SIMULATOR_TVOS" to build for tvOS Simulator (x86_64)
37
+
* Set `-DPLATFORM` to "SIMULATOR" to build for iOS simulator 32 bit (i386) **DEPRECATED**
38
+
* Set `-DPLATFORM` to "SIMULATOR64" (example above) to build for iOS simulator 64 bit (x86_64)
39
+
* Set `-DPLATFORM` to "OS" to build for Device (armv7, armv7s, arm64)
40
+
* Set `-DPLATFORM` to "OS64" to build for Device (arm64)
41
+
* Set `-DPLATFORM` to "OS64COMBINED" to build for Device & Simulator (FAT lib) (arm64, x86_64)
42
+
* Set `-DPLATFORM` to "TVOS" to build for tvOS (arm64)
43
+
* Set `-DPLATFORM` to "TVOSCOMBINED" to build for tvOS & Simulator (arm64, x86_64)
44
+
* Set `-DPLATFORM` to "SIMULATOR_TVOS" to build for tvOS Simulator (x86_64)
45
+
* Set `-DPLATFORM` to "WATCHOS" to build for watchOS (armv7k, arm64_32)
46
+
* Set `-DPLATFORM` to "WATCHOSCOMBINED" to build for watchOS & Simulator (armv7k, arm64_32, i386)
47
+
* Set `-DPLATFORM` to "SIMULATOR_WATCHOS" to build for watchOS Simulator (i386)
48
+
49
+
### COMBINED options
50
+
The options called *COMBINED (OS64COMBINED, TVOSCOMBINED and WATCHOSCOMBINED) will build complete FAT-libraries for
51
+
the given platform. These FAT-libraries include slices for both device and simulator, making the distribution and
52
+
usage of the library much more simple!
53
+
54
+
**NOTE: The COMBINED options _ONLY_ work with the Xcode generator (-G Xcode).**
35
55
36
56
### Additional Options
37
57
`-DENABLE_BITCODE=(BOOL)` - Enabled by default, specify FALSE or 0 to disable bitcode
@@ -40,13 +60,16 @@ This will build and install the library for the given IOS_PLATFORM.
40
60
41
61
`-DENABLE_VISIBILITY=(BOOL)` - Disabled by default, specify TRUE or 1 to enable symbol visibility support
42
62
43
-
`-DIOS_ARCH=(STRING)` - Valid values are: armv7, armv7s, arm64, i386, x86_64. By default it will build for all valid architectures based on `-DIOS_PLATFORM` (see above)
63
+
`-DIOS_ARCH=(STRING)` - Valid values are: armv7, armv7s, arm64, i386, x86_64, armv7k, arm64_32. By default it will build for all valid architectures based on `-DPLATFORM` (see above)
44
64
45
-
__*The resulting binary will consist of only one platform. To combine all platforms into the same fat-library, use the LIPO tool. More information on this is available on the net.*__
65
+
__*To combine all platforms into the same FAT-library, either build any of the "*COMBINED*" platform types OR use the
66
+
LIPO tool. More information on how to combine libraries with LIPO is readily available on the net.*__
46
67
47
68
## Thanks To
48
69
49
70
*[natbro](https://github.com/natbro) for adding tvOS support
71
+
*[MSNexploder](https://github.com/MSNexploder) for adding OS64 and arm64e support
72
+
*[garryyan](https://github.com/garryyan) for adding watchOS support
0 commit comments