James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 1 | :: |
| 2 | :: Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | :: you may not use this file except in compliance with the License. |
| 4 | :: You may obtain a copy of the License at |
| 5 | :: |
| 6 | :: http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | :: |
| 8 | :: Unless required by applicable law or agreed to in writing, software |
| 9 | :: distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | :: See the License for the specific language governing permissions and |
| 12 | :: limitations under the License. |
| 13 | :: |
| 14 | |
| 15 | @ECHO OFF |
| 16 | SETLOCAL EnableDelayedExpansion |
| 17 | |
| 18 | CD build\appveyor || EXIT /B |
| 19 | CALL cl_banner_build.bat || EXIT /B |
| 20 | CALL cl_setenv.bat || EXIT /B |
| 21 | MKDIR "%BUILDDIR%" || EXIT /B |
| 22 | CD "%BUILDDIR%" || EXIT /B |
| 23 | |
James E. King III | c9ac8d2 | 2019-01-07 16:46:45 -0500 | [diff] [blame] | 24 | :: When libraries cannot be found, things might have been updated |
| 25 | :: so uncomment this and submit a pull request to see what's there |
| 26 | :: now... |
| 27 | :: DIR C:\Libraries |
| 28 | :: DIR C:\Libraries\boost_1_69_0\lib* |
| 29 | :: DIR C:\Libraries\boost_1_68_0\lib* |
| 30 | :: DIR C:\Libraries\boost_1_67_0\lib* |
| 31 | :: DIR C:\Libraries\boost_1_66_0\lib* |
| 32 | :: DIR C:\Libraries\boost_1_65_0\lib* |
| 33 | :: DIR C:\Libraries\boost_1_64_0\lib* |
| 34 | :: DIR C:\Libraries\boost_1_63_0\lib* |
| 35 | :: DIR C:\Libraries\boost_1_62_0\lib* |
| 36 | :: DIR C:\Libraries\boost_1_61_0\lib* |
| 37 | :: DIR C:\Libraries\boost_1_60_0\lib* |
| 38 | |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 39 | @ECHO ON |
| 40 | cmake "%SRCDIR%" ^ |
| 41 | -G"%GENERATOR%" ^ |
James E. King, III | 82ae957 | 2017-08-05 12:23:54 -0400 | [diff] [blame] | 42 | -DBISON_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe ^ |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 43 | -DBOOST_ROOT="%BOOST_ROOT%" ^ |
| 44 | -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" ^ |
James E. King III | 278528c | 2019-01-11 12:17:44 -0500 | [diff] [blame] | 45 | -DBUILD_SHARED_LIBS="%BUILD_SHARED_LIBS%" ^ |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 46 | -DCMAKE_BUILD_TYPE="%CONFIGURATION%" ^ |
| 47 | -DCMAKE_INSTALL_PREFIX="%INSTDIR%" ^ |
James E. King, III | 82ae957 | 2017-08-05 12:23:54 -0400 | [diff] [blame] | 48 | -DFLEX_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe ^ |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 49 | -DLIBEVENT_ROOT="%WIN3P%\libevent-%LIBEVENT_VERSION%-stable" ^ |
| 50 | -DOPENSSL_ROOT_DIR="%OPENSSL_ROOT%" ^ |
| 51 | -DOPENSSL_USE_STATIC_LIBS=OFF ^ |
| 52 | -DZLIB_LIBRARY="%WIN3P%\zlib-inst\lib\zlib%ZLIB_LIB_SUFFIX%.lib" ^ |
| 53 | -DZLIB_ROOT="%WIN3P%\zlib-inst" ^ |
| 54 | -DWITH_PYTHON=%WITH_PYTHON% ^ |
James E. King III | 278528c | 2019-01-11 12:17:44 -0500 | [diff] [blame] | 55 | -DWITH_%THREADMODEL%THREADS=ON || EXIT /B |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 56 | @ECHO OFF |
| 57 | |
| 58 | cmake --build . ^ |
| 59 | --config "%CONFIGURATION%" ^ |
| 60 | --target INSTALL || EXIT /B |