diff options
author | James E. King, III <jking@apache.org> | 2017-03-10 06:18:33 -0500 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-03-10 06:18:33 -0500 |
commit | 07f59971bd11df619709444275298061ee69f707 (patch) | |
tree | 197adaaede4f594115899dc409a30d2d842195d3 /build/appveyor/MSVC-appveyor-build.bat | |
parent | 9b1544dc21f2d952b91c44e4636e1b9da937002c (diff) | |
download | thrift-07f59971bd11df619709444275298061ee69f707.tar.gz |
THRIFT-4081: appveyor retooling - added mingw64 build as a second job to the CI build process
This closes #1205
Diffstat (limited to 'build/appveyor/MSVC-appveyor-build.bat')
-rw-r--r-- | build/appveyor/MSVC-appveyor-build.bat | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/build/appveyor/MSVC-appveyor-build.bat b/build/appveyor/MSVC-appveyor-build.bat new file mode 100644 index 000000000..ee022cbb4 --- /dev/null +++ b/build/appveyor/MSVC-appveyor-build.bat @@ -0,0 +1,44 @@ +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: + +@ECHO OFF +SETLOCAL EnableDelayedExpansion + +CD build\appveyor || EXIT /B +CALL cl_banner_build.bat || EXIT /B +CALL cl_setenv.bat || EXIT /B +MKDIR "%BUILDDIR%" || EXIT /B +CD "%BUILDDIR%" || EXIT /B + +@ECHO ON + cmake "%SRCDIR%" ^ + -G"%GENERATOR%" ^ + -DBOOST_ROOT="%BOOST_ROOT%" ^ + -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" ^ + -DCMAKE_BUILD_TYPE="%CONFIGURATION%" ^ + -DCMAKE_INSTALL_PREFIX="%INSTDIR%" ^ + -DINTTYPES_ROOT="%WIN3P%\msinttypes" ^ + -DLIBEVENT_ROOT="%WIN3P%\libevent-%LIBEVENT_VERSION%-stable" ^ + -DOPENSSL_ROOT_DIR="%OPENSSL_ROOT%" ^ + -DOPENSSL_USE_STATIC_LIBS=OFF ^ + -DZLIB_LIBRARY="%WIN3P%\zlib-inst\lib\zlib%ZLIB_LIB_SUFFIX%.lib" ^ + -DZLIB_ROOT="%WIN3P%\zlib-inst" ^ + -DWITH_PYTHON=%WITH_PYTHON% ^ + -DWITH_SHARED_LIB=OFF ^ + -DWITH_STATIC_LIB=ON || EXIT /B +@ECHO OFF + +cmake --build . ^ + --config "%CONFIGURATION%" ^ + --target INSTALL || EXIT /B |