source: pacpusframework/trunk/scripts/build-msvc-default-installdir.bat@ 93

Last change on this file since 93 was 93, checked in by DHERBOMEZ Gérald, 11 years ago

ajout de fichiers build dans dossier par défaut

File size: 1.5 KB
Line 
1@echo off
2
3echo #################################################
4echo # ___________ ____ ______ __ __ _____ #
5echo # \____ \__ \ _/ ___\\____ \^| ^| \/ ___/ #
6echo # ^| ^|_^> ^> __ \\ \___^| ^|_^> ^> ^| /\___ \ #
7echo # ^| __(____ /\___ ^> __/^|____//____ ^> #
8echo # ^|__^| \/ \/^|__^| \/ #
9echo # #
10echo #################################################
11echo:
12
13echo ========================================
14echo PACPUS BUILD MSVC
15echo ========================================
16echo:
17
18:preamble
19:: Check if the user is in the build directory
20if not exist "%CD%\..\README.txt" goto usage
21:: Args ok, go to build
22goto build
23
24:usage
25echo Usage:
26echo build-msvc.bat [install_dir]
27echo [install-dir] is optional
28echo The script must be run in the build directory, which is 'trunk\build'
29echo:
30echo Where:
31echo install_dir is the installation directory of the library
32echo:
33echo For instance, here is how to build Pacpus:
34echo ..\scripts\build-msvc.bat "D:\Libraries\Pacpus"
35echo:
36goto exit
37
38:build
39:: Initialize the build
40cmake .. -DPACPUS_INSTALL_3RD=TRUE -DPACPUS_USE_LOG=TRUE -DPACPUS_INSTALL_WITH_VERSION_NUMBER=TRUE
41:: Build in debug and release
42msbuild Pacpus.sln /p:Configuration=Debug
43msbuild Pacpus.sln /p:Configuration=Release
44:: Install
45msbuild INSTALL.vcxproj /p:Configuration=Debug
46msbuild INSTALL.vcxproj /p:Configuration=Release
47echo Build finished, do not forget to check the MSVC's output
48
49:exit
50pause
Note: See TracBrowser for help on using the repository browser.