comparison compiler/uscriptwrapper.vim @ 2:9235d8341a18

Refactor the build system invocation commands. Now we have proper knowledge of the projects inside a codebase ("branch"). The plugin should correctly parse configuration names, find the correct module to build based on the configuration, and so on. Also, added support for generating the clang compilation database.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 22 Jan 2021 16:38:18 -0800
parents
children
comparison
equal deleted inserted replaced
1:43d0e448edce 2:9235d8341a18
1 " Compiler file that runs vim-unreal's script wapper
2 " Compiler: Vim-unreal script wrapper
3 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com>
4
5 if exists("current_compiler")
6 finish
7 endif
8 let current_compiler = "uscriptwrapper"
9
10 let s:keepcpo = &cpo
11
12 let s:prgpath = shellescape(unreal#get_vim_script_path("ScriptWrapper"))
13 let s:prgargs = get(g:, '__unreal_makeprg_args', '')
14 let s:prgcmdline = escape(s:prgpath.' '.s:prgargs, ' \"')
15 call unreal#trace("Setting makeprg to: ".s:prgcmdline)
16 execute "CompilerSet makeprg=".s:prgcmdline
17
18 CompilerSet errorformat&
19
20 let &cpo = s:keepcpo
21 unlet s:keepcpo