]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
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 | ||
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 | ||
39 | @ECHO ON | |
40 | cmake "%SRCDIR%" ^ | |
41 | -G"%GENERATOR%" ^ | |
42 | -DBISON_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe ^ | |
43 | -DBOOST_ROOT="%BOOST_ROOT%" ^ | |
44 | -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" ^ | |
45 | -DBUILD_SHARED_LIBS="%BUILD_SHARED_LIBS%" ^ | |
46 | -DCMAKE_BUILD_TYPE="%CONFIGURATION%" ^ | |
47 | -DCMAKE_INSTALL_PREFIX="%INSTDIR%" ^ | |
48 | -DFLEX_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe ^ | |
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% || EXIT /B | |
55 | @ECHO OFF | |
56 | ||
57 | cmake --build . ^ | |
58 | --config "%CONFIGURATION%" ^ | |
59 | --target INSTALL || EXIT /B |