-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-haxe-libs.sh
28 lines (27 loc) · 1.29 KB
/
install-haxe-libs.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
#!/bin/sh
echo ===============================================================
echo IMPORTANT: The script should be executed after building hashlink.
echo If it's not done, the script can run but libraries do not work.
echo ===============================================================
# We use the .hx file in hashlink code path to setup haxelib.
#
# NOTE
# Let's always stick to Heaps.io from Github. Based on the
# [Unofficial Heaps FAQ)(https://gist.github.com/Yanrishatum/ae3725a9e2b45e0766c065e573ed1f24),
# The Haxelib version produces a lot of warnings due to out-dated
# syntax. What is worse. The bytecode compiled by Hashlink master branch
# can cause name signature error when working with Heaps Haxelib version
# (1.10.0).
#
# Though I personall hold a concern that using Github version may make
# my game logic unreplicable, it seems it's just the practice of the
# community. If you worry about it, try to replace the branch name with
# a commit hash ID.
#
# haxelib git heaps https://github.com/HeapsIO/heaps.git 6ccc6ad
#
haxelib dev hlsdl hashlink/libs/sdl/
haxelib dev hlopenal hashlink/libs/openal/
haxelib dev hashlink hashlink/other/haxelib/
haxelib --always git format https://github.com/HaxeFoundation/format.git master
haxelib --always git heaps https://github.com/HeapsIO/heaps.git master