From ba226d945dd784aa21c70584c464a11e890d2b90 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 29 Oct 2024 10:11:59 +0800
Subject: [PATCH] Add evtest build shell script
---
openlibs/appweb/build.sh | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/openlibs/appweb/build.sh b/openlibs/appweb/build.sh
index 75d6570..a8a812e 100755
--- a/openlibs/appweb/build.sh
+++ b/openlibs/appweb/build.sh
@@ -53,7 +53,7 @@
export OBJDUMP=${CROSS_COMPILE}objdump
export STRIP=${CROSS_COMPILE}strip
- # export cross configure
+ # export cross configure
export CONFIG_CROSS=" --build=i686-pc-linux --host=arm-linux "
# Clear LDFLAGS and CFLAGS
@@ -93,15 +93,15 @@
--enable-sockets --enable-track-vars --enable-trans-sid -enable-wddx --sysconfdir=/apps/appWeb/etc --with-pic \
--with-db --with-regex=system --with-pear --without-zlib --without-iconv --disable-dom --disable-libxml \
--disable-simplexml --disable-xml --disable-wddx --disable-xmlreader --without-xmlrpc --disable-xmlwriter \
- --with-config-file-path=/apps/appweb
+ --with-config-file-path=/apps/appweb
check_result "ERROR: configure ${SRC_NAME} failure"
- export LDFLAGS+="-lpthread -ldl"
+ export LDFLAGS+="-lpthread -ldl"
make && make install
check_result "ERROR: compile ${SRC_NAME} failure"
# install and clear PHP
- ${STRIP} ${PREFIX_PATH}/lib/libphp5.so
+ ${STRIP} ${PREFIX_PATH}/lib/libphp5.so
cp -rf $PREFIX_PATH/lib/libphp5.so $PREFIX_PATH/modules
rm -rf ${PREFIX_PATH}/bin/*
rm -rf $PREFIX_PATH/include
@@ -139,7 +139,7 @@
--enable-test --enable-send --enable-upload --enable-file --enable-regex --with-php=${PRJ_PATH}/${PHP_SRC_NAME}
check_result "ERROR: configure ${SRC_NAME} failure"
- make TRACE=1
+ make TRACE=1
check_result "ERROR: compile ${SRC_NAME} failure"
@@ -180,7 +180,7 @@
./bin/appweb --config appweb.conf &
EOF
- chmod 755 run.sh
+ chmod 755 run.sh
mv run.sh $PREFIX_PATH/
tar -cjf ${TARBALL} `basename $PREFIX_PATH`
@@ -190,6 +190,18 @@
fi
}
+function do_clean()
+{
+ rm -rf appweb* php*
+}
+
+if [[ $# == 1 && $1 == -c ]] ;then
+ echo "start clean ${LIB_NAME}"
+ do_clean
+ exit;
+fi
+
+exit;
export_cross
--
Gitblit v1.9.1