diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compiler/ubuild.vim	Thu Sep 24 23:04:57 2020 -0700
@@ -0,0 +1,24 @@
+" Compiler file for building Unreal Engine projects
+" Compiler: Unreal Build
+" Maintainer: Ludovic Chabant <https://ludovic.chabant.com>
+
+if exists("current_compiler")
+    finish
+endif
+let current_compiler = "ubuild"
+
+let s:keepcpo = &cpo
+
+let s:prgpath = unreal#get_script_path("Engine/Build/BatchFiles/Build")
+let s:prgargs = get(g:, "unreal_temp_makeprg_args__", "")
+if !empty(s:prgargs)
+    let s:prgargs = '\ '.join(s:prgargs, '\ ')
+endif
+call unreal#trace("Setting makeprg to: ".s:prgpath.s:prgargs)
+execute "CompilerSet makeprg=".fnameescape(s:prgpath).s:prgargs
+
+CompilerSet errorformat&
+
+let &cpo = s:keepcpo
+unlet s:keepcpo
+