blob: 2f137e4ad4fd46c5e807c9229a5422d8d24358ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/sh
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -ex
GENERATED_DIR="${CONFIGURATION_TEMP_DIR}/generated"
GRIT_DIR="${GENERATED_DIR}/grit"
mkdir -p "${GRIT_DIR}"
# compare generated_resources.grd to generated_resources.h. If the .h is
# older or doesn't exist, rebuild it.
if [ "${GRIT_DIR}/generated_resources.h" -ot \
"${PROJECT_DIR}/app/generated_resources.grd" ]
then
python "${PROJECT_DIR}/../tools/grit/grit.py" \
-i "${PROJECT_DIR}/app/generated_resources.grd" build \
-o "${GRIT_DIR}"
fi
# compare chromium_strings.grd to chromium_strings.h. If the .h is
# older or doesn't exist, rebuild it
if [ "${GRIT_DIR}/chromium_strings.h" -ot \
"${PROJECT_DIR}/app/chromium_strings.grd" ]
then
python "${PROJECT_DIR}/../tools/grit/grit.py" \
-i "${PROJECT_DIR}/app/chromium_strings.grd" build \
-o "${GRIT_DIR}"
fi
# compare browser_resources.grd to browser_resources.h. If the .h is
# older or doesn't exist, rebuild it
if [ "${GRIT_DIR}/browser_resources.h" -ot \
"${PROJECT_DIR}/browser/browser_resources.grd" ]
then
python "${PROJECT_DIR}/../tools/grit/grit.py" \
-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
|