Commit dfe7cd95 authored by tfarina@chromium.org's avatar tfarina@chromium.org

First attempt at cleaning up chrome_resources.gyp.

This first prefix action_names with 'generate' to differentiate them
from the target names.

This also collapses theme_resources_gen into theme_resources as there is
no reason to separate them.

It also removes a second declaration of grit_out_dir variable. We don't need to declare it twice in the same file.

BUG=None
TEST=None
R=thestig@chromium.org
TBR=brettw

Review URL: https://codereview.chromium.org/290773004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271579 0039d316-1c4b-4281-b951-d872f2087c98
parent 0ae5be32
...@@ -17,49 +17,49 @@ ...@@ -17,49 +17,49 @@
# it easier for us to reference them internally. # it easier for us to reference them internally.
'actions': [ 'actions': [
{ {
'action_name': 'memory_internals_resources', 'action_name': 'generate_memory_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/memory_internals_resources.grd', 'grit_grd_file': 'browser/resources/memory_internals_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'net_internals_resources', 'action_name': 'generate_net_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/net_internals_resources.grd', 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'invalidations_resources', 'action_name': 'generate_invalidations_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/invalidations_resources.grd', 'grit_grd_file': 'browser/resources/invalidations_resources.grd',
}, },
'includes': ['../build/grit_action.gypi' ], 'includes': ['../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'password_manager_internals_resources', 'action_name': 'generate_password_manager_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd', 'grit_grd_file': 'browser/resources/password_manager_internals_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'signin_internals_resources', 'action_name': 'generate_signin_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/signin_internals_resources.grd', 'grit_grd_file': 'browser/resources/signin_internals_resources.grd',
}, },
'includes': ['../build/grit_action.gypi' ], 'includes': ['../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'sync_internals_resources', 'action_name': 'generate_sync_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/sync_internals_resources.grd', 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'translate_internals_resources', 'action_name': 'generate_translate_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/translate_internals_resources.grd', 'grit_grd_file': 'browser/resources/translate_internals_resources.grd',
}, },
...@@ -76,28 +76,28 @@ ...@@ -76,28 +76,28 @@
], ],
'actions': [ 'actions': [
{ {
'action_name': 'component_extension_resources', 'action_name': 'generate_component_extension_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/component_extension_resources.grd', 'grit_grd_file': 'browser/resources/component_extension_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'options_resources', 'action_name': 'generate_options_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/options_resources.grd', 'grit_grd_file': 'browser/resources/options_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'quota_internals_resources', 'action_name': 'generate_quota_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/quota_internals_resources.grd', 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'sync_file_system_internals_resources', 'action_name': 'generate_sync_file_system_internals_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd', 'grit_grd_file': 'browser/resources/sync_file_system_internals_resources.grd',
}, },
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
['branding=="Chrome"', { ['branding=="Chrome"', {
'actions': [ 'actions': [
{ {
'action_name': 'transform_additional_modules_list', 'action_name': 'generate_transform_additional_modules_list',
'variables': { 'variables': {
'additional_modules_input_path': 'additional_modules_input_path':
'browser/internal/resources/additional_modules_list.input', 'browser/internal/resources/additional_modules_list.input',
...@@ -181,9 +181,8 @@ ...@@ -181,9 +181,8 @@
'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings', 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings',
], ],
'actions': [ 'actions': [
# Data resources.
{ {
'action_name': 'browser_resources', 'action_name': 'generate_browser_resources',
'variables': { 'variables': {
'grit_grd_file': 'browser/browser_resources.grd', 'grit_grd_file': 'browser/browser_resources.grd',
'grit_additional_defines': [ 'grit_additional_defines': [
...@@ -195,14 +194,14 @@ ...@@ -195,14 +194,14 @@
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'common_resources', 'action_name': 'generate_common_resources',
'variables': { 'variables': {
'grit_grd_file': 'common/common_resources.grd', 'grit_grd_file': 'common/common_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'renderer_resources', 'action_name': 'generate_renderer_resources',
'variables': { 'variables': {
'grit_grd_file': 'renderer/resources/renderer_resources.grd', 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
}, },
...@@ -213,7 +212,7 @@ ...@@ -213,7 +212,7 @@
['enable_extensions==1', { ['enable_extensions==1', {
'actions': [ 'actions': [
{ {
'action_name': 'extensions_api_resources', 'action_name': 'generate_extensions_api_resources',
'variables': { 'variables': {
'grit_grd_file': 'common/extensions_api_resources.grd', 'grit_grd_file': 'common/extensions_api_resources.grd',
}, },
...@@ -232,30 +231,29 @@ ...@@ -232,30 +231,29 @@
'target_name': 'chrome_strings', 'target_name': 'chrome_strings',
'type': 'none', 'type': 'none',
'actions': [ 'actions': [
# Localizable resources.
{ {
'action_name': 'locale_settings', 'action_name': 'generate_locale_settings',
'variables': { 'variables': {
'grit_grd_file': 'app/resources/locale_settings.grd', 'grit_grd_file': 'app/resources/locale_settings.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'chromium_strings.grd', 'action_name': 'generate_chromium_strings',
'variables': { 'variables': {
'grit_grd_file': 'app/chromium_strings.grd', 'grit_grd_file': 'app/chromium_strings.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'generated_resources', 'action_name': 'generate_generated_resources',
'variables': { 'variables': {
'grit_grd_file': 'app/generated_resources.grd', 'grit_grd_file': 'app/generated_resources.grd',
}, },
'includes': [ '../build/grit_action.gypi' ], 'includes': [ '../build/grit_action.gypi' ],
}, },
{ {
'action_name': 'google_chrome_strings', 'action_name': 'generate_google_chrome_strings',
'variables': { 'variables': {
'grit_grd_file': 'app/google_chrome_strings.grd', 'grit_grd_file': 'app/google_chrome_strings.grd',
}, },
...@@ -326,7 +324,7 @@ ...@@ -326,7 +324,7 @@
}, # variables }, # variables
'actions': [ 'actions': [
{ {
'action_name': 'platform_locale_settings', 'action_name': 'generate_platform_locale_settings',
'variables': { 'variables': {
'grit_grd_file': '<(platform_locale_settings_grd)', 'grit_grd_file': '<(platform_locale_settings_grd)',
}, },
...@@ -336,11 +334,15 @@ ...@@ -336,11 +334,15 @@
'includes': [ '../build/grit_target.gypi' ], 'includes': [ '../build/grit_target.gypi' ],
}, },
{ {
'target_name': 'theme_resources_gen', 'target_name': 'theme_resources',
'type': 'none', 'type': 'none',
'dependencies': [
'../ui/resources/ui_resources.gyp:ui_resources',
'chrome_unscaled_resources',
],
'actions': [ 'actions': [
{ {
'action_name': 'theme_resources', 'action_name': 'generate_theme_resources',
'variables': { 'variables': {
'grit_grd_file': 'app/theme/theme_resources.grd', 'grit_grd_file': 'app/theme/theme_resources.grd',
}, },
...@@ -349,15 +351,6 @@ ...@@ -349,15 +351,6 @@
], ],
'includes': [ '../build/grit_target.gypi' ], 'includes': [ '../build/grit_target.gypi' ],
}, },
{
'target_name': 'theme_resources',
'type': 'none',
'dependencies': [
'chrome_unscaled_resources',
'theme_resources_gen',
'<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
],
},
{ {
'target_name': 'packed_extra_resources', 'target_name': 'packed_extra_resources',
'type': 'none', 'type': 'none',
...@@ -504,12 +497,9 @@ ...@@ -504,12 +497,9 @@
{ {
'target_name': 'chrome_unscaled_resources', 'target_name': 'chrome_unscaled_resources',
'type': 'none', 'type': 'none',
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
},
'actions': [ 'actions': [
{ {
'action_name': 'chrome_unscaled_resources', 'action_name': 'generate_chrome_unscaled_resources',
'variables': { 'variables': {
'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd', 'grit_grd_file': 'app/theme/chrome_unscaled_resources.grd',
}, },
......
...@@ -286,15 +286,8 @@ action("about_credits") { ...@@ -286,15 +286,8 @@ action("about_credits") {
# source = "browser/resources/translate_internals_resources.grd" # source = "browser/resources/translate_internals_resources.grd"
#} #}
# #
#group("theme_resources") {
# deps = [
# ":theme_resources_gen",
# #"//ui:ui_resources",
# ]
#}
#
## TODO(brettw) rename "app_theme_resources" or something when we don't support ## TODO(brettw) rename "app_theme_resources" or something when we don't support
## GYP any more. This name is required to match the GYP build. ## GYP any more. This name is required to match the GYP build.
#grit("theme_resources_gen") { #grit("theme_resources") {
# source = "app/theme/theme_resources.grd" # source = "app/theme/theme_resources.grd"
#} #}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment