1 @REM this script builds freeswitch using the latest found Microsoft Visual Studio
2 @REM only one platform
/configuration will be built
3 @REM runs
(probably only
) from the commandline
4 @REM usage
: Freeswitch
.2017.sln
[[[.
*]ebug
] [[.
*]elease
] [[.
*]64] [[.
*]32]]
5 @REM e.g. Freeswitch
.2017.sln
Debug x64
6 @REM Freeswitch
.2017.sln x64
7 @REM Freeswitch
.2017.sln
Debug
8 @REM Freeswitch
.2017.sln
14 @REM change these variables
if you want to build differently by default
15 @
set configuration
=Release
19 @REM
if commandline parameters contain
"ebug" and
/or
"64 and/or 32"
20 @REM
set the configuration
/platform to
Debug and
/or x64 and
/or
32
26 @
set xparams
=x
%params
: =%
27 @
if not y
%xparams
:ebug=%==y
%xparams% (
28 set configuration
=Debug
31 @
if not x
%xparams
:64=%==x
%xparams% (
35 @
if not x
%xparams
:32=%==x
%xparams% (
39 @
if not y
%xparams
:elease=%==y
%xparams% (
40 set configuration
=Debug
45 @REM
use all processors minus
1 when building
46 @REM hmm
, this doesn
't seem to work as I expected as all my procs are used during the build
47 @set procs=%NUMBER_OF_PROCESSORS%
50 @REM check and set Visual Studio environment
54 %msbuild% Freeswitch.2017.sln /m:%procs% /verbosity:normal /property:Configuration=%configuration% /property:Platform=%platform% /fl /flp:logfile=vs%platform%%configuration%.log;verbosity=normal
56 echo "echo ERROR: Cannot find msbuild. You need Microsoft Visual Studio to compile this solution."
60 @REM ------ terminate :end with LF otherwise the label is not recognized by the command processor -----