From 558b650add25f4282b974b29527f857612a73d32 Mon Sep 17 00:00:00 2001 From: SoftFever <103989404+SoftFever@users.noreply.github.com> Date: Sun, 17 Jul 2022 10:27:18 +0800 Subject: [PATCH] add build scripts --- build_release.bat | 14 ++++++++++++++ build_relwithdebinfo.bat | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 build_release.bat create mode 100644 build_relwithdebinfo.bat diff --git a/build_release.bat b/build_release.bat new file mode 100644 index 000000000..9db947724 --- /dev/null +++ b/build_release.bat @@ -0,0 +1,14 @@ +set WP=%CD% +cd deps +mkdir build +cd build +set DEPS=%CD%/BambuStudio_dep +cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release +cmake --build . --config Release --target ALL_BUILD -- -m + +cd %WP% +mkdir build +cd build +cmake .. -G "Visual Studio 16 2019" -DBBL_RELEASE_TO_PUBLIC=0 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./BambuStudio" -DCMAKE_BUILD_TYPE=Release -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0" +cmake --build . --config Release --target ALL_BUILD -- -m +cmake --build . --target install --config Release \ No newline at end of file diff --git a/build_relwithdebinfo.bat b/build_relwithdebinfo.bat new file mode 100644 index 000000000..a71a82f92 --- /dev/null +++ b/build_relwithdebinfo.bat @@ -0,0 +1,14 @@ +set WP=%CD% +cd deps +mkdir build +cd build +set DEPS=%CD%/BambuStudio_dep +cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release +cmake --build . --config Release --target ALL_BUILD -- -m + +cd %WP% +mkdir build +cd build +cmake .. -G "Visual Studio 16 2019" -DBBL_RELEASE_TO_PUBLIC=0 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./BambuStudio_relwithdebinfo" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0" +cmake --build . --config RelWithDebInfo --target ALL_BUILD -- -m +cmake --build . --target install --config RelWithDebInfo \ No newline at end of file