source: pacpusframework/branches/0.1.x/scripts/build-msvc.bat@ 204

Last change on this file since 204 was 89, checked in by morasjul, 12 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 1.7 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 the args
20if "%1" == "" goto usage
21:: Check if the user is in the build directory
22if not exist "%CD%\..\README.txt" goto usage
23:: Args ok, go to build
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
40:: Root of the repository
41set root_dir=%CD%\..
42:: Initialize the environment of log4cxx
43set LOG4CXX_ROOT=%root_dir%\3rd\apache-log4cxx
44:: Initialize the build
45cmake .. -DPACPUS_INSTALL_DIR="%1" -DPACPUS_INSTALL_3RD=TRUE -DPACPUS_USE_LOG=TRUE
46:: Build in debug and release
47msbuild Pacpus.sln /p:Configuration=Debug
48msbuild Pacpus.sln /p:Configuration=Release
49:: Install
50msbuild INSTALL.vcxproj /p:Configuration=Debug
51msbuild INSTALL.vcxproj /p:Configuration=Release
52echo Build finished, do not forget to check the MSVC's output
53
54:exit
55pause
Note: See TracBrowser for help on using the repository browser.