summaryrefslogtreecommitdiff
path: root/fuzzylite/build.bat
diff options
context:
space:
mode:
authorJohannes Schauer <josch@debian.org>2015-07-07 11:12:00 +0200
committerJohannes Schauer <josch@debian.org>2015-07-07 11:12:00 +0200
commitd210b3addc8ffed7214afd8c7882e700fbcc38c5 (patch)
treeded15607f7f24f83d2d0d7c542265c0a97af577a /fuzzylite/build.bat
fuzzylite (5.1+dfsg-1) unstable; urgency=medium
* new upstream version (Closes: #777858) * removed debian/patches/20140705-minor-improvements-on-building-script as upstream integrated it. Adjust build options in d/rules accordingly. * delete debian/patches/20140714-building-from-objects-just-once and debian/patches/20141027-fix-some-spelling as they have been applied upstream * install usr/lib/*/pkgconfig/fuzzylite.pc in fuzzylite-dev * SONAME bump from 5.0 to 5.1, so renaming libfuzzylite5.0 to libfuzzylite5.1 * add debian/patches/pkgconfig_installdir to install pkgconfig file in correct location # imported from the archive
Diffstat (limited to 'fuzzylite/build.bat')
-rw-r--r--fuzzylite/build.bat105
1 files changed, 105 insertions, 0 deletions
diff --git a/fuzzylite/build.bat b/fuzzylite/build.bat
new file mode 100644
index 0000000..17f5b6d
--- /dev/null
+++ b/fuzzylite/build.bat
@@ -0,0 +1,105 @@
+@echo off
+setlocal EnableDelayedExpansion
+set argc=0
+set valid="no"
+
+for %%a in (%*) do (
+ set /A argc+=1
+ if /I "%%a"=="help" (
+ call:usage
+ goto:eof
+ )
+ if /I "%%a"=="all" set valid="yes"
+ if /I "%%a"=="release" set valid="yes"
+ if /I "%%a"=="debug" set valid="yes"
+ if /I "%%a"=="clean" set valid="yes"
+
+ if !valid!=="no" (
+ echo Invalid option: %%a
+ call:usage
+ goto:eof
+ )
+)
+
+if %argc%==0 echo Building schedule: all
+if not %argc%==0 echo Building schedule: %*
+echo Starting in 3 seconds...
+ping 1.1.1.1 -n 1 -w 3000 > nul
+rem sleep 3 ::This function makes command line DOS-esque C:\Archiv~1
+
+if %argc%==0 (call:all)
+
+for %%a in (%*) do (call:%%a)
+
+goto:eof
+
+:debug
+ echo.
+ echo.
+ echo ****************************************
+ echo STARTING: debug
+
+ if not exist debug mkdir debug
+ cd debug
+ cmake .. -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFL_BACKTRACE=ON -DFL_USE_FLOAT=OFF -DFL_CPP11=OFF
+ nmake
+ cd ..
+
+ echo.
+ echo FINISHED: debug
+ echo ****************************************
+ goto:eof
+
+:release
+ echo.
+ echo.
+ echo ****************************************
+ echo STARTING: release
+
+ if not exist release mkdir release
+ cd release
+ cmake .. -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DFL_BACKTRACE=OFF -DFL_USE_FLOAT=OFF -DFL_CPP11=OFF
+ nmake
+ cd ..
+
+ echo.
+ echo FINISHED: release
+ echo ****************************************
+ goto:eof
+
+:all
+ echo.
+ echo.
+ echo ****************************************
+ echo STARTING: all
+ call:debug
+ call:release
+ echo.
+ echo FINISHED: all
+ echo ****************************************
+ goto:eof
+
+:clean
+ echo.
+ echo.
+ echo ****************************************
+ echo STARTING: clean
+ if exist debug rmdir /S /Q debug
+ if exist release rmdir /S /Q release
+ if exist CMakeFiles rmdir /S /Q CMakeFiles
+ echo.
+ echo FINISHED: clean
+ echo ****************************************
+ goto:eof
+
+:usage
+ echo Usage: build.bat [options]
+ echo where [options] can be any of the following:
+ echo ^ all builds fuzzylite in debug and release mode (default)
+ echo ^ debug builds fuzzylite in debug mode
+ echo ^ release builds fuzzylite in release mode
+ echo ^ clean erases previous builds
+ echo ^ help shows this information
+ echo.
+
+ENDLOCAL \ No newline at end of file