Michaël Lemaire
763e75f77e
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@191 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
23 lines
648 B
VimL
23 lines
648 B
VimL
function! RunDebug()
|
|
silent !ctags src/*.c src/shared/*.h
|
|
silent !cmake -D CMAKE_BUILD_TYPE:STRING=Debug .
|
|
!make && ./paysages
|
|
endfunction
|
|
|
|
function! RunRelease()
|
|
silent !ctags src/*.c src/shared/*.h
|
|
silent !cmake -D CMAKE_BUILD_TYPE:STRING=Release .
|
|
!make && ./paysages
|
|
endfunction
|
|
|
|
function! RunProfile()
|
|
silent !ctags src/*.c src/shared/*.h
|
|
silent !cmake -D CMAKE_BUILD_TYPE:STRING=Profile .
|
|
!make && ./paysages && gprof
|
|
endfunction
|
|
|
|
map <silent> <F9> :call RunDebug()<CR>
|
|
map <silent> <C-F9> :call RunProfile()<CR>
|
|
map <silent> <A-F9> :call RunRelease()<CR>
|
|
map <silent> <F10> :!eog output/resultaa.png<CR>
|
|
|