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

Side by Side Diff: chrome/chrome.gyp

Issue 164260: ObjC classes generated by the build and used in Xib files is already getting ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/cocoa/ui_localizer.mm ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 # Define the common dependencies that contain all the actual 8 # Define the common dependencies that contain all the actual
9 # Chromium functionality. This list gets pulled in below by 9 # Chromium functionality. This list gets pulled in below by
10 # the link of the actual chrome (or chromium) executable on 10 # the link of the actual chrome (or chromium) executable on
11 # Linux or Mac, and into chrome.dll on Windows. 11 # Linux or Mac, and into chrome.dll on Windows.
12 'chromium_dependencies': [ 12 'chromium_dependencies': [
13 'common', 13 'common',
14 'browser', 14 'browser',
15 'debugger', 15 'debugger',
16 'renderer', 16 'renderer',
17 'utility', 17 'utility',
18 'worker', 18 'worker',
19 '../printing/printing.gyp:printing', 19 '../printing/printing.gyp:printing',
20 '../webkit/webkit.gyp:inspector_resources', 20 '../webkit/webkit.gyp:inspector_resources',
21 ], 21 ],
22 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', 22 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
23 'mac_xib_localizer_tool_path': '<(DEPTH)/build/mac/generate_localizer',
24 'mac_xib_localizers_dir': '<(INTERMEDIATE_DIR)/xib_localizers',
25 # TODO(mmoss) This might need to go somewhere more general, then we can use 23 # TODO(mmoss) This might need to go somewhere more general, then we can use
26 # it to also rewrite app/locales/locales.gyp with a helper script. 24 # it to also rewrite app/locales/locales.gyp with a helper script.
27 'locales': [ 25 'locales': [
28 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 26 'ar', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en-GB',
29 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he', 27 'en-US', 'es-419', 'es', 'et', 'fi', 'fil', 'fr', 'gu', 'he',
30 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv', 28 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lt', 'lv',
31 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'pt-BR', 'pt-PT', 'ro', 29 'ml', 'mr', 'nb', 'nl', 'or', 'pl', 'pt-BR', 'pt-PT', 'ro',
32 'ru', 'sk', 'sl', 'sr', 'sv', 'ta', 'te', 'th', 'tr', 30 'ru', 'sk', 'sl', 'sr', 'sv', 'ta', 'te', 'th', 'tr',
33 'uk', 'vi', 'zh-CN', 'zh-TW', 31 'uk', 'vi', 'zh-CN', 'zh-TW',
34 ], 32 ],
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 '../third_party/GTM', 2082 '../third_party/GTM',
2085 '../third_party/GTM/AppKit', 2083 '../third_party/GTM/AppKit',
2086 ], 2084 ],
2087 'link_settings': { 2085 'link_settings': {
2088 'libraries': [ 2086 'libraries': [
2089 '$(SDKROOT)/System/Library/Frameworks/SecurityInterface.framework' , 2087 '$(SDKROOT)/System/Library/Frameworks/SecurityInterface.framework' ,
2090 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', 2088 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
2091 ], 2089 ],
2092 }, 2090 },
2093 'actions': [ 2091 'actions': [
2094 # This block of actions are used to extract the localization data
2095 # from xib files and generate a localizer out of it.
2096 { 2092 {
2093 # This action is used to extract the localization data from xib
2094 # files and generate table for the ui localizer from it.
2095 'variables': {
2096 'xib_localizer_tool_path':
2097 '<(DEPTH)/build/mac/generate_localizer',
2098 'xib_files_to_scan': [
2099 # The xib that need localization
2100 'app/nibs/BookmarkBar.xib',
2101 'app/nibs/BookmarkEditor.xib',
2102 'app/nibs/BookmarkNameFolder.xib',
2103 'app/nibs/MainMenu.xib',
2104 'app/nibs/TabView.xib',
2105 'app/nibs/Toolbar.xib',
2106 # TODO(tvl): add other xibs as needed
2107 ],
2108 },
2097 'action_name': 'process_bookmark_bar_xib', 2109 'action_name': 'process_bookmark_bar_xib',
2098 'process_outputs_as_sources': 1, 2110 'process_outputs_as_sources': 1,
2099 'inputs': [ 2111 'inputs': [
2100 '<(mac_xib_localizer_tool_path)', 2112 '<(xib_localizer_tool_path)',
2101 'app/nibs/BookmarkBar.xib' 2113 '<@(xib_files_to_scan)',
2102 ], 2114 ],
2103 'outputs': [ 2115 'outputs': [
2104 '<(mac_xib_localizers_dir)/bookmark_bar_localizer.h', 2116 '<(INTERMEDIATE_DIR)/ui_localizer_table.h',
2105 '<(mac_xib_localizers_dir)/bookmark_bar_localizer.mm',
2106 ], 2117 ],
2107 'action': ['<@(_inputs)', '<@(_outputs)'], 2118 'action': ['<(xib_localizer_tool_path)',
2119 '<@(_outputs)',
2120 '<@(xib_files_to_scan)'],
2108 }, 2121 },
2109 {
2110 'action_name': 'process_bookmark_editor_xib',
2111 'process_outputs_as_sources': 1,
2112 'inputs': [
2113 '<(mac_xib_localizer_tool_path)',
2114 'app/nibs/BookmarkEditor.xib'
2115 ],
2116 'outputs': [
2117 '<(mac_xib_localizers_dir)/bookmark_editor_localizer.h',
2118 '<(mac_xib_localizers_dir)/bookmark_editor_localizer.mm',
2119 ],
2120 'action': ['<@(_inputs)', '<@(_outputs)'],
2121 },
2122 {
2123 'action_name': 'process_bookmark_name_folder_xib',
2124 'process_outputs_as_sources': 1,
2125 'inputs': [
2126 '<(mac_xib_localizer_tool_path)',
2127 'app/nibs/BookmarkNameFolder.xib'
2128 ],
2129 'outputs': [
2130 '<(mac_xib_localizers_dir)/bookmark_name_folder_localizer.h',
2131 '<(mac_xib_localizers_dir)/bookmark_name_folder_localizer.mm',
2132 ],
2133 'action': ['<@(_inputs)', '<@(_outputs)'],
2134 },
2135 {
2136 'action_name': 'process_mainmenu_xib',
2137 'process_outputs_as_sources': 1,
2138 'inputs': [
2139 '<(mac_xib_localizer_tool_path)',
2140 'app/nibs/MainMenu.xib'
2141 ],
2142 'outputs': [
2143 '<(mac_xib_localizers_dir)/main_menu_localizer.h',
2144 '<(mac_xib_localizers_dir)/main_menu_localizer.mm',
2145 ],
2146 'action': ['<@(_inputs)', '<@(_outputs)'],
2147 },
2148 {
2149 'action_name': 'process_tab_view_xib',
2150 'process_outputs_as_sources': 1,
2151 'inputs': [
2152 '<(mac_xib_localizer_tool_path)',
2153 'app/nibs/TabView.xib'
2154 ],
2155 'outputs': [
2156 '<(mac_xib_localizers_dir)/tab_view_localizer.h',
2157 '<(mac_xib_localizers_dir)/tab_view_localizer.mm',
2158 ],
2159 'action': ['<@(_inputs)', '<@(_outputs)'],
2160 },
2161 {
2162 'action_name': 'process_toolbar_xib',
2163 'process_outputs_as_sources': 1,
2164 'inputs': [
2165 '<(mac_xib_localizer_tool_path)',
2166 'app/nibs/Toolbar.xib'
2167 ],
2168 'outputs': [
2169 '<(mac_xib_localizers_dir)/toolbar_localizer.h',
2170 '<(mac_xib_localizers_dir)/toolbar_localizer.mm',
2171 ],
2172 'action': ['<@(_inputs)', '<@(_outputs)'],
2173 },
2174 # TODO(tvl): add other xibs
2175 ], 2122 ],
2176 }], 2123 }],
2177 ['OS=="win"', { 2124 ['OS=="win"', {
2178 'defines': [ 2125 'defines': [
2179 '__STD_C', 2126 '__STD_C',
2180 '_CRT_SECURE_NO_DEPRECATE', 2127 '_CRT_SECURE_NO_DEPRECATE',
2181 '_SCL_SECURE_NO_DEPRECATE', 2128 '_SCL_SECURE_NO_DEPRECATE',
2182 ], 2129 ],
2183 'include_dirs': [ 2130 'include_dirs': [
2184 'third_party/wtl/include', 2131 'third_party/wtl/include',
(...skipping 3297 matching lines...) Expand 10 before | Expand all | Expand 10 after
5482 # Use outputs of this action as inputs for the main target build. 5429 # Use outputs of this action as inputs for the main target build.
5483 # Seems as a misnomer but makes this happy on Linux (scons). 5430 # Seems as a misnomer but makes this happy on Linux (scons).
5484 'process_outputs_as_sources': 1, 5431 'process_outputs_as_sources': 1,
5485 }, 5432 },
5486 ], # 'actions' 5433 ], # 'actions'
5487 }, 5434 },
5488 ] 5435 ]
5489 }], 5436 }],
5490 ], # 'conditions' 5437 ], # 'conditions'
5491 } 5438 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/ui_localizer.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698