source: pacpusframework/trunk/scripts/build-msvc.bat@ 103

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

Correction of link bugs.
Windows build OK.

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