Skip to content

Commit a4c2fe0

Browse files
mbogutanzizimlang
authored andcommitted
Build XercesC statically and provide bmc.exe as an artifact.
1 parent ffd5eb1 commit a4c2fe0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if(MSVC)
77
option(BUILD_STATIC "Build static binary" ON)
88
if(BUILD_STATIC)
99
message("Building static binary")
10+
add_definitions(-DXERCES_STATIC_LIBRARY)
1011
foreach(flag_var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE)
1112
if(${flag_var} MATCHES "/MD")
1213
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")

appveyor.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ install:
1616
- msiexec.exe /i xsd-4.0.msi /quiet /qn /norestart /log install.log
1717

1818
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"
1921
- cd %BOOST_ROOT%
2022
- bootstrap.bat --with-libraries=program_options
2123
- b2.exe --build-type=complete --with-program_options stage
2224
- cd c:\projects\bmc
2325
- set PATH=%QTDIR%\bin;%XSDDIR%\bin;%PATH%
2426
- 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" .
2628

2729
build_script:
2830
- msbuild bmc.sln /t:bmc,bmc-ui,bmc_test /p:Configuration=Release
2931
- cd c:\projects\bmc\test
3032
- Release\bmc_test.exe
31-
33+
34+
artifacts:
35+
- path: Release/bmc.exe

0 commit comments

Comments
 (0)