-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Travis Windows support (#1644)
* Initial Travis Windows support * Whitespace changes * More Whitespace * use OSTYPE case
- Loading branch information
Showing
6 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
export PATH="$PATH:/c/Program Files (x86)/Microsoft Visual Studio/Installer/" | ||
export MSVC=$(vswhere -latest -products "*" -requires Microsoft.Component.MSBuild -property installationPath) | ||
export MSVC=$(echo /$MSVC | sed -e 's/\\/\//g' -e 's/://') | ||
export PATH="$PATH:$MSVC/MSBuild/15.0/Bin/" | ||
|
||
NANO_ROOT=`PWD` | ||
mkdir build_win | ||
cd build_win | ||
|
||
cmake \ | ||
-G'Visual Studio 15 2017 Win64' \ | ||
-DACTIVE_NETWORK=nano_test_network \ | ||
-DNANO_TEST=ON \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DBOOST_ROOT="~/platform/boost/" \ | ||
-DIPHLPAPI_LIBRARY="/c/Program Files (x86)/Windows Kits/10/Lib/10.0.17134.0/um/x64/iphlpapi.Lib" \ | ||
-DWINSOCK2_LIBRARY="/c/Program Files (x86)/Windows Kits/10/Lib/10.0.17134.0/um/x64/WS2_32.Lib" \ | ||
-Dgtest_force_shared_crt=true \ | ||
$NANO_ROOT | ||
|
||
cmd.exe /C "MSBuild.exe \"nano/core_test/core_test.vcxproj\" /m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="boost" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_filesystem-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_log-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_program_options-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_thread-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_system-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_date_time-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_atomic-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_regex-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_chrono-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_log_setup-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="qt5baseqt5WinExtras" version="5.11.0" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="boost" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_filesystem-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_log-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_program_options-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_thread-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_system-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_date_time-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_atomic-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_regex-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_chrono-vc141" version="1.66.0.0" targetFramework="native" /> | ||
<package id="boost_log_setup-vc141" version="1.66.0.0" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p ~/platform/boost/lib | ||
nuget install ./util/build_prep/windows/packages.config -ExcludeVersion -OutputDirectory ~/tmp | ||
cp ~/tmp/boost_*/lib/native/libboost*.lib ~/platform/boost/lib | ||
mv ~/tmp/boost/lib/native/include/* ~/platform/boost/ |