diff --git a/tools/Windows_dependencies_build_MinGW.sh b/tools/Windows_dependencies_build_MinGW.sh index 6b1edf1ef..cfd3bad69 100644 --- a/tools/Windows_dependencies_build_MinGW.sh +++ b/tools/Windows_dependencies_build_MinGW.sh @@ -39,7 +39,7 @@ echo -e "\nBuilding FreeType" cd freetype/build rm -f CMakeCache.txt -cmake -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON .. +cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON .. make clean make -j${JOBS} cp libfreetype.dll ../../.. @@ -48,7 +48,7 @@ cd ../.. echo -e "\nBuilding pugixml" cd pugixml rm -f CMakeCache.txt -cmake -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON . +cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON . make clean make -j${JOBS} cp libpugixml.dll ../.. diff --git a/tools/macOS_dependencies_build.sh b/tools/macOS_dependencies_build.sh index db36dfcd4..7cbc3ac76 100755 --- a/tools/macOS_dependencies_build.sh +++ b/tools/macOS_dependencies_build.sh @@ -37,9 +37,9 @@ echo "Building libpng" cd libpng rm -f CMakeCache.txt if [ $(uname -m) == "arm64" ]; then - cmake -DPNG_SHARED=off -DPNG_ARM_NEON=off -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . + cmake -DCMAKE_BUILD_TYPE=Release -DPNG_SHARED=off -DPNG_ARM_NEON=off -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . else - cmake -DPNG_SHARED=off -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . + cmake -DCMAKE_BUILD_TYPE=Release -DPNG_SHARED=off -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . fi make clean make -j${JOBS} @@ -49,7 +49,7 @@ cd .. echo "\nBuilding FreeType" cd freetype/build rm -f CMakeCache.txt -cmake -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=on -DBUILD_SHARED_LIBS=on -DCMAKE_MACOSX_RPATH=on -DCMAKE_INSTALL_PREFIX=$(pwd)/../../local_install -S .. -B . +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=on -DBUILD_SHARED_LIBS=on -DCMAKE_MACOSX_RPATH=on -DCMAKE_INSTALL_PREFIX=$(pwd)/../../local_install -S .. -B . make clean make -j${JOBS} cp libfreetype.6.18.0.dylib ../../../libfreetype.6.dylib @@ -65,7 +65,7 @@ cd ../.. echo "\nBuilding pugixml" cd pugixml rm -f CMakeCache.txt -cmake . +cmake -DCMAKE_BUILD_TYPE=Release . make clean make -j${JOBS} cp libpugixml.a ../.. @@ -91,7 +91,7 @@ cd .. echo "\nBuilding Ogg" cd ogg rm -f CMakeCache.txt -cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . make clean make -j${JOBS} make install @@ -100,7 +100,7 @@ cd .. echo "\nBuilding Vorbis" cd vorbis rm -f CMakeCache.txt -cmake -DBUILD_SHARED_LIBS=on -DCMAKE_MACOSX_RPATH=on -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . +cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=on -DCMAKE_MACOSX_RPATH=on -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . make clean make -j${JOBS} make install @@ -111,7 +111,7 @@ cd .. echo "\nBuilding Opus" cd opus rm -f CMakeCache.txt -cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/../local_install . make clean make -j${JOBS} make install