-
Notifications
You must be signed in to change notification settings - Fork 0
/
clone-code.cmd
31 lines (31 loc) · 1.16 KB
/
clone-code.cmd
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
@echo off
echo ===============================================================
if exist .\hashlink\ (
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 Done
)
REM
REM Hashlink master branch must work with Heaps master. Using Hashlink
REM from master branch and Heaps with Haxelib can causes ABI mangling
REM error like below:
REM
REM /home/fuzhouch/projects/thirdparty/hashlink/src/module.c(574) :
REM FATAL ERROR : Invalid signature for function fmt@mp3_open :
REM PBi_Xfmt_mp3_ required but P_Xfmt_mp3_ found in hdll
REM
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 ===============================================================