41 lines
897 B
VimL
41 lines
897 B
VimL
function! s:SetUpLibrariesLinux()
|
|
"
|
|
" the root of all 3pty libraries
|
|
"
|
|
let g:srcdir=$HOME . "/src"
|
|
"
|
|
" BOOST
|
|
"
|
|
let g:boostdir=g:srcdir . "/boost_1_53_0"
|
|
let g:boostinc=g:boostdir
|
|
let g:boostlib=g:boostdir . "/lib-amd64/lib"
|
|
let g:boostld=":".g:boostlib
|
|
let g:boost=" -I".g:boostinc." -L".g:boostlib"
|
|
"
|
|
" Intel TBB
|
|
"
|
|
let g:tbbdir=g:srcdir . "/tbb41_20130116oss"
|
|
let g:tbbinc=g:tbbdir . "/include"
|
|
let g:tbblib=g:tbbdir . "/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21"
|
|
let g:tbbld=":".g:tbblib
|
|
let g:tbb=" -I".g:tbbinc." -L".g:tbblib." -ltbb"
|
|
let g:tbbmalloc=" -ltbbmalloc"
|
|
let g:tbbmproxy=" -ltbbmalloc_proxy"
|
|
|
|
endfunction
|
|
|
|
function! s:SetUpLibrariesWindows()
|
|
call s:SetUpLibrariesLinux()
|
|
endfunction
|
|
|
|
function! SetUpLibraries()
|
|
if has("win32") || has("win64")
|
|
call s:SetUpLibrariesWindows()
|
|
else
|
|
call s:SetUpLibrariesLinux()
|
|
endif
|
|
endfunction
|
|
|
|
call SetUpLibraries()
|
|
|