-
Notifications
You must be signed in to change notification settings - Fork 0
/
clone-code.sh
31 lines (31 loc) · 1.15 KB
/
clone-code.sh
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
30
31
#!/bin/sh
echo ===============================================================
if [ -d "./hashlink" ]; then
echo ./hashlink folder exists. Reset code and pull latest.
cd hashlink
git checkout -- .
git pull
cd ..
else
echo Cloning code: https://github.com/HaxeFoundation/hashlink ...
git clone https://github.com/HaxeFoundation/hashlink hashlink
echo Cloning done.
fi
#
# Hashlink master branch must work with Heaps master. Using Hashlink
# from master branch and Heaps with Haxelib can causes ABI mangling
# error like below:
#
# /home/fuzhouch/projects/thirdparty/hashlink/src/module.c(574) :
# FATAL ERROR : Invalid signature for function fmt@mp3_open :
# PBi_Xfmt_mp3_ required but P_Xfmt_mp3_ found in hdll
#
echo ===============================================================
echo Hashlink code checked out. Please build with Xmake with steps below.
echo
echo xmake config -p windows -a x64 -m {debug or release}
echo or
echo xmake config -p {linux or macosx} -a x86_64 -m {debug or release}
echo xmake build
echo xmake install -o package64
echo ===============================================================