| Index: chrome/chrome_resources.gyp
|
| diff --git a/chrome/chrome_resources.gyp b/chrome/chrome_resources.gyp
|
| index 9cc60599dc693c06e2c6ec9a4d36c3aa77dffc16..701c707d289e19525f906912ff322dc471b67f3c 100644
|
| --- a/chrome/chrome_resources.gyp
|
| +++ b/chrome/chrome_resources.gyp
|
| @@ -4,6 +4,7 @@
|
| {
|
| 'variables': {
|
| 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
|
| + 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html',
|
| 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
|
| },
|
| 'targets': [
|
| @@ -98,12 +99,18 @@
|
| # generated headers.
|
| 'target_name': 'chrome_resources',
|
| 'type': 'none',
|
| + 'dependencies': [
|
| + 'about_credits',
|
| + ],
|
| 'actions': [
|
| # Data resources.
|
| {
|
| 'action_name': 'browser_resources',
|
| 'variables': {
|
| 'grit_grd_file': 'browser/browser_resources.grd',
|
| + 'grit_additional_defines': [
|
| + '-E', 'about_credits_file=<(about_credits_file)',
|
| + ],
|
| },
|
| 'includes': [ '../build/grit_action.gypi' ],
|
| },
|
| @@ -429,5 +436,31 @@
|
| ],
|
| 'includes': [ '../build/grit_target.gypi' ],
|
| },
|
| + {
|
| + 'target_name': 'about_credits',
|
| + 'type': 'none',
|
| + 'actions': [
|
| + {
|
| + 'variables': {
|
| + 'generator_path': '../tools/licenses.py',
|
| + },
|
| + 'action_name': 'generate_about_credits',
|
| + 'inputs': [
|
| + # TODO(phajdan.jr): make licenses.py print inputs too.
|
| + '<(generator_path)',
|
| + ],
|
| + 'outputs': [
|
| + '<(about_credits_file)',
|
| + ],
|
| + 'hard_dependency': 1,
|
| + 'action': ['python',
|
| + '<(generator_path)',
|
| + 'credits',
|
| + '<(about_credits_file)',
|
| + ],
|
| + 'message': 'Generating about:credits.',
|
| + },
|
| + ],
|
| + },
|
| ], # targets
|
| }
|
|
|