diff --git a/cpp/cf5-opt.vim b/cpp/cf5-opt.vim new file mode 100644 index 0000000..0e2dbd1 --- /dev/null +++ b/cpp/cf5-opt.vim @@ -0,0 +1,87 @@ +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:boostbin=g:boostlib + let g:Bboost=g:boostbin.":" + let g:Iboost=" -I".g:boostinc + let g:Lboost=" -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:tbbbin=g:tbblib + let g:Btbb=g:tbbbin.":" + let g:Itbb=" -I".g:tbbinc + let g:Ltbb=" -L".g:tbblib." -ltbb" + let g:tbbmalloc=" -ltbbmalloc" + let g:tbbmproxy=" -ltbbmalloc_proxy" + +endfunction + +function! s:SetUpLibrariesWindows() + " + " 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."\\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."\"" + " + " Intel TBB + " + let g:tbbdir=g:srcdir."\\tbb41_20121003oss" + let g:tbbinc=g:tbbdir."\\include" + let g:tbblib=g:tbbdir."\\lib\\intel64\\vc11" + let g:tbbbin=g:tbbdir."\\bin\\intel64\\vc11" + 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" + " + " Win SDK + " + let g:wsdkdir="C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A" + let g:wsdkinc=g:wsdkdir."\\Include" + let g:wsdklib=g:wsdkdir."\\Lib\\x64" + let g:wsdkbin=g:wsdkdir."\\Bin" + let g:Iwsdk=" /I\"".g:wsdkinc."\"" + let g:Lwsdk=" /LIBPATH:\"".g:wsdklib."\"" + " + " OpenGL + " + let g:wsdkdir="C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A" + let g:glinc=g:wsdkinc + let g:gllib=g:wsdklib + let g:glbin="" + let g:Igl=" /I\"".g:glinc."\"" + let g:Lgl=" /LIBPATH:\"".g:gllib."\" OpenGL32.Lib GLU32.lib" +endfunction + +function! SetUpLibraries() + if has("win32") || has("win64") + call s:SetUpLibrariesWindows() + else + call s:SetUpLibrariesLinux() + endif +endfunction + +call SetUpLibraries() +