Remove hack from cxxtest premake module, refs #3729.
This fixes an issue where tests wouldn't build without precompiled headers. Tested By: leper Differential Revision: https://code.wildfiregames.com/D1068 This was SVN commit r20560.
This commit is contained in:
parent
ff724b8645
commit
8bb7a20ec1
@ -28,16 +28,12 @@ function m.configure_project(rootfile, hdrfiles, rootoptions, testoptions)
|
||||
files { hdrfile }
|
||||
end
|
||||
|
||||
-- Generate the root file
|
||||
prebuildmessage 'Generating test root file'
|
||||
prebuildcommands { abspath.." --root "..rootoptions.." -o "..rootpath }
|
||||
|
||||
-- Generate the source files from headers
|
||||
|
||||
-- This first one is a hack, precompiled has nothing to do with the test runner,
|
||||
-- but we need to make the file compilation depend on its generation (which
|
||||
-- buildoutputs does).
|
||||
-- Ideally premake should have an API to specify pre-build commands per file.
|
||||
filter { "files:**precompiled.h" }
|
||||
buildmessage 'Generating root file'
|
||||
buildcommands { abspath.." --root "..rootoptions.." -o "..rootpath }
|
||||
buildoutputs { rootpath }
|
||||
filter { "files:**.h", "files:not **precompiled.h" }
|
||||
buildmessage 'Generating %{file.basename}.cpp'
|
||||
buildcommands { abspath.." --part "..testoptions.." -o %{file.directory}/%{file.basename}.cpp %{file.relpath}" }
|
||||
|
Loading…
Reference in New Issue
Block a user