Files
test/.vimrc.local
2017-06-28 13:42:59 -04:00

106 lines
2.5 KiB
Plaintext

" Setup templates.
"
let g:git_root=system("git rev-parse --show-toplevel | tr -d '\\n'")
let g:templates_no_autocmd = 0
let g:templates_directory=[ g:git_root . '/templates' ]
let g:templates_global_name_prefix='_'
let g:templates_debug=1
let s:vimrc=expand('<sfile>:p:r')
let s:host=hostname()
if filereadable(s:vimrc.'.'.s:host)
execute ':source '.s:vimrc.'.'.s:host
elseif has('win64')
set path+=C:/Progra~2/Micros~1.0/VC/include
"
" the root of all 3pty libraries
"
let g:srcdir=$HOME . "\\src"
"
" BOOST
"
let g:boostdir=g:srcdir."\\boost_1_56_0"
let g:boostinc=g:boostdir
let g:boostlib=g:boostdir."\\stage\\win64_vc12\\lib"
let g:boostbin=g:boostlib
let g:Bboost=g:boostbin.";"
let g:Iboost=" /I\"".g:boostinc."\""
let g:Lboost=" /LIBPATH:\"".g:boostlib."\""
exec "set path+=".g:boostinc
"
" Intel TBB
"
let g:tbbdir=g:srcdir."\\tbb43_20140724oss"
let g:tbbinc=g:tbbdir."\\include"
let g:tbblib=g:tbbdir."\\lib\\intel64\\vc12"
let g:tbbbin=g:tbbdir."\\bin\\intel64\\vc12"
let g:Btbb=g:tbbbin.";"
let g:Itbb=" /I\"".g:tbbinc."\""
let g:Ltbb=" /LIBPATH:\"".g:tbblib."\" tbb.lib"
let g:tbbmalloc=" tbbmalloc.lib"
let g:tbbmproxy=" tbbmalloc_proxy.lib"
exec "set path+=".g:tbbinc
elseif has('unix')
"
" the root of all 3pty libraries
"
if exists($SRC_DIR)
let g:srcdir=$SRC_DIR
else
let g:srcdir=$HOME . "/src"
endif
"
" BOOST
"
if exists("$BOOST_DIR")
let g:boostdir=$BOOST_DIR
else
let g:boostdir=g:srcdir."/boost"
endif
if exists("$BOOST_INC")
let g:boostinc=$BOOST_INC
else
let g:boostinc=g:boostdir
endif
if exists("$BOOST_LIB")
let g:boostlib=$BOOST_LIB
else
let g:boostlib=g:boostdir."/stage/lib"
endif
let g:Iboost=" -I".g:boostinc
let g:Lboost=" -L".g:boostlib
let g:Bboost=""
"
" Intel TBB
"
if exists("$TBB_DIR")
let g:tbbdir=$TBB_DIR
else
let g:tbbdir=g:srcdir."/tbb41"
endif
if exists("$TBB_INC")
let g:tbbinc=$TBB_INC
else
let g:tbbinc=g:tbbdir."/include"
endif
if exists("$TBB_LIB")
let g:tbblib=$TBB_LIB
else
let g:tbblib=g:tbbdir."/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21"
endif
let g:Btbb=""
let g:Itbb=" -I".g:tbbinc
let g:Ltbb=" -L".g:tbblib." -ltbb -ltbbmalloc"
let g:tbbmalloc=" -ltbbmalloc"
let g:tbbmproxy=" -ltbbmalloc_proxy"
endif