diff options
| author | Odd Stranne <odd@mullvad.net> | 2018-05-25 13:35:34 +0200 |
|---|---|---|
| committer | Odd Stranne <odd@mullvad.net> | 2018-05-25 13:35:34 +0200 |
| commit | fe138d9141ae382293a564623a4a4da29ee4c7b8 (patch) | |
| tree | b4692b68c63169fd7d6d5a3d7058f12021ccbeea | |
| parent | 073c6bec7923aa91d22f252f8319197689c48027 (diff) | |
| download | mullvadvpn-fe138d9141ae382293a564623a4a4da29ee4c7b8.tar.xz mullvadvpn-fe138d9141ae382293a564623a4a4da29ee4c7b8.zip | |
Rename WFP_xxx environment vars to CPP_xxx
| -rw-r--r-- | appveyor.yml | 10 | ||||
| -rw-r--r-- | build_winfw.sh | 18 |
2 files changed, 14 insertions, 14 deletions
diff --git a/appveyor.yml b/appveyor.yml index bea6eea4ac..6b58a8f08c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,23 +13,23 @@ environment: # overridden on a case by case basis down below RUST_VERSION: stable RUST_BACKTRACE: "1" - WFP_BUILD_MODES: "Debug" + CPP_BUILD_MODES: "Debug" # These are all the build jobs. Adjust as necessary. Comment out what you # don't need matrix: - TARGET: i686-pc-windows-msvc - WFP_BUILD_TARGETS: "x86" + CPP_BUILD_TARGETS: "x86" - TARGET: x86_64-pc-windows-msvc - WFP_BUILD_TARGETS: "x64" + CPP_BUILD_TARGETS: "x64" # Testing other channels - TARGET: x86_64-pc-windows-msvc - WFP_BUILD_TARGETS: "x64" + CPP_BUILD_TARGETS: "x64" RUST_VERSION: beta - TARGET: x86_64-pc-windows-msvc - WFP_BUILD_TARGETS: "x64" + CPP_BUILD_TARGETS: "x64" RUST_VERSION: nightly install: diff --git a/build_winfw.sh b/build_winfw.sh index c4eb2977da..521fe007fa 100644 --- a/build_winfw.sh +++ b/build_winfw.sh @@ -1,13 +1,13 @@ set -eu # List of solutions to build -WFP_SOLUTIONS=${WFP_SOLUTIONS:-"winfw"} +CPP_SOLUTIONS=${CPP_SOLUTIONS:-"winfw"} # Override this variable to set your own list of build configurations for # wfpctl -WFP_BUILD_MODES=${WFP_BUILD_MODES:-"Debug Release"} +CPP_BUILD_MODES=${CPP_BUILD_MODES:-"Debug Release"} # Override this variable to set different target platforms for wfpctl -WFP_BUILD_TARGETS=${WFP_BUILD_TARGETS:-"x86 x64"} +CPP_BUILD_TARGETS=${CPP_BUILD_TARGETS:-"x86 x64"} # Override this to set a different cargo target directory CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"./target/"} @@ -22,9 +22,9 @@ function build_wfpctl rm -r $path/bin/* || true set -x - for mode in $WFP_BUILD_MODES; do - for target in $WFP_BUILD_TARGETS; do - cmd.exe "/c msbuild.exe $(to_win_path $path/winfw.sln) /p:Configuration=$mode /p:Platform=$target /t:$WFP_SOLUTIONS" + for mode in $CPP_BUILD_MODES; do + for target in $CPP_BUILD_TARGETS; do + cmd.exe "/c msbuild.exe $(to_win_path $path/winfw.sln) /p:Configuration=$mode /p:Platform=$target /t:$CPP_SOLUTIONS" done done @@ -50,8 +50,8 @@ function copy_outputs { local wfp_root_path=$1 - for mode in $WFP_BUILD_MODES; do - for target in $WFP_BUILD_TARGETS; do + for mode in $CPP_BUILD_MODES; do + for target in $CPP_BUILD_TARGETS; do local dll_path=$(get_wfp_output_path $wfp_root_path $target $mode) local cargo_target=$(get_cargo_target_dir $target $mode) mkdir -p $cargo_target @@ -153,7 +153,7 @@ function rustc_host_arch function main { - local wfp_root_path=${WFP_ROOT_PATH:-"./windows/winfw"} + local wfp_root_path=${CPP_ROOT_PATH:-"./windows/winfw"} build_wfpctl $wfp_root_path copy_outputs $wfp_root_path |
