" Local vim rc if exists('g:build_dir') finish endif let g:build_type = get(g:, 'build_type', 'Debug') let g:build_tests = get(g:, 'build_tests', 'ON') let g:cc = get(g:, 'cc', 'clang') let g:cxx = get(g:, 'cxx', 'clang++') let g:root_dir = g:localvimrc_script_dir_unresolved let $ROOT_DIR = g:root_dir let $UNCRUSTIFY_CONFIG = g:root_dir.'/uncrustify.cfg' let g:build_dir = g:root_dir.'/build' let &g:makeprg = 'cd '.g:build_dir.' && make -j1' packadd termdebug let g:termdebug_wide=1 nnoremap c :call asyncrun#run('', \ {'mode':'terminal','cwd':g:build_dir,'save':2}, \ 'cmake .. -DCMAKE_BUILD_TYPE='.g:build_type.' -DBUILD_TESTS='.g:build_tests \ .' -DCMAKE_CXX_COMPILER='.g:cxx.' -DCMAKE_C_COMPILER='.g:cc \ .' -DCMAKE_EXPORT_COMPILE_COMMANDS=ON' \ .' -DBUILD_JNI_BINDING=ON' \ .' -DBUILD_NODEJS_BINDING=ON' \ .' -DBUILD_DART_BINDING=OFF') \