annotate compiler/ugenprojfiles.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 |
ba03cac1b1c6 |
children |
|
rev |
line source |
0
|
1 " Compiler file for generating Unreal Engine project files
|
|
2 " Compiler: Unreal Generate Project Files
|
|
3 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com>
|
|
4
|
|
5 if exists("current_compiler")
|
|
6 finish
|
|
7 endif
|
|
8 let current_compiler = "ugenprojfiles"
|
|
9
|
|
10 let s:keepcpo = &cpo
|
|
11
|
|
12 let s:prgpath = unreal#get_script_path("Engine/Build/BatchFiles/GenerateProjectFiles")
|
|
13 call unreal#trace("Setting makeprg to: ".s:prgpath)
|
|
14 execute "CompilerSet makeprg=".fnameescape(s:prgpath)
|
|
15
|
|
16 CompilerSet errorformat&
|
|
17
|
|
18 let &cpo = s:keepcpo
|
|
19 unlet s:keepcpo
|