James E. King III | 278528c | 2019-01-11 12:17:44 -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 | :: |
| 16 | :: Build script example for inside the windows docker container |
| 17 | :: |
| 18 | :: C:\build is the out-of-tree build directory |
| 19 | :: C:\install is the location where artifacts are placed |
| 20 | :: C:\thrift is where the sources are |
| 21 | :: |
| 22 | |
| 23 | :: Make and go into the out-of-tree directory |
| 24 | IF NOT EXIST C:\build (MKDIR C:\build) |
| 25 | cd c:\build |
| 26 | |
| 27 | :: Generate the out-of-tree build files |
| 28 | cmake^ |
| 29 | -DBOOST_ROOT=C:\Libraries\boost_1_69_0^ |
| 30 | -DBOOST_LIBRARYDIR=C:\Libraries\boost_1_69_0\lib64-msvc-14.1^ |
James E. King III | 6c26e09 | 2019-02-07 12:48:27 -0500 | [diff] [blame^] | 31 | -DFLEX_HOME=C:\Adobe\Flex\SDK\4.6^ |
James E. King III | 278528c | 2019-01-11 12:17:44 -0500 | [diff] [blame] | 32 | -DLIBEVENT_ROOT=C:\Libraries\libevent-2.1.8^ |
| 33 | -DZLIB_ROOT=C:\Libraries\zlib-1.2.11^ |
| 34 | -DCMAKE_BUILD_TYPE=Release^ |
| 35 | -DCMAKE_INSTALL_PREFIX=C:\install^ |
| 36 | c:\thrift || EXIT /B |
| 37 | |
| 38 | :: Build |
| 39 | cmake --build . --config Release || EXIT /B |
| 40 | |
| 41 | :: Test |
| 42 | cmake --build . --target check || EXIT /B |
| 43 | |
| 44 | :: Install |
James E. King III | 6c26e09 | 2019-02-07 12:48:27 -0500 | [diff] [blame^] | 45 | cmake --build . --target install |