1 @if not defined _echo @echo off
4 if /I [%1] == [] goto Usage
5 if /I [%1] == [build] goto ModuleBuild
6 if /I [%1] == [full] goto FullBuild
7 if /I [%1] == [dummy] goto DummyBuild
8 if /I [%1] == [pack] goto Pack
9 if /I [%1] == [clean] goto Clean
14 echo Usage: %0 [command] [args]
16 echo build [module] Build a specific module
17 echo full Build all modules in src/ directory
18 echo dummy Generate dummy assemblies of all modules
19 echo pack [version] Make a NuGet package with build artifacts
20 echo clean Clean all artifacts
26 echo No module specified.
29 call dotnet msbuild %~dp0build\build.proj /t:build /p:Project=%2
33 call dotnet msbuild %~dp0build\build.proj /t:build
37 call dotnet build %~dp0build\build.dummy.csproj
41 set NUGET_VERSION_OPT=
42 if /I not [%2] == [] set NUGET_VERSION_OPT=-Version %2
43 set OUTDIR=%~dp0Artifacts
44 set NUGET_CMD=%~dp0tools\NuGet.exe
45 %NUGET_CMD% pack %~dp0pkg\Tizen.NET.Private.nuspec -Symbols -NoPackageAnalysis %NUGET_VERSION_OPT% -BasePath %~dp0 -OutputDirectory %OUTDIR%
46 %NUGET_CMD% pack %~dp0pkg\Tizen.NET.nuspec -Symbols -NoPackageAnalysis %NUGET_VERSION_OPT% -BasePath %~dp0 -OutputDirectory %OUTDIR%
50 call dotnet msbuild %~dp0build\build.proj /t:clean