Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | |
michael@0 | 2 | if [ -d "/c/PROGRA~2/MICROS~2.0" ]; then |
michael@0 | 3 | # /c/Program Files (x86)/Microsoft Visual Studio 10.0 |
michael@0 | 4 | _VSPATH="/c/PROGRA~2/MICROS~2.0" |
michael@0 | 5 | else |
michael@0 | 6 | _VSPATH="/c/tools/msvs10" |
michael@0 | 7 | fi |
michael@0 | 8 | |
michael@0 | 9 | ## SDK redist ## |
michael@0 | 10 | export WIN32_REDIST_DIR=${_VSPATH}/VC/redist/x64/Microsoft.VC100.CRT |
michael@0 | 11 | |
michael@0 | 12 | ## includes: win8 sdk includes, winrt headers for metro, msvc 10 std library, directx sdk for d3d9 ## |
michael@0 | 13 | export INCLUDE=/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/include/shared:/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/include/um:/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/include/winrt:/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/include/winrt/wrl:/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/include/winrt/wrl/wrappers:${_VSPATH}/vc/include:${_VSPATH}/vc/atlmfc/include:/c/tools/sdks/dx10/include |
michael@0 | 14 | |
michael@0 | 15 | ## libs: win8 sdk x64 (64-bit) libs, msvc 10 (64-bit) std library, msvc 10 atl libs, directx sdk (64-bit) for d3d9 ## |
michael@0 | 16 | export LIBPATH=/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/Lib/win8/um/x64:${_VSPATH}/vc/lib/amd64:${_VSPATH}/vc/atlmfc/lib/amd64:/c/tools/sdks/dx10/lib/x64 |
michael@0 | 17 | export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/8.0/Lib/win8/um/x64:${_VSPATH}/vc/lib/amd64:${_VSPATH}/vc/atlmfc/lib/amd64:/c/tools/sdks/dx10/lib/x64 |
michael@0 | 18 | |
michael@0 | 19 | ## paths: win8 sdk x64 (64-bit) tools, msvc 10 (64-bit) build toolchain, moz tools ## |
michael@0 | 20 | export PATH="/c/Program Files (x86)/Windows Kits/8.0/bin/x64:${_VSPATH}/Common7/IDE:${_VSPATH}/VC/BIN/amd64:${_VSPATH}/VC/BIN/x86_amd64:${_VSPATH}/VC/BIN:${_VSPATH}/Common7/Tools:${_VSPATH}/VC/VCPackages:${PATH}" |
michael@0 | 21 | |
michael@0 | 22 | ## WindowsSDKDir ## |
michael@0 | 23 | export WINDOWSSDKDIR="/c/Program Files (x86)/Windows Kits/8.0/" |
michael@0 | 24 | |
michael@0 | 25 | # Use 32bit linker for PGO crash bug. |
michael@0 | 26 | # https://connect.microsoft.com/VisualStudio/feedback/details/686117/ |
michael@0 | 27 | if [ -f /c/PROGRA~2/MICROS~2.0/VC/BIN/x86_amd64/link.exe ]; then |
michael@0 | 28 | # /c/Program Files (x86)/Microsoft Visual Studio 10.0 |
michael@0 | 29 | export LD=c:/PROGRA~2/MICROS~2.0/VC/BIN/x86_amd64/link.exe |
michael@0 | 30 | else |
michael@0 | 31 | export LD=c:/tools/msvs10/VC/BIN/x86_amd64/link.exe |
michael@0 | 32 | fi |
michael@0 | 33 | |
michael@0 | 34 | . $topsrcdir/build/mozconfig.vs2010-common |
michael@0 | 35 | |
michael@0 | 36 | mk_export_correct_style LIB |
michael@0 | 37 | mk_export_correct_style LIBPATH |
michael@0 | 38 | mk_export_correct_style PATH |
michael@0 | 39 | mk_export_correct_style INCLUDE |
michael@0 | 40 | mk_export_correct_style WIN32_REDIST_DIR |