summaryrefslogtreecommitdiffstats
path: root/tools/grit/build/grit_resources.rules
blob: d686fed4322a943c908e573dcf8ec86877e3669d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<VisualStudioToolFile
	Name="GRIT resources"
	Version="8.00"
	>
	<Rules>
		<CustomBuildRule
			Name="GRIT Generated Resources"
			DisplayName="GRIT Generated Resources"
			CommandLine="$(SolutionDir)..\tools\grit\build\grit_resource_file.bat [inputs] &quot;$(SolutionDir)&quot; &quot;$(OutDir)\grit_derived_sources&quot; [AllOptions]"
			Outputs="$(OutDir)\grit_derived_sources\$(InputName).h"
			AdditionalDependencies="$(SolutionDir)..\tools\grit\build\grit_resource_file.bat;$(SolutionDir)..\tools\grit\grit.py"
			FileExtensions="*.grd"
			ExecutionDescription="Generating resources..."
			>
			<Properties>
			  <StringProperty
			    Name="PreprocessorDefinitions"
			    DisplayName="Preprocessor Definitions"
			    Description="Defines a text macro with the given name."
			    Switch="&quot;[value]&quot;"
			    Delimited="true"
			    Inheritable="true"
        />
			</Properties>
		</CustomBuildRule>
	</Rules>
</VisualStudioToolFile>