Skip to content

Instantly share code, notes, and snippets.

@tolbrino
Last active November 26, 2018 10:33
Show Gist options
  • Save tolbrino/11f511021dd90e031b13ac8272214a40 to your computer and use it in GitHub Desktop.
Save tolbrino/11f511021dd90e031b13ac8272214a40 to your computer and use it in GitHub Desktop.
Files for epoch Windows development setup
# Basic config
export EDITOR=vim
# Msys2 config
export MSYS=winsymlinks:nativestrict
make_winpath()
{
P=$1
if [ "$IN_CYGWIN" = "true" ]; then
cygpath -d "$P"
else
(cd "$P" && /bin/cmd //C "for %i in (".") do @echo %~fsi")
fi
}
make_upath()
{
P=$1
if [ "$IN_CYGWIN" = "true" ]; then
cygpath "$P"
else
echo "$P" | /bin/sed 's,^\([a-zA-Z]\):\\,/\L\1/,;s,\\,/,g'
fi
}
# Without this the path conversion won't work
COMSPEC='C:\Windows\System32\cmd.exe'
obe_otp_gcc_vsn_map="
.*=>default
"
obe_otp_64_gcc_vsn_map="
.*=>default
"
C_DRV="/c"
WIN_C_DRV="C:\\"
IN_CYGWIN=false
PRG_FLS64="${C_DRV}/Program Files"
PRG_FLS32="${C_DRV}/Program Files (x86)"
WIN_PRG_FLS64="${WIN_C_DRV}\\Program Files"
WIN_PRG_FLS32="${WIN_C_DRV}\\Program Files (x86)"
ERL_TOP="${PRG_FLS64}/erl9.1"
WIN_ERL_TOP="${WIN_PRG_FLS64}\\erl9.1"
VISUAL_STUDIO_ROOT=${PRG_FLS32}/Microsoft\ Visual\ Studio/2017/Community
WIN_VISUAL_STUDIO_ROOT="${WIN_PRG_FLS32}\\Microsoft Visual Studio\\2017\\Community"
SDK_VSN=10.0.17134.0
MSVC_VSN=14.16.27023
SDK=${PRG_FLS32}/Windows\ Kits/10
WIN_SDK="${WIN_PRG_FLS32}\\Windows Kits\\10"
MSVC_ROOT=${VISUAL_STUDIO_ROOT}/VC/Tools/MSVC/${MSVC_VSN}
MSVC=${MSVC_ROOT}/bin/Hostx64/x64
WIN_MSVC_ROOT=${WIN_VISUAL_STUDIO_ROOT}\\VC\\Tools\\MSVC\\${MSVC_VSN}
WIN_MSVC=${WIN_MSVC_ROOT}/bin\\Hostx64\\x64
PATH="/usr/local/bin:/usr/bin:/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:${PATH}"
PATH="${MSVC}:${ERL_TOP}/bin:${PATH}:${MSYS_ROOT}/mingw64/bin"
PATH="${PRG_FLS64}/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin:${PATH}"
WIN_MSYS_ROOT="${WIN_C_DRV}\\msys64"
INCLUDE="${INCLUDE};${WIN_MSYS_ROOT}\\mingw64\\include;${WIN_MSYS_ROOT}\\usr\\include"
LIB="${LIB};${WIN_MSYS_ROOT}\\mingw64\\lib;${WIN_MSYS_ROOT}\\mingw64\\bin;${WIN_ERL_TOP}\\usr\\lib;"
export INCLUDE LIB PATH ERL_TOP WIN_ERL_TOP MSVC_VSN SDK_VSN COMSPEC
autoconf
bash
bash-completion
bsdcpio
bsdtar
bzip2
cmake
coreutils
curl
dash
dtc
file
filesystem
findutils
flex
gawk
gcc
gcc-libs
getent
git
grep
gzip
inetutils
info
less
libargp
lndir
make
mingw-w64-x86_64-SDL
mingw-w64-x86_64-gcc
mingw-w64-x86_64-libsodium
mingw-w64-x86_64-ntldd-git
mingw-w64-x86_64-yasm
mintty
msys2-keyring
msys2-launcher-git
msys2-runtime
ncurses
pacman
pacman-mirrors
pactoys-git
pax-git
pkgfile
rebase
sed
tar
task
tftp-hpa
time
tmux
ttyrec
tzcode
util-linux
which
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment