flatten 20260225
This commit is contained in:
20
resources/packages/nghttp2/Makefile.project
Executable file
20
resources/packages/nghttp2/Makefile.project
Executable file
@@ -0,0 +1,20 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
INCPATH := -I. -I./include -I./lib -I./lib/includes/
|
||||
LIBFILE := libnghttp2.a
|
||||
_FLAGS := $(_FLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBCURL -DPIC
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
PROJECTS := lib
|
||||
|
||||
ifeq (Darwin,$(SYS_NAME))
|
||||
_FLAGS := $(_FLAGS) -D__APPLE_USE_RFC_3542
|
||||
endif
|
||||
|
||||
ifeq (iOS,$(SYS_NAME))
|
||||
include $(MAKEDIR)/Makefile.none
|
||||
else
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
endif
|
||||
|
||||
|
||||
45
resources/packages/nghttp2/prepare
Executable file
45
resources/packages/nghttp2/prepare
Executable file
@@ -0,0 +1,45 @@
|
||||
if [ -d "nghttp2" ]; then
|
||||
echo "nghttp2 does exists already"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=nghttp2
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir nghttp2
|
||||
pushd nghttp2
|
||||
|
||||
|
||||
wget "https://github.com/nghttp2/nghttp2/releases/download/v1.68.0/nghttp2-1.68.0.tar.gz"
|
||||
tar xf nghttp2-1.68.0.tar.gz
|
||||
ln -s nghttp2-1.68.0 $LIB
|
||||
|
||||
pushd $LIB
|
||||
|
||||
INSTALL_PREFIX=`pwd`/nghttp2-install
|
||||
|
||||
#autoreconf -fi
|
||||
./configure --enable-lib-only --prefix=$PWD/nghttp2-install
|
||||
|
||||
popd
|
||||
|
||||
cp -av $DIR/Makefile.* $LIB/
|
||||
|
||||
$DIR/../../prepare-template-just-makefile $LIB $DIR
|
||||
|
||||
pushd $LIB
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
rm -f nghttp2
|
||||
ln -s ../../nghttp2/$LIB/lib/includes/nghttp2
|
||||
popd
|
||||
|
||||
2
resources/packages/nghttp2/requirements
Normal file
2
resources/packages/nghttp2/requirements
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo apt-get install libtool
|
||||
sudo apt install autoconf
|
||||
Reference in New Issue
Block a user