summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.xcodeproj
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/chrome.xcodeproj')
-rwxr-xr-xchrome/chrome.xcodeproj/generate_headers.sh10
-rw-r--r--chrome/chrome.xcodeproj/project.pbxproj2
2 files changed, 12 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
diff --git a/chrome/chrome.xcodeproj/project.pbxproj b/chrome/chrome.xcodeproj/project.pbxproj
index 416fce2..fa10d56 100644
--- a/chrome/chrome.xcodeproj/project.pbxproj
+++ b/chrome/chrome.xcodeproj/project.pbxproj
@@ -6449,6 +6449,7 @@
HEADER_SEARCH_PATHS = (
"$(HEADER_SEARCH_PATHS)",
../testing/gtest/include,
+ "$(CONFIGURATION_TEMP_DIR)/generated/grit",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
@@ -6469,6 +6470,7 @@
HEADER_SEARCH_PATHS = (
"$(HEADER_SEARCH_PATHS)",
../testing/gtest/include,
+ "$(CONFIGURATION_TEMP_DIR)/generated/grit",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",