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