Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: chrome/chrome_resources.gyp

Issue 12177010: Generate about:credits page automatically at build time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ninja Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/about_credits.html ('k') | tools/licenses.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'variables': { 5 'variables': {
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', 6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html',
7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], 8 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
8 }, 9 },
9 'targets': [ 10 'targets': [
10 { 11 {
11 'target_name': 'chrome_extra_resources', 12 'target_name': 'chrome_extra_resources',
12 'type': 'none', 13 'type': 'none',
13 # These resources end up in resources.pak because they are resources 14 # These resources end up in resources.pak because they are resources
14 # used by internal pages. Putting them in a spearate pak file makes 15 # used by internal pages. Putting them in a spearate pak file makes
15 # it easier for us to reference them internally. 16 # it easier for us to reference them internally.
16 'actions': [ 17 'actions': [
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }], 92 }],
92 ], 93 ],
93 }, 94 },
94 { 95 {
95 # TODO(mark): It would be better if each static library that needed 96 # TODO(mark): It would be better if each static library that needed
96 # to run grit would list its own .grd files, but unfortunately some 97 # to run grit would list its own .grd files, but unfortunately some
97 # of the static libraries currently have circular dependencies among 98 # of the static libraries currently have circular dependencies among
98 # generated headers. 99 # generated headers.
99 'target_name': 'chrome_resources', 100 'target_name': 'chrome_resources',
100 'type': 'none', 101 'type': 'none',
102 'dependencies': [
103 'about_credits',
104 ],
101 'actions': [ 105 'actions': [
102 # Data resources. 106 # Data resources.
103 { 107 {
104 'action_name': 'browser_resources', 108 'action_name': 'browser_resources',
105 'variables': { 109 'variables': {
106 'grit_grd_file': 'browser/browser_resources.grd', 110 'grit_grd_file': 'browser/browser_resources.grd',
111 'grit_additional_defines': [
112 '-E', 'about_credits_file=<(about_credits_file)',
113 ],
107 }, 114 },
108 'includes': [ '../build/grit_action.gypi' ], 115 'includes': [ '../build/grit_action.gypi' ],
109 }, 116 },
110 { 117 {
111 'action_name': 'common_resources', 118 'action_name': 'common_resources',
112 'variables': { 119 'variables': {
113 'grit_grd_file': 'common/common_resources.grd', 120 'grit_grd_file': 'common/common_resources.grd',
114 }, 121 },
115 'includes': [ '../build/grit_action.gypi' ], 122 'includes': [ '../build/grit_action.gypi' ],
116 }, 123 },
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 { 429 {
423 'action_name': 'chrome_unscaled_resources', 430 'action_name': 'chrome_unscaled_resources',
424 'variables': { 431 'variables': {
425 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd', 432 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
426 }, 433 },
427 'includes': [ '../build/grit_action.gypi' ], 434 'includes': [ '../build/grit_action.gypi' ],
428 }, 435 },
429 ], 436 ],
430 'includes': [ '../build/grit_target.gypi' ], 437 'includes': [ '../build/grit_target.gypi' ],
431 }, 438 },
439 {
440 'target_name': 'about_credits',
441 'type': 'none',
442 'actions': [
443 {
444 'variables': {
445 'generator_path': '../tools/licenses.py',
446 },
447 'action_name': 'generate_about_credits',
448 'inputs': [
449 # TODO(phajdan.jr): make licenses.py print inputs too.
450 '<(generator_path)',
451 ],
452 'outputs': [
453 '<(about_credits_file)',
454 ],
455 'hard_dependency': 1,
456 'action': ['python',
457 '<(generator_path)',
458 'credits',
459 '<(about_credits_file)',
460 ],
461 'message': 'Generating about:credits.',
462 },
463 ],
464 },
432 ], # targets 465 ], # targets
433 } 466 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/about_credits.html ('k') | tools/licenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698