-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
streamline the dependency build process
- Loading branch information
Showing
9 changed files
with
120 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ ui/*.h | |
qt5 | ||
qt5build | ||
fonts | ||
win | ||
duktape | ||
deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,91 @@ | ||
#!/bin/bash | ||
|
||
# Potential dependencies for building on Debian. | ||
# I do not guarantee that these are accurate. | ||
|
||
sudo apt install \ | ||
libcurl4-openssl-dev \ | ||
libarchive-dev \ | ||
libxml2-dev \ | ||
liblzma-dev \ | ||
rapidjson-dev \ | ||
libacl1-dev \ | ||
\ | ||
make \ | ||
g++ \ | ||
pkg-config \ | ||
libgl1-mesa-dev \ | ||
libxcb*-dev \ | ||
libfontconfig1-dev \ | ||
libxkbcommon-x11-dev | ||
# Builds statically linkable dependencies for both supported platforms | ||
# On the Windows side, most of this is just unzipping and sorting pre-built binaries | ||
# On the Linux side, we're only compiling CURL and installing Debian packages | ||
|
||
rm -rf ./deps | ||
mkdir deps | ||
cd deps | ||
|
||
mkdir win32 | ||
mkdir linux | ||
mkdir shared | ||
|
||
# Build shared dependencies | ||
cd shared | ||
|
||
wget https://duktape.org/duktape-2.7.0.tar.xz | ||
tar -xf ./duktape-2.7.0.tar.xz | ||
rm ./duktape-2.7.0.tar.xz | ||
mv ./duktape-2.7.0/src ./duktape | ||
rm -rf duktape-2.7.0 | ||
|
||
cd .. | ||
|
||
# Build Windows dependencies | ||
cd win32 | ||
|
||
mkdir bin | ||
mkdir lib | ||
mkdir include | ||
|
||
mkdir xz; cd xz | ||
wget https://tukaani.org/xz/xz-5.2.9-windows.zip | ||
unzip xz-5.2.9-windows.zip | ||
mv ./bin_x86-64/*.exe ../bin | ||
mv ./bin_x86-64/* ../lib | ||
cd ..; rm -rf xz | ||
|
||
mkdir archive; cd archive | ||
wget https://libarchive.org/downloads/libarchive-v3.7.4-amd64.zip | ||
unzip libarchive-v3.7.4-amd64.zip | ||
mv ./libarchive/bin/*.exe ../bin | ||
mv ./libarchive/bin/*.dll ../lib | ||
mv ./libarchive/lib/* ../lib | ||
mv ./libarchive/include/* ../include | ||
cd ..; rm -rf archive | ||
|
||
mkdir curl; cd curl | ||
wget https://curl.se/windows/dl-8.10.1_2/curl-8.10.1_2-win64-mingw.zip | ||
unzip curl-8.10.1_2-win64-mingw.zip | ||
mv curl-8.10.1_2-win64-mingw curl | ||
mv ./curl/bin/*.exe ../bin | ||
mv ./curl/bin/*.dll ../lib | ||
mv ./curl/lib/* ../lib | ||
mv ./curl/include/* ../include | ||
cd ..; rm -rf curl | ||
|
||
cd .. | ||
|
||
# Build Linux dependencies | ||
cd linux | ||
|
||
mkdir bin | ||
mkdir lib | ||
mkdir include | ||
|
||
mkdir curl; cd curl | ||
wget https://curl.se/download/curl-8.10.1.zip | ||
unzip curl-8.10.1.zip | ||
mv curl-8.10.1 curl; cd curl | ||
./configure --enable-optimize --with-openssl --disable-dependency-tracking --disable-shared --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-docs --disable-sspi --disable-aws --disable-ntlm --disable-unix-sockets --disable-socketpair --disable-dateparse --disable-progress-meter --enable-websockets --without-brotli --without-libssh2 --without-libssh --without-wolfssh --without-librtmp | ||
make | ||
cd .. | ||
mv ./curl/src/curl ../bin | ||
mv ./curl/lib/.libs/libcurl.a ../lib | ||
mv ./curl/include/* ../include | ||
cd ..; rm -rf curl | ||
|
||
cd .. | ||
|
||
if command -v apt > /dev/null; then | ||
echo "Checking for necessary -dev packages..." | ||
sudo apt install \ | ||
libarchive-dev \ | ||
libxml2-dev \ | ||
liblzma-dev \ | ||
libacl1-dev \ | ||
libgl1-mesa-dev \ | ||
libxcb*-dev \ | ||
libfontconfig1-dev \ | ||
libxkbcommon-x11-dev | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.