From 920c091ac3ee15079194c82ae8a7a18215f3f23c Mon Sep 17 00:00:00 2001 From: "initial.commit" Date: Sun, 27 Jul 2008 00:12:16 +0000 Subject: Add tools to the repository. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/grit/build/grit_resource_file.bat | 15 +++++ tools/grit/build/grit_resource_file.rules | 103 ++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 tools/grit/build/grit_resource_file.bat create mode 100644 tools/grit/build/grit_resource_file.rules (limited to 'tools/grit/build') 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% diff --git a/tools/grit/build/grit_resource_file.rules b/tools/grit/build/grit_resource_file.rules new file mode 100644 index 0000000..5ab70f5 --- /dev/null +++ b/tools/grit/build/grit_resource_file.rules @@ -0,0 +1,103 @@ + + + + + + + + + -- cgit v1.1