Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #554 from Blizzard/add-uncached-subcontext
Add an 'uncached' sub-context to the context.
- Loading branch information
Showing
11 changed files
with
347 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
-- | ||
-- tests/actions/vstudio/vc2010/vstudio_vs2010_rule_props.lua | ||
-- Validate generation of custom rules | ||
-- Author Tom van Dijck | ||
-- Copyright (c) 2016 Jason Perkins and the Premake project | ||
-- | ||
|
||
local suite = test.declare("vstudio_vs2010_rule_props") | ||
|
||
local vc2010 = premake.vstudio.vc2010 | ||
local m = premake.vstudio.vs2010.rules.props | ||
|
||
|
||
-- | ||
-- Setup | ||
-- | ||
|
||
local wks, prj | ||
|
||
function suite.setup() | ||
premake.action.set("vs2010") | ||
rule 'example' | ||
display 'Example compiler' | ||
fileExtension '.example' | ||
|
||
propertydefinition { | ||
name = "output_path", | ||
kind = "string", | ||
display = "Output Path", | ||
description = "", | ||
} | ||
|
||
buildmessage 'Compiling %{file.basename} with example-compiler...' | ||
buildcommands { | ||
'package-example-compiler.exe %{output_path} "%{file.relpath}"' | ||
} | ||
buildoutputs { | ||
'%{output_path}%{file.basename}.example.cc', | ||
'%{output_path}%{file.basename}.example.h' | ||
} | ||
end | ||
|
||
|
||
|
||
-- | ||
-- commandLineTemplates | ||
-- | ||
|
||
function suite.commandLineTemplates() | ||
local r = test.getRule("example") | ||
m.commandLineTemplates(r) | ||
|
||
test.capture [[ | ||
<CommandLineTemplate>@echo off | ||
package-example-compiler.exe [output_path] "%(Identity)"</CommandLineTemplate> | ||
]] | ||
end | ||
|
||
-- | ||
-- executionDescription | ||
-- | ||
|
||
function suite.executionDescription() | ||
local r = test.getRule("example") | ||
m.executionDescription(r) | ||
|
||
test.capture [[ | ||
<ExecutionDescription>Compiling %(Filename) with example-compiler...</ExecutionDescription> | ||
]] | ||
end | ||
|
Oops, something went wrong.