summaryrefslogtreecommitdiffstats
path: root/tools/grit/build/grit_resource_file.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/grit/build/grit_resource_file.bat')
-rw-r--r--tools/grit/build/grit_resource_file.bat15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/grit/build/grit_resource_file.bat b/tools/grit/build/grit_resource_file.bat
new file mode 100644
index 0000000..3be0231
--- /dev/null
+++ b/tools/grit/build/grit_resource_file.bat
@@ -0,0 +1,15 @@
+:: Batch file run as build command for .grd files
+:: The custom build rule is set to expect (inputfile).h and (inputfile).rc
+:: our grd files must generate files with the same basename.
+@echo off
+
+setlocal
+
+set InFile=%~1
+set SolutionDir=%~2
+set InputDir=%~3
+
+:: Use GNU tools
+call %SolutionDir%\..\third_party\gnu\setup_env.bat
+
+%SolutionDir%\..\third_party\python_24\python.exe %SolutionDir%\..\tools\grit\grit.py -i %InFile% build -o %InputDir%