Skip to content

Commit 5b3635b

Browse files
committed
Arm64 support
1 parent 531e695 commit 5b3635b

11 files changed

+86
-18
lines changed

ndll/iPhone/.DS_Store

6 KB
Binary file not shown.
200 KB
Binary file not shown.
185 KB
Binary file not shown.
188 KB
Binary file not shown.
181 KB
Binary file not shown.
200 KB
Binary file not shown.
93.2 KB
Binary file not shown.

ndll/iPhone/libhypsystem.iphoneos.a

96.6 KB
Binary file not shown.

ndll/iPhone/libhypsystem.iphonesim.a

90.8 KB
Binary file not shown.

project/Build.xml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@
2525
<file name="iPhone/ISO8601DateFormatter.m"/>
2626
</files>
2727

28+
<set name="LIBNAME" value="hypsystem"/>
2829
<set name="SLIBEXT" value=".lib" if="windows"/>
2930
<set name="SLIBEXT" value=".a" unless="windows"/>
3031
<set name="SLIBEXT" value=".so" if="webos"/>
31-
32-
<target id="NDLL" output="${LIBPREFIX}hypsystem${MSVC_LIB_VERSION}${DEBUGEXTRA}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}">
33-
<outdir name="../ndll/${BINDIR}"/>
32+
<set name="DEBUGEXTRA" value="-debug" if="fulldebug" />
3433

34+
<target id="NDLL" output="${LIBPREFIX}${LIBNAME}${MSVC_LIB_VERSION}${DEBUGEXTRA}${LIBEXTRA}"
35+
tool="linker" toolid="${STD_MODULE_LINK}">
36+
<compilerflag value="-DDEBUG" if="debug"/>
37+
<outdir name="../ndll/${BINDIR}"/>
3538
<ext value=".ndll" if="windows || mac || linux"/>
36-
3739
<files id="common"/>
3840
<files id="android" if="android"/>
3941
<files id="iphone" if="iphone"/>

project/iphone.sh

Lines changed: 80 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,80 @@
1-
rm -rf "obj"
2-
rm -rf "all_objs"
3-
rm -rf "../ndll/iPhone/libhypsystem.iphoneos-v7.a"
4-
rm -rf "../ndll/iPhone/libhypsystem.iphoneos.a"
5-
rm -rf "../ndll/iPhone/libhypsystem.iphonesim.a"
6-
echo "compiling for armv6"
7-
haxelib run hxcpp Build.xml -Diphoneos -DHXCPP_CLANG -DOBJC_ARC
8-
echo "compiling for armv7"
9-
haxelib run hxcpp Build.xml -Diphoneos -DHXCPP_ARMV7 -DHXCPP_CLANG -DOBJC_ARC
10-
echo "compiling for simulator"
11-
haxelib run hxcpp Build.xml -Diphonesim -DHXCPP_CLANG -DOBJC_ARC
12-
echo "Done ! \n"
13-
rm -rf "obj"
14-
rm -rf "all_objs"
1+
NDLL="../ndll/iPhone/"
2+
HXCPP="haxelib run hxcpp Build.xml"
3+
HXCPP_IPHONEOS=$HXCPP" -Diphoneos"
4+
DEBUG="-Ddebug -Dfulldebug"
5+
VERSION="-Dmiphoneos-version-min=7.0"
6+
VERBOSE="-verbose"
7+
GCC="-DHXCPP_CLANG"
8+
ARC="-DOBJC_ARC"
9+
LIB="hypsystem"
10+
DELAY="0.5"
11+
12+
cleanup()
13+
{
14+
rm -rf "obj"
15+
rm -rf "all_objs"
16+
}
17+
18+
armv6()
19+
{
20+
echo "\n\n\\033[1;32mCompiling for armv6"
21+
rm -rf NDLL"lib"LIB"-debug.iphoneos.a"
22+
rm -rf NDLL"lib"LIB".iphoneos.a"
23+
$HXCPP_IPHONEOS $VERBOSE $DEBUG $ARC $GCC
24+
$HXCPP_IPHONEOS $VERBOSE $ARC $GCC
25+
}
26+
27+
armv7()
28+
{
29+
echo "\n\n\\033[1;32mCompiling for armv7"
30+
rm -rf NDLL"lib"LIB"-debug.iphoneos-v7.a"
31+
rm -rf NDLL"lib"LIB".iphoneos-v7.a"
32+
$HXCPP_IPHONEOS -DHXCPP_ARMV7 $VERBOSE $DEBUG $VERSION $ARC $GCC
33+
$HXCPP_IPHONEOS -DHXCPP_ARMV7 $VERBOSE $VERSION $ARC $GCC
34+
}
35+
36+
arm64()
37+
{
38+
echo "\n\n\\033[1;32mCompiling for arm64"
39+
rm -rf NDLL"lib"LIB"-debug.iphoneos-64.a"
40+
rm -rf NDLL"lib"LIB".iphoneos-64.a"
41+
$HXCPP_IPHONEOS -DHXCPP_ARM64 $VERBOSE $DEBUG $VERSION $ARC $GCC
42+
$HXCPP_IPHONEOS -DHXCPP_ARM64 $VERBOSE $VERSION $ARC $GCC
43+
}
44+
45+
simulator()
46+
{
47+
echo "\n\n\033[1;32mCompiling for simulator"
48+
rm -rf NDLL"lib"LIB"-debug.iphonesim.a"
49+
rm -rf NDLL"lib"LIB".iphonesim.a"
50+
$HXCPP -Diphonesim $VERBOSE $DEBUG $ARC $VERSION $GCC
51+
$HXCPP -Diphonesim -DHXCPP_ARMV7 $VERBOSE $VERSION $ARC $GCC
52+
}
53+
54+
case "$1" in
55+
"v6")
56+
cleanup
57+
armv6
58+
;;
59+
"v7")
60+
cleanup
61+
armv7
62+
;;
63+
"64")
64+
cleanup
65+
arm64
66+
;;
67+
"simulator")
68+
cleanup
69+
simulator
70+
;;
71+
*)
72+
cleanup
73+
armv6
74+
arm64
75+
armv7
76+
simulator
77+
;;
78+
esac
79+
80+
cleanup

0 commit comments

Comments
 (0)