forked from open-license-manager/licensecc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnippets.txt
26 lines (23 loc) · 1.92 KB
/
snippets.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## windows build boost
@echo off
REM build and cache boost on Windows N.B. if no output for 10 minutes it's killed by travis.
REM if set every command to verbose it's killed too for "too much output"...
if not exist "C:/local/boost/libs" (
echo "Boost not cached, compiling it"
rem wget -q https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.7z
wget -q -O boost.exe https://dl.bintray.com/boostorg/release/1.71.0/binaries/boost_1_71_0-msvc-14.1-64.exe
echo "Boost downloaded"
rem 7z x boost_1_71_0.7z -bb1 -oC:/local | C:\Windows\System32\findstr.exe /r /c:”cpp”
rem cd "C:/local/boost_1_71_0"
rem C:/local/boost_1_71_0/bootstrap.bat
rem C:/local/boost_1_71_0/b2.exe -j16 toolset=msvc-14.1 address-model=64 architecture=x86 link=static threading=multi runtime-link=static --with-date_time --with-test --with-filesystem --with-program_options --with-regex --with-serialization --with-system --prefix=C:/local/boost stage
rem echo "Boost compiled"
rem C:/local/boost_1_71_0/b2.exe -j16 toolset=msvc-14.1 address-model=64 architecture=x86 link=static threading=multi runtime-link=static --with-date_time --with-test --with-filesystem --with-program_options --with-regex --with-serialization --with-system --prefix=C:/local/boost install > a.txt 2>&1
boost.exe /SILENT /DIR=C:\local\boost
echo "Boost installed"
cd C:/local/boost
dir
) else echo "Boost already installed"
linux cross compile for windows openssl
./Configure no-zlib no-shared --prefix=$PWD/dist-win-64 --cross-compile-prefix=x86_64-w64-mingw32- mingw64
/usr/local/bin/cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-ubuntu-mingw64.cmake -DCMAKE_INSTALL_PREFIX=../../install -DBOOST_ROOT=$PWD/../../boost_1_69_0/dist-win-x64/ -DOPENSSL_ROOT_DIR=$PWD/../../openssl-OpenSSL_1_1_1d/dist-win-64/ -DBoost_ARCHITECTURE="-x64" -DCMAKE_CXX_COMPILER_ARCHITECTURE_ID="x64" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_VERBOSE_MAKEFILE=ON -DLOGS_DISABLED=ON ..