forked from aspel/pobfrontend
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.linux
57 lines (46 loc) · 1.08 KB
/
Makefile.linux
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
DIR := ${CURDIR}
SHELL = /bin/bash
all: frontend pob
pushd build; \
ninja; \
popd; \
mv build/PathOfBuilding PathOfBuilding/; \
echo 'Finished'
pob: luacurl load_pob frontend
pushd PathOfBuilding; \
unzip -o 'tree*.zip'; \
unzip runtime-win32.zip lua/xml.lua lua/base64.lua lua/sha1.lua; \
mv lua/*.lua .; \
rmdir lua; \
cp ../lcurl.so .; \
mv src/* .; \
rmdir src; \
popd
frontend:
meson -Dbuildtype=release build
load_pob:
git clone --depth 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding.git; \
pushd PathOfBuilding; \
rm -rf .git; \
popd
luacurl:
git clone --depth 1 https://github.com/Lua-cURL/Lua-cURLv3.git; \
pushd Lua-cURLv3; \
sed -i -e's/\?= lua/\?= luajit/' Makefile; \
make; \
mv lcurl.so ../lcurl.so; \
popd
tools: qt lua zlib meson
qt:
sudo apt -y install qt5-default; \
sudo apt -y install qtcreator
lua:
sudo apt -y install luajit; \
sudo apt -y install libluajit-5.1-dev
zlib:
sudo apt -y install zlib1g; \
sudo apt -y install zlib1g-dev
meson:
sudo apt -y install meson
clean:
rm -rf PathOfBuilding Lua-cURLv3 lcurl.so build