mirror of
https://github.com/openharmony/third_party_iowow.git
synced 2026-07-01 14:23:51 -04:00
d153aaad1e
Signed-off-by: zhouhaifeng <kutcher.zhou@huawei.com>
26 lines
792 B
Plaintext
26 lines
792 B
Plaintext
" 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 -j4'
|
|
|
|
packadd termdebug
|
|
let g:termdebug_wide=1
|
|
|
|
nnoremap <leader>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')
|
|
\<CR>
|