flatten 20260225
This commit is contained in:
29
resources/packages-not-used/asio/fix-includes
Normal file
29
resources/packages-not-used/asio/fix-includes
Normal file
@@ -0,0 +1,29 @@
|
||||
perl -pi -w -e 's/include "asio\//include "/g;' *
|
||||
|
||||
for a in $(ls -d */ | cut -f1 -d'/')
|
||||
do
|
||||
pushd $a
|
||||
perl -pi -w -e "s/include \"asio\/$a\//include \"/g;" *
|
||||
perl -pi -w -e "s/include \"asio\//include \"..\//g;" *
|
||||
|
||||
for b in $(ls -d */ | cut -f1 -d'/')
|
||||
do
|
||||
pushd $b
|
||||
perl -pi -w -e "s/include \"asio\/$a\/$b\//include \"/g;" *
|
||||
perl -pi -w -e "s/include \"asio\/$a\//include \"..\//g;" *
|
||||
perl -pi -w -e "s/include \"asio\//include \"..\/..\//g;" *
|
||||
|
||||
for c in $(ls -d */ | cut -f1 -d'/')
|
||||
do
|
||||
pushd $e
|
||||
perl -pi -w -e "s/include \"asio\/$a\/$b\/$c\//include \"/g;" *
|
||||
perl -pi -w -e "s/include \"asio\/$a\/$b\//include \"..\//g;" *
|
||||
perl -pi -w -e "s/include \"asio\/$a\//include \"..\/..\//g;" *
|
||||
perl -pi -w -e "s/include \"asio\//include \"..\/..\/..\//g;" *
|
||||
popd
|
||||
done
|
||||
popd
|
||||
done
|
||||
popd
|
||||
done
|
||||
|
||||
62
resources/packages-not-used/bgfx/prepare
Executable file
62
resources/packages-not-used/bgfx/prepare
Executable file
@@ -0,0 +1,62 @@
|
||||
mkdir -p sdk/include
|
||||
|
||||
mkdir bgfx
|
||||
pushd bgfx
|
||||
|
||||
git clone git://github.com/bkaradzic/bx.git
|
||||
git clone git://github.com/bkaradzic/bimg.git
|
||||
git clone git://github.com/bkaradzic/bgfx.git
|
||||
|
||||
cd bgfx
|
||||
make osx ios-arm64 ios-simulator64 tools
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -fs ../../bgfx/bgfx/include/bgfx
|
||||
ln -fs ../../bgfx/bx/include/bx
|
||||
ln -fs ../../bgfx/bimg/include/bimg
|
||||
popd
|
||||
|
||||
pushd sdk/lib
|
||||
|
||||
UNAME_S=`uname -s`
|
||||
UNAME_M=`uname -m`
|
||||
EXT=${UNAME_S}-${UNAME_M}
|
||||
|
||||
for X in Debug Release
|
||||
do
|
||||
mkdir -p $X.$EXT
|
||||
pushd $X.$EXT
|
||||
ln -fs ../../../bgfx/bgfx/.build/osx64_clang/bin/libbgfx$X.a libbgfx.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/osx64_clang/bin/libbx$X.a libbx.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/osx64_clang/bin/libbimg$X.a libbimg.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/osx64_clang/bin/libbimg_decode$X.a libbimg_decode.a
|
||||
popd
|
||||
done
|
||||
|
||||
for X in Debug Release
|
||||
do
|
||||
mkdir -p $X.iOS-arm64
|
||||
pushd $X.iOS-arm64
|
||||
ln -fs ../../../bgfx/bgfx/.build/ios-arm64/bin/libbgfx$X.a libbgfx.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/ios-arm64/bin/libbx$X.a libbx.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/ios-arm64/bin/libbimg$X.a libbimg.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/osx64_clang/bin/libbimg_decode$X.a libbimg_decode.a
|
||||
popd
|
||||
done
|
||||
|
||||
for X in Debug Release
|
||||
do
|
||||
mkdir -p $X.iOS-simulate
|
||||
pushd $X.iOS-simulate
|
||||
ln -fs ../../../bgfx/bgfx/.build/ios-simulator64/bin/libbgfx$X.a libbgfx.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/ios-simulator64/bin/libbx$X.a libbx.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/ios-simulator64/bin/libbimg$X.a libbimg.a
|
||||
ln -fs ../../../bgfx/bgfx/.build/osx64_clang/bin/libbimg_decode$X.a libbimg_decode.a
|
||||
popd
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
15
resources/packages-not-used/infint/prepare
Executable file
15
resources/packages-not-used/infint/prepare
Executable file
@@ -0,0 +1,15 @@
|
||||
mkdir -p sdk/include
|
||||
|
||||
mkdir infint
|
||||
pushd infint
|
||||
|
||||
git clone https://github.com/sercantutar/infint.git
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
|
||||
ln -fs ../../infint/infint
|
||||
|
||||
popd
|
||||
|
||||
66
resources/packages-not-used/libev/Makefile.project
Executable file
66
resources/packages-not-used/libev/Makefile.project
Executable file
@@ -0,0 +1,66 @@
|
||||
_FLAGS := $(_FLAGS) -Wno-deprecated
|
||||
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
PROJECTS := \
|
||||
src/core \
|
||||
|
||||
COMMON_SRC := \
|
||||
src/platform/cert_capi_openssl.c \
|
||||
src/platform/crypt.c \
|
||||
src/platform/crypt_openssl.c \
|
||||
src/platform/hashtable.c \
|
||||
src/platform/inline.c \
|
||||
src/platform/pcp.c \
|
||||
src/platform/platform_posix.c \
|
||||
src/platform/storage_posix.c \
|
||||
src/platform/tls_openssl.c \
|
||||
src/platform/toeplitz.c \
|
||||
|
||||
NO_SRC := \
|
||||
src/platform/selfsign_openssl.c \
|
||||
|
||||
LINUX_SRC := \
|
||||
src/platform/datapath_epoll.c \
|
||||
|
||||
POSIX_SRC := \
|
||||
src/platform/datapath_kqueue.c \
|
||||
|
||||
WIN_SRC := \
|
||||
src/platform/cert_capi.c \
|
||||
src/platform/crypt_bcrypt.c \
|
||||
src/platform/datapath_winkernel.c \
|
||||
src/platform/datapath_winuser.c \
|
||||
src/platform/platform_winkernel.c \
|
||||
src/platform/platform_winuser.c \
|
||||
src/platform/selfsign_capi.c \
|
||||
src/platform/storage_winkernel.c \
|
||||
src/platform/storage_winuser.c \
|
||||
src/platform/tls_schannel.c \
|
||||
|
||||
SRC_C := $(POSIX_SRC) $(COMMON_SRC)
|
||||
|
||||
INCPATH := \
|
||||
-I src/inc \
|
||||
-I build/openssl/include
|
||||
|
||||
LIBFILE := libMSQuic.a
|
||||
|
||||
_FLAGS := \
|
||||
-fms-extensions \
|
||||
-Wno-microsoft-anon-tag -Wno-tautological-constant-out-of-range-compare -Wmissing-field-initializers \
|
||||
-DCX_PLATFORM_DARWIN \
|
||||
-DQUIC_DISABLE_CLIENT_CERT_TESTS \
|
||||
-DQUIC_DISABLE_DEFERRED_CERT_TESTS \
|
||||
-DQUIC_EVENTS_STUB \
|
||||
-DQUIC_LOGS_STUB \
|
||||
-DVER_BUILD_ID=0 \
|
||||
-DVER_SUFFIX=-private \
|
||||
-D_GNU_SOURCE \
|
||||
|
||||
# -DQUIC_CLOG \
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
34
resources/packages-not-used/libev/prepare
Executable file
34
resources/packages-not-used/libev/prepare
Executable file
@@ -0,0 +1,34 @@
|
||||
set -x
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=libev
|
||||
SRC=libev
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
wget http://dist.schmorp.de/libev/libev-4.33.tar.gz
|
||||
tar xf libev-4.33.tar.gz
|
||||
|
||||
ln -s libev*/ libev
|
||||
pushd libev
|
||||
./configure
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -s ../../$LIB/$SRC libev
|
||||
popd
|
||||
|
||||
UNAME_S=`uname -s`
|
||||
UNAME_M=`uname -m`
|
||||
EXT=${UNAME_S}-${UNAME_M}
|
||||
|
||||
pushd sdk/lib
|
||||
cp ../../$LIB/$SRC/.libs/*.a Debug.$EXT/
|
||||
cp ../../$LIB/$SRC/.libs/*.a Release.$EXT/
|
||||
popd
|
||||
34
resources/packages-not-used/libuv/prepare
Executable file
34
resources/packages-not-used/libuv/prepare
Executable file
@@ -0,0 +1,34 @@
|
||||
set -x
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=libuv
|
||||
SRC=libuv
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone https://github.com/libuv/libuv.git
|
||||
pushd $SRC
|
||||
|
||||
mkdir build
|
||||
pushd build
|
||||
cmake .. -DLIBUV_BUILD_TESTS=false
|
||||
make
|
||||
popd
|
||||
popd
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -s ../../$LIB/$SRC/include libuv
|
||||
popd
|
||||
|
||||
UNAME_S=`uname -s`
|
||||
UNAME_M=`uname -m`
|
||||
EXT=${UNAME_S}-${UNAME_M}
|
||||
|
||||
pushd sdk/lib
|
||||
cp ../../$LIB/$SRC/build/libuv_a.a Debug.$EXT/libuv.a
|
||||
cp ../../$LIB/$SRC/build/libuv_a.a Release.$EXT/libuv.a
|
||||
popd
|
||||
24
resources/packages-not-used/lsquic/Makefile.project
Executable file
24
resources/packages-not-used/lsquic/Makefile.project
Executable file
@@ -0,0 +1,24 @@
|
||||
_FLAGS := $(_FLAGS) -Wno-deprecated
|
||||
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
PROJECTS := \
|
||||
src/liblsquic \
|
||||
|
||||
# src/liblsquic/ls-qpack \
|
||||
# src/lshpack \
|
||||
|
||||
INCPATH := \
|
||||
-I include \
|
||||
-I ../boringssl/include \
|
||||
-I src/lshpack \
|
||||
-I src/liblsquic/ls-qpack
|
||||
|
||||
LIBFILE := libLSQuic.a
|
||||
|
||||
_FLAGS := -DXXH_HEADER_NAME=\"lsxpack_header.h\"
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
29
resources/packages-not-used/mysql/prepare
Executable file
29
resources/packages-not-used/mysql/prepare
Executable file
@@ -0,0 +1,29 @@
|
||||
mkdir -p sdk/include
|
||||
|
||||
mkdir mysql
|
||||
pushd mysql
|
||||
|
||||
wget "https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.0.30-macos12-x86-64bit.tar.gz"
|
||||
tar xf mysql-connector-c++*.tar.gz
|
||||
ln -fs mysql-connector-c++*/ mysql-connector-c++
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
|
||||
ln -fs ../../mysql/mysql-connector-c++/include mysql
|
||||
|
||||
popd
|
||||
|
||||
mkdir -p sdk/lib
|
||||
pushd sdk/lib
|
||||
|
||||
for f in */; do
|
||||
pushd $f
|
||||
|
||||
ln -fs ../../../mysql/mysql-connector-c++/lib64/*.a .
|
||||
|
||||
popd
|
||||
done
|
||||
|
||||
popd
|
||||
8
resources/packages-not-used/mysql/prepare-linux
Normal file
8
resources/packages-not-used/mysql/prepare-linux
Normal file
@@ -0,0 +1,8 @@
|
||||
# https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
|
||||
|
||||
wget "https://dev.mysql.com/get/mysql-apt-config_0.8.23-1_all.deb"
|
||||
dpkg -i mysql-apt-config_0.8.23-1_all.deb
|
||||
|
||||
apt-get install libmysqlcppconn-dev
|
||||
apt-get install libmysqlclient21
|
||||
|
||||
15
resources/packages-not-used/rudp/Makefile.project
Executable file
15
resources/packages-not-used/rudp/Makefile.project
Executable file
@@ -0,0 +1,15 @@
|
||||
_FLAGS := $(_FLAGS) -Wno-deprecated
|
||||
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
INCPATH := \
|
||||
$(timprepscius.core.include)
|
||||
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
SRC_CPP := event.cpp, rudp.cpp
|
||||
|
||||
LIBFILE := librudp.a
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
25
resources/packages-not-used/rudp/prepare
Executable file
25
resources/packages-not-used/rudp/prepare
Executable file
@@ -0,0 +1,25 @@
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=rudp
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone https://github.com/timprepscius/rudp.git
|
||||
|
||||
cp -av $DIR/Makefile.* $LIB/
|
||||
$DIR/../prepare-template-just-makefile $LIB $DIR
|
||||
|
||||
|
||||
pushd $LIB
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -s ../../rudp/rudp
|
||||
popd
|
||||
|
||||
16
resources/packages-not-used/uvw/prepare
Executable file
16
resources/packages-not-used/uvw/prepare
Executable file
@@ -0,0 +1,16 @@
|
||||
mkdir -p sdk/include
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir uvw
|
||||
pushd uvw
|
||||
|
||||
git clone https://github.com/skypjack/uvw.git
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
cp $DIR/uv.h .
|
||||
ln -fs ../../uvw/uvw/src uvw
|
||||
popd
|
||||
|
||||
1
resources/packages-not-used/uvw/uv.h
Normal file
1
resources/packages-not-used/uvw/uv.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <libev/uv.h>
|
||||
Reference in New Issue
Block a user