Mercurial > vim-unreal
comparison compiler/ubuild.vim @ 0:ba03cac1b1c6
Initial commit.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 24 Sep 2020 23:04:57 -0700 |
parents | |
children | 9235d8341a18 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ba03cac1b1c6 |
---|---|
1 " Compiler file for building Unreal Engine projects | |
2 " Compiler: Unreal Build | |
3 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> | |
4 | |
5 if exists("current_compiler") | |
6 finish | |
7 endif | |
8 let current_compiler = "ubuild" | |
9 | |
10 let s:keepcpo = &cpo | |
11 | |
12 let s:prgpath = unreal#get_script_path("Engine/Build/BatchFiles/Build") | |
13 let s:prgargs = get(g:, "unreal_temp_makeprg_args__", "") | |
14 if !empty(s:prgargs) | |
15 let s:prgargs = '\ '.join(s:prgargs, '\ ') | |
16 endif | |
17 call unreal#trace("Setting makeprg to: ".s:prgpath.s:prgargs) | |
18 execute "CompilerSet makeprg=".fnameescape(s:prgpath).s:prgargs | |
19 | |
20 CompilerSet errorformat& | |
21 | |
22 let &cpo = s:keepcpo | |
23 unlet s:keepcpo | |
24 |