File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 7
7
option (BUILD_STATIC "Build static binary" ON )
8
8
if (BUILD_STATIC)
9
9
message ("Building static binary" )
10
+ add_definitions (-DXERCES_STATIC_LIBRARY)
10
11
foreach (flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE )
11
12
if (${flag_var} MATCHES "/MD" )
12
13
string (REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var} }" )
Original file line number Diff line number Diff line change @@ -16,16 +16,20 @@ install:
16
16
- msiexec.exe /i xsd-4.0.msi /quiet /qn /norestart /log install.log
17
17
18
18
before_build :
19
+ - cd %XSDDIR%\xerces-c-3.1.1\projects\Win32\VC10\xerces-all
20
+ - msbuild xerces-all.sln /t:XercesLib /p:PlatformToolset=v140 /P:Configuration="Static Release"
19
21
- cd %BOOST_ROOT%
20
22
- bootstrap.bat --with-libraries=program_options
21
23
- b2.exe --build-type=complete --with-program_options stage
22
24
- cd c:\projects\bmc
23
25
- set PATH=%QTDIR%\bin;%XSDDIR%\bin;%PATH%
24
26
- set CMAKE_PREFIX_PATH=%QTDIR%;%CMAKE_PREFIX_PATH%
25
- - cmake -G "Visual Studio 14 2015" -Dbmc_USE_PYTHON=OFF -DXercesC_INCLUDE_DIR="%XSDDIR%\include" -DXercesC_LIBRARY_DEBUG="%XSDDIR%\lib\vc-12.0\xerces-c_3D.lib" -DXercesC_LIBRARY_RELEASE="%XSDDIR%\lib\vc-12.0\ xerces-c_3 .lib" .
27
+ - cmake -G "Visual Studio 14 2015" -Dbmc_USE_PYTHON=OFF -DXercesC_INCLUDE_DIR="%XSDDIR%\include" -DXercesC_LIBRARY_DEBUG="%XSDDIR%\lib\vc-12.0\xerces-c_3D.lib" -DXercesC_LIBRARY_RELEASE="%XSDDIR%\xerces-c-3.1.1\Build\Win32\VC10\Static Release\ xerces-c_static_3 .lib" .
26
28
27
29
build_script :
28
30
- msbuild bmc.sln /t:bmc,bmc-ui,bmc_test /p:Configuration=Release
29
31
- cd c:\projects\bmc\test
30
32
- Release\bmc_test.exe
31
-
33
+
34
+ artifacts :
35
+ - path : Release/bmc.exe
You can’t perform that action at this time.
0 commit comments