Skip to content

Commit

Permalink
removed the comipled code about midware in shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
908760230 committed Nov 14, 2021
1 parent 04f849f commit eb3358a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 34 deletions.
4 changes: 0 additions & 4 deletions BuildScript/linux/BuildNF.CMake.Debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ mkdir Build.Linux.Debug

cd Build.Linux.Debug

if [ "$1" == 'BUILD_MID_WARE' ] ; then
cmake ../../../ -G "CodeBlocks - Unix Makefiles" -DBUILD_MID_WARE_SDK=ON -DCMAKE_BUILD_TYPE=Debug
else
cmake ../../../ -G "CodeBlocks - Unix Makefiles" -DBUILD_MID_WARE_SDK=OFF -DCMAKE_BUILD_TYPE=Debug
fi

make
cd ../
4 changes: 0 additions & 4 deletions BuildScript/linux/BuildNF.CMake.Release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ mkdir Build.Linux.Release

cd Build.Linux.Release

if [ "$1" == 'BUILD_MID_WARE' ] ; then
cmake ../../../ -G "CodeBlocks - Unix Makefiles" -DBUILD_MID_WARE_SDK=ON -DCMAKE_BUILD_TYPE=Release
else
cmake ../../../ -G "CodeBlocks - Unix Makefiles" -DBUILD_MID_WARE_SDK=OFF -DCMAKE_BUILD_TYPE=Release
fi

make
cd ../
49 changes: 23 additions & 26 deletions buildServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,35 @@
#compile dep libraries

#example 1: ./buildServer
#example 2: ./buildServer BUILD_MID_WARE DEBUG
#example 3: ./buildServer BUILD_MID_WARE
#example 2: ./buildServer DEBUG


echo "we only build NF SDK here"
cd NFComm/NFMessageDefine
./cpp.sh
cd ../../

cd BuildScript/linux/
chmod -R 755 ./BuildNF.CMake.Tools.sh
./BuildNF.CMake.Tools.sh
cd ../../

cd _Out/NFDataCfg/Tool/
chmod 755 ./NFFileProcess
chmod 755 ./copy_files.sh
./copy_files.sh
cd ..
cd ..
cd ..

if [ "$1" == "BUILD_MID_WARE" ]; then
echo "we dont need to compile message and tools again"
else
echo "we only build NF SDK here"
cd NFComm/NFMessageDefine
./cpp.sh
cd ../../

cd BuildScript/linux/
chmod -R 755 ./BuildNF.CMake.Tools.sh
./BuildNF.CMake.Tools.sh
cd ../../

cd _Out/NFDataCfg/Tool/
chmod 755 ./NFFileProcess
chmod 755 ./copy_files.sh
./copy_files.sh
cd ..
cd ..
cd ..
fi

if [ "$2" == "DEBUG" ]; then
if [ "$1" == "DEBUG" ]; then
rm -rf ./_Out/Debug/NFServer
rm -rf ./_Out/Debug/*.a

cd BuildScript/linux/
chmod -R 755 ./BuildNF.CMake.Debug.sh
time ./BuildNF.CMake.Debug.sh $1
time ./BuildNF.CMake.Debug.sh

else

Expand All @@ -47,7 +44,7 @@ rm -rf ./_Out/Release/*.a

cd BuildScript/linux/
chmod -R 755 ./BuildNF.CMake.Release.sh
time ./BuildNF.CMake.Release.sh $1
time ./BuildNF.CMake.Release.sh
fi

cd ../../
Expand Down

0 comments on commit eb3358a

Please sign in to comment.