blob: 892daa17aeb6c9da8371b4919a3a56efc73da80d [file] [log] [blame]
James E. King, III07f59972017-03-10 06:18:33 -05001::
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
16SETLOCAL EnableDelayedExpansion
17
18CD build\appveyor || EXIT /B
19CALL cl_banner_build.bat || EXIT /B
20CALL cl_setenv.bat || EXIT /B
21MKDIR "%BUILDDIR%" || EXIT /B
22CD "%BUILDDIR%" || EXIT /B
23
James E. King IIIc9ac8d22019-01-07 16:46:45 -050024:: 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, III07f59972017-03-10 06:18:33 -050039@ECHO ON
40 cmake "%SRCDIR%" ^
41 -G"%GENERATOR%" ^
James E. King, III82ae9572017-08-05 12:23:54 -040042 -DBISON_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe ^
James E. King, III07f59972017-03-10 06:18:33 -050043 -DBOOST_ROOT="%BOOST_ROOT%" ^
44 -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" ^
James E. King III278528c2019-01-11 12:17:44 -050045 -DBUILD_SHARED_LIBS="%BUILD_SHARED_LIBS%" ^
James E. King, III07f59972017-03-10 06:18:33 -050046 -DCMAKE_BUILD_TYPE="%CONFIGURATION%" ^
47 -DCMAKE_INSTALL_PREFIX="%INSTDIR%" ^
James E. King, III82ae9572017-08-05 12:23:54 -040048 -DFLEX_EXECUTABLE=C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe ^
James E. King, III07f59972017-03-10 06:18:33 -050049 -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 III278528c2019-01-11 12:17:44 -050055 -DWITH_%THREADMODEL%THREADS=ON || EXIT /B
James E. King, III07f59972017-03-10 06:18:33 -050056@ECHO OFF
57
58cmake --build . ^
59 --config "%CONFIGURATION%" ^
60 --target INSTALL || EXIT /B