build: unix build - make replaced with ninja
This commit is contained in:
+1
-1
@@ -6,4 +6,4 @@ MY_PATH=`dirname "$0"`
|
||||
cd $MY_PATH/..
|
||||
|
||||
# Build and run target
|
||||
make -C build/Debug "$1" && cd bin && Debug/"$1"
|
||||
ninja -C build/Debug "$1" && cd bin && Debug/"$1"
|
||||
+1
-1
@@ -6,4 +6,4 @@ MY_PATH=`dirname "$0"`
|
||||
cd $MY_PATH/..
|
||||
|
||||
# Build and run target
|
||||
make -C build/Release "$1" && cd bin && Release/"$1"
|
||||
ninja -C build/Release "$1" && cd bin && Release/"$1"
|
||||
+2
-2
@@ -50,10 +50,10 @@ if [ $PLATFORM == "Linux" ] || [ $PLATFORM == "MacOS" ]; then
|
||||
mkdir -p build/Release
|
||||
|
||||
echo -e $INFO "run cmake with Debug configuration"
|
||||
cd build/Debug && cmake -DCMAKE_BUILD_TYPE="Debug" ../..
|
||||
cd build/Debug && cmake -G Ninja -DCMAKE_BUILD_TYPE="Debug" ../..
|
||||
|
||||
echo -e $INFO "run cmake with Release configuration"
|
||||
cd ../Release && cmake -DCMAKE_BUILD_TYPE="Release" ../..
|
||||
cd ../Release && cmake -G Ninja -DCMAKE_BUILD_TYPE="Release" ../..
|
||||
fi
|
||||
|
||||
echo -e $SUCCESS "setup complete"
|
||||
|
||||
Reference in New Issue
Block a user