summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.xcodeproj/generate_headers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/chrome.xcodeproj/generate_headers.sh')
-rwxr-xr-xchrome/chrome.xcodeproj/generate_headers.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/chrome.xcodeproj/generate_headers.sh b/chrome/chrome.xcodeproj/generate_headers.sh
index 2e54526..2f137e4 100755
--- a/chrome/chrome.xcodeproj/generate_headers.sh
+++ b/chrome/chrome.xcodeproj/generate_headers.sh
@@ -38,3 +38,13 @@ then
-i "${PROJECT_DIR}/browser/browser_resources.grd" build \
-o "${GRIT_DIR}"
fi
+
+# compare theme_resources.grd to theme_resources.h. If the .h is
+# older or doesn't exist, rebuild it
+if [ "${GRIT_DIR}/grit/theme_resources.h" -ot \
+ "${PROJECT_DIR}/app/theme/theme_resources.grd" ]
+then
+ python "${PROJECT_DIR}/../tools/grit/grit.py" \
+ -i "${PROJECT_DIR}/app/theme/theme_resources.grd" build \
+ -o "${GRIT_DIR}"
+fi