summaryrefslogtreecommitdiff
path: root/clrun.sh
blob: d2e57f361139689c649959041b108abf5642f741 (plain)
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
27
28
29
30
31
#!/bin/bash
set -e
set -x
export WINEDEBUG=-all

rm -f ~/.wine/drive_c/number

export BASE='C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133'
export ONECORELIB="$BASE\lib\onecore\x86"
export WINEPATH="$BASE\bin\Hostx86\x86"
export INCLUDE="$BASE\include"
export UCRT="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt"
export UCRTLIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x86"
export UM="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um"
export UMLIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86"
export SHARED="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared"

export CL="/I\"$BASE\include\" /I\"$UCRT\" /I\"$UM\" /I\"$SHARED\" /link /LIBPATH:\"$UMLIB\" /LIBPATH:\"$ONECORELIB\" /LIBPATH:\"$UCRTLIB\""
export LINK="/LIBPATH:\"$UMLIB\" /LIBPATH:\"$ONECORELIB\" /LIBPATH:\"$UCRTLIB\""
export LIB="/LIBPATH:\"$UMLIB\" /LIBPATH:\"$ONECORELIB\" /LIBPATH:\"$UCRTLIB\""

export CXX="cl.exe"
export CC="cl.exe"
export AR="lib.exe"
export LD="link.exe"


#wine ctor.exe

$*