Skip to content

Commit

Permalink
updated make-weekly to build wxCrafter as well
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Dec 30, 2021
1 parent 04ec408 commit 94c7514
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions make-weekly
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,42 @@ echo "GTK3 build : ${wx_config_gtk3_path}"
cd $curdir
echo "Pulling CodeLite changes..."
echo `pwd`
git pull --rebase
git pull --rebase
if [ $? -ne 0 ]; then
exit $?
fi

cd $curdir
ORIG_PATH=$PATH
ORIG_LDPATH=$LD_LIBRARY_PATH
linux_build() {

linux_build_codelite() {
mkdir -p $curdir/$1
cd $curdir/$1 # cd to the build folder
echo rm -fr *.deb
rm -fr *.deb
export PATH=$2:${ORIG_PATH}
export LD_LIBRARY_PATH=$2/lib:${ORIG_LDPATH}
cmake -DCMAKE_BUILD_TYPE=Release -DMAKE_DEB=1 -DCOPY_WX_LIBS=1 ..
make -j${cpu_count} && make package
make -j${cpu_count} package
if [ "${upload_file}" == "yes" ]; then
deb_file=`ls -lt *.deb|awk '{print $9;}'|head -n 1`
echo Uploading deb file ${deb_file}
scp ${deb_file} [email protected]:/var/www/html/downloads/codelite/wip
fi
cd $curdir
}

linux_build_wxcrafter() {
mkdir -p $curdir/$1
cd $curdir/$1 # cd to the build folder
echo rm -fr *.deb
rm -fr *.deb
export PATH=$2:${ORIG_PATH}
export LD_LIBRARY_PATH=$2/lib:${ORIG_LDPATH}
cmake .. -DCMAKE_BUILD_TYPE=Release -DCOPY_WX_LIBS=1 -DWXC_APP=1 -Wno-dev
make -j${cpu_count} package
rm -f *Unspecified.deb
if [ "${upload_file}" == "yes" ]; then
deb_file=`ls -lt *.deb|awk '{print $9;}'|head -n 1`
echo Uploading deb file ${deb_file}
Expand All @@ -75,15 +94,13 @@ linux_build() {
# Build and upload
if [ ${os_name} == "Darwin" ]; then
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j${cpu_count} && make install
if [ "${upload_file}" == "yes" ]; then
tar cvfz codelite.app.tar.gz codelite.app/*
scp codelite.app.tar.gz [email protected]:/var/www/html/downloads/codelite/wip
fi
else
linux_build build-release
if [ "${build_gtk3}" == "yes" ]; then
linux_build build-release-gtk3 ${wx_config_gtk3_path}
fi
linux_build_codelite build-release
linux_build_wxcrafter build-release-wxcrafter
fi

0 comments on commit 94c7514

Please sign in to comment.