summaryrefslogtreecommitdiffstats
path: root/tools/grit/build/grit_resource_file.bat
blob: 7853212b30bc9de77a3df844c996ad65e647697a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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

:: Put cygwin in the path
call %SolutionDir%\..\third_party\cygwin\setup_env.bat

%SolutionDir%\..\third_party\python_24\python.exe %SolutionDir%\..\tools\grit\grit.py -i %InFile% build -o %InputDir%