OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'chromium_code': 1, | 6 'chromium_code': 1, |
7 | 7 |
8 'variables': { | 8 'variables': { |
9 'version_py_path': 'tools/build/version.py', | 9 'version_py_path': 'tools/build/version.py', |
10 'version_path': 'VERSION', | 10 'version_path': 'VERSION', |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 'chrome_dll_syzygy.gypi', # This must follow chrome_dll and chrome_exe. | 127 'chrome_dll_syzygy.gypi', # This must follow chrome_dll and chrome_exe. |
128 'chrome_installer.gypi', | 128 'chrome_installer.gypi', |
129 'chrome_installer_util.gypi', | 129 'chrome_installer_util.gypi', |
130 'chrome_renderer.gypi', | 130 'chrome_renderer.gypi', |
131 'chrome_tests.gypi', | 131 'chrome_tests.gypi', |
132 'common_constants.gypi', | 132 'common_constants.gypi', |
133 'nacl.gypi', | 133 'nacl.gypi', |
134 ], | 134 ], |
135 'targets': [ | 135 'targets': [ |
136 { | 136 { |
| 137 # TODO(mark): It would be better if each static library that needed |
| 138 # to run grit would list its own .grd files, but unfortunately some |
| 139 # of the static libraries currently have circular dependencies among |
| 140 # generated headers. |
| 141 'target_name': 'chrome_resources', |
| 142 'type': 'none', |
| 143 'actions': [ |
| 144 # Data resources. |
| 145 { |
| 146 'action_name': 'browser_resources', |
| 147 'variables': { |
| 148 'grit_grd_file': 'browser/browser_resources.grd', |
| 149 }, |
| 150 'includes': [ '../build/grit_action.gypi' ], |
| 151 }, |
| 152 { |
| 153 'action_name': 'common_resources', |
| 154 'variables': { |
| 155 'grit_grd_file': 'common/common_resources.grd', |
| 156 }, |
| 157 'includes': [ '../build/grit_action.gypi' ], |
| 158 }, |
| 159 { |
| 160 'action_name': 'renderer_resources', |
| 161 'variables': { |
| 162 'grit_grd_file': 'renderer/renderer_resources.grd', |
| 163 }, |
| 164 'includes': [ '../build/grit_action.gypi' ], |
| 165 }, |
| 166 ], |
| 167 'includes': [ '../build/grit_target.gypi' ], |
| 168 }, |
| 169 { |
| 170 # TODO(mark): It would be better if each static library that needed |
| 171 # to run grit would list its own .grd files, but unfortunately some |
| 172 # of the static libraries currently have circular dependencies among |
| 173 # generated headers. |
| 174 'target_name': 'chrome_strings', |
| 175 'type': 'none', |
| 176 'conditions': [ |
| 177 ['OS=="win"', { |
| 178 # HACK(nsylvain): We want to enforce a fake dependency on |
| 179 # intaller_util_string. install_util depends on both |
| 180 # chrome_strings and installer_util_strings, but for some reasons |
| 181 # Incredibuild does not enforce it (most likely a bug). By changing |
| 182 # the type and making sure we depend on installer_util_strings, it |
| 183 # will always get built before installer_util. |
| 184 'type': 'dummy_executable', |
| 185 'dependencies': ['installer_util_strings'], |
| 186 }], |
| 187 ], |
| 188 'actions': [ |
| 189 # Localizable resources. |
| 190 { |
| 191 'action_name': 'locale_settings', |
| 192 'variables': { |
| 193 'grit_grd_file': 'app/resources/locale_settings.grd', |
| 194 }, |
| 195 'includes': [ '../build/grit_action.gypi' ], |
| 196 }, |
| 197 { |
| 198 'action_name': 'chromium_strings.grd', |
| 199 'variables': { |
| 200 'grit_grd_file': 'app/chromium_strings.grd', |
| 201 }, |
| 202 'includes': [ '../build/grit_action.gypi' ], |
| 203 }, |
| 204 { |
| 205 'action_name': 'generated_resources', |
| 206 'variables': { |
| 207 'grit_grd_file': 'app/generated_resources.grd', |
| 208 }, |
| 209 'includes': [ '../build/grit_action.gypi' ], |
| 210 }, |
| 211 { |
| 212 'action_name': 'google_chrome_strings', |
| 213 'variables': { |
| 214 'grit_grd_file': 'app/google_chrome_strings.grd', |
| 215 }, |
| 216 'includes': [ '../build/grit_action.gypi' ], |
| 217 }, |
| 218 ], |
| 219 'includes': [ '../build/grit_target.gypi' ], |
| 220 }, |
| 221 { |
| 222 'target_name': 'theme_resources', |
| 223 'type': 'none', |
| 224 'actions': [ |
| 225 { |
| 226 'action_name': 'theme_resources', |
| 227 'variables': { |
| 228 'grit_grd_file': 'app/theme/theme_resources.grd', |
| 229 }, |
| 230 'includes': [ '../build/grit_action.gypi' ], |
| 231 }, |
| 232 { |
| 233 'action_name': 'theme_resources_large', |
| 234 'variables': { |
| 235 'grit_grd_file': 'app/theme/theme_resources_large.grd', |
| 236 }, |
| 237 'includes': [ '../build/grit_action.gypi' ], |
| 238 }, |
| 239 { |
| 240 'action_name': 'theme_resources_standard', |
| 241 'variables': { |
| 242 'grit_grd_file': 'app/theme/theme_resources_standard.grd', |
| 243 }, |
| 244 'includes': [ '../build/grit_action.gypi' ], |
| 245 }, |
| 246 ], |
| 247 'includes': [ '../build/grit_target.gypi' ], |
| 248 }, |
| 249 { |
| 250 'target_name': 'platform_locale_settings', |
| 251 'type': 'none', |
| 252 'actions': [ |
| 253 { |
| 254 'action_name': 'platform_locale_settings', |
| 255 'variables': { |
| 256 'grit_grd_file': '<(platform_locale_settings_grd)', |
| 257 }, |
| 258 'includes': [ '../build/grit_action.gypi' ], |
| 259 }, |
| 260 ], |
| 261 'includes': [ '../build/grit_target.gypi' ], |
| 262 }, |
| 263 { |
| 264 'target_name': 'chrome_extra_resources', |
| 265 'type': 'none', |
| 266 'dependencies': [ |
| 267 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_devtoo
ls_grd', |
| 268 ], |
| 269 # These resources end up in resources.pak because they are resources |
| 270 # used by internal pages. Putting them in a spearate pak file makes |
| 271 # it easier for us to reference them internally. |
| 272 'actions': [ |
| 273 { |
| 274 'action_name': 'component_extension_resources', |
| 275 'variables': { |
| 276 'grit_grd_file': 'browser/resources/component_extension_resources.gr
d', |
| 277 }, |
| 278 'includes': [ '../build/grit_action.gypi' ], |
| 279 }, |
| 280 { |
| 281 'action_name': 'net_internals_resources', |
| 282 'variables': { |
| 283 'grit_grd_file': 'browser/resources/net_internals_resources.grd', |
| 284 }, |
| 285 'includes': [ '../build/grit_action.gypi' ], |
| 286 }, |
| 287 { |
| 288 'action_name': 'options_resources', |
| 289 'variables': { |
| 290 'grit_grd_file': 'browser/resources/options_resources.grd', |
| 291 }, |
| 292 'includes': [ '../build/grit_action.gypi' ], |
| 293 }, |
| 294 { |
| 295 'action_name': 'quota_internals_resources', |
| 296 'variables': { |
| 297 'grit_grd_file': 'browser/resources/quota_internals_resources.grd', |
| 298 }, |
| 299 'includes': [ '../build/grit_action.gypi' ], |
| 300 }, |
| 301 { |
| 302 'action_name': 'shared_resources', |
| 303 'variables': { |
| 304 'grit_grd_file': 'browser/resources/shared_resources.grd', |
| 305 }, |
| 306 'includes': [ '../build/grit_action.gypi' ], |
| 307 }, |
| 308 { |
| 309 'action_name': 'sync_internals_resources', |
| 310 'variables': { |
| 311 'grit_grd_file': 'browser/resources/sync_internals_resources.grd', |
| 312 }, |
| 313 'includes': [ '../build/grit_action.gypi' ], |
| 314 }, |
| 315 { |
| 316 'action_name': 'workers_resources', |
| 317 'variables': { |
| 318 'grit_grd_file': 'browser/resources/workers_resources.grd', |
| 319 }, |
| 320 'includes': [ '../build/grit_action.gypi' ], |
| 321 }, |
| 322 { |
| 323 'action_name': 'devtools_frontend_resources', |
| 324 'variables': { |
| 325 'grit_grd_file': |
| 326 'browser/debugger/frontend/devtools_frontend_resources.grd', |
| 327 }, |
| 328 'includes': [ '../build/grit_action.gypi' ] |
| 329 }, |
| 330 { |
| 331 'action_name': 'devtools_resources', |
| 332 # This can't use ../build/grit_action.gypi because the grd file |
| 333 # is generated a build time, so the trick of using grit_info to get |
| 334 # the real inputs/outputs at GYP time isn't possible. |
| 335 'variables': { |
| 336 'grit_cmd': ['python', '../tools/grit/grit.py'], |
| 337 'grit_grd_file': '<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resou
rces.grd', |
| 338 }, |
| 339 'inputs': [ |
| 340 '<(grit_grd_file)', |
| 341 '<!@pymod_do_main(grit_info --inputs)', |
| 342 ], |
| 343 'outputs': [ |
| 344 '<(grit_out_dir)/grit/devtools_resources.h', |
| 345 '<(grit_out_dir)/devtools_resources.pak', |
| 346 '<(grit_out_dir)/grit/devtools_resources_map.cc', |
| 347 '<(grit_out_dir)/grit/devtools_resources_map.h', |
| 348 ], |
| 349 'action': ['<@(grit_cmd)', |
| 350 '-i', '<(grit_grd_file)', 'build', |
| 351 '-o', '<(grit_out_dir)', |
| 352 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)', |
| 353 '<@(grit_defines)' ], |
| 354 'message': 'Generating resources from <(grit_grd_file)', |
| 355 }, |
| 356 ], |
| 357 'includes': [ '../build/grit_target.gypi' ], |
| 358 }, |
| 359 { |
137 'target_name': 'default_extensions', | 360 'target_name': 'default_extensions', |
138 'type': 'none', | 361 'type': 'none', |
139 'conditions': [ | 362 'conditions': [ |
140 ['OS=="win"', { | 363 ['OS=="win"', { |
141 'copies': [ | 364 'copies': [ |
142 { | 365 { |
143 'destination': '<(PRODUCT_DIR)/extensions', | 366 'destination': '<(PRODUCT_DIR)/extensions', |
144 'files': [ | 367 'files': [ |
145 'browser/extensions/default_extensions/external_extensions.json' | 368 'browser/extensions/default_extensions/external_extensions.json' |
146 ] | 369 ] |
(...skipping 10 matching lines...) Expand all Loading... |
157 } | 380 } |
158 ], | 381 ], |
159 }], | 382 }], |
160 ], | 383 ], |
161 }, | 384 }, |
162 { | 385 { |
163 # TODO(joi): Move debugger-related build rules to content/ | 386 # TODO(joi): Move debugger-related build rules to content/ |
164 'target_name': 'debugger', | 387 'target_name': 'debugger', |
165 'type': 'static_library', | 388 'type': 'static_library', |
166 'dependencies': [ | 389 'dependencies': [ |
167 'chrome_resources.gyp:chrome_extra_resources', | 390 'chrome_extra_resources', |
168 'chrome_resources.gyp:chrome_resources', | 391 'chrome_resources', |
169 'chrome_resources.gyp:chrome_strings', | 392 'chrome_strings', |
170 'chrome_resources.gyp:theme_resources', | 393 'theme_resources', |
171 '../base/base.gyp:base', | 394 '../base/base.gyp:base', |
172 '../content/content.gyp:content_browser', | 395 '../content/content.gyp:content_browser', |
173 '../net/net.gyp:http_server', | 396 '../net/net.gyp:http_server', |
174 '../net/net.gyp:net', | 397 '../net/net.gyp:net', |
175 '../skia/skia.gyp:skia', | 398 '../skia/skia.gyp:skia', |
176 '../third_party/icu/icu.gyp:icui18n', | 399 '../third_party/icu/icu.gyp:icui18n', |
177 '../third_party/icu/icu.gyp:icuuc', | 400 '../third_party/icu/icu.gyp:icuuc', |
178 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | 401 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
179 ], | 402 ], |
180 'include_dirs': [ | 403 'include_dirs': [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 '../content/content.gyp:content_plugin', | 445 '../content/content.gyp:content_plugin', |
223 ], | 446 ], |
224 'sources': [ | 447 'sources': [ |
225 'plugin/chrome_content_plugin_client.cc', | 448 'plugin/chrome_content_plugin_client.cc', |
226 'plugin/chrome_content_plugin_client.h', | 449 'plugin/chrome_content_plugin_client.h', |
227 ], | 450 ], |
228 'include_dirs': [ | 451 'include_dirs': [ |
229 '..', | 452 '..', |
230 '<(grit_out_dir)', | 453 '<(grit_out_dir)', |
231 ], | 454 ], |
232 }, | 455 }, |
233 { | 456 { |
234 'target_name': 'utility', | 457 'target_name': 'utility', |
235 'type': 'static_library', | 458 'type': 'static_library', |
236 'dependencies': [ | 459 'dependencies': [ |
237 '../base/base.gyp:base', | 460 '../base/base.gyp:base', |
238 '../content/content.gyp:content_utility', | 461 '../content/content.gyp:content_utility', |
239 '../skia/skia.gyp:skia', | 462 '../skia/skia.gyp:skia', |
240 ], | 463 ], |
241 'sources': [ | 464 'sources': [ |
242 'utility/chrome_content_utility_client.cc', | 465 'utility/chrome_content_utility_client.cc', |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 'hard_dependency': 1, | 814 'hard_dependency': 1, |
592 'export_dependent_settings': [ | 815 'export_dependent_settings': [ |
593 '../jingle/jingle.gyp:notifier', | 816 '../jingle/jingle.gyp:notifier', |
594 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n', | 817 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n', |
595 ], | 818 ], |
596 }, | 819 }, |
597 { | 820 { |
598 'target_name': 'service', | 821 'target_name': 'service', |
599 'type': 'static_library', | 822 'type': 'static_library', |
600 'dependencies': [ | 823 'dependencies': [ |
601 'chrome_resources.gyp:chrome_strings', | 824 'chrome_strings', |
602 'common', | 825 'common', |
603 'common_net', | 826 'common_net', |
604 '../base/base.gyp:base', | 827 '../base/base.gyp:base', |
605 '../jingle/jingle.gyp:notifier', | 828 '../jingle/jingle.gyp:notifier', |
606 '../net/net.gyp:net', | 829 '../net/net.gyp:net', |
607 '../printing/printing.gyp:printing', | 830 '../printing/printing.gyp:printing', |
608 '../skia/skia.gyp:skia', | 831 '../skia/skia.gyp:skia', |
609 '../third_party/libjingle/libjingle.gyp:libjingle', | 832 '../third_party/libjingle/libjingle.gyp:libjingle', |
610 ], | 833 ], |
611 'sources': [ | 834 'sources': [ |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 '@executable_path/../../../<(mac_product_name) Framework.framewo
rk/<(mac_product_name) Framework', | 1147 '@executable_path/../../../<(mac_product_name) Framework.framewo
rk/<(mac_product_name) Framework', |
925 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' | 1148 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
926 ], | 1149 ], |
927 }, | 1150 }, |
928 ], | 1151 ], |
929 }, | 1152 }, |
930 { | 1153 { |
931 'target_name': 'infoplist_strings_tool', | 1154 'target_name': 'infoplist_strings_tool', |
932 'type': 'executable', | 1155 'type': 'executable', |
933 'dependencies': [ | 1156 'dependencies': [ |
934 'chrome_resources.gyp:chrome_strings', | 1157 'chrome_strings', |
935 '../base/base.gyp:base', | 1158 '../base/base.gyp:base', |
936 '../ui/ui.gyp:ui', | 1159 '../ui/ui.gyp:ui', |
937 ], | 1160 ], |
938 'include_dirs': [ | 1161 'include_dirs': [ |
939 '<(grit_out_dir)', | 1162 '<(grit_out_dir)', |
940 ], | 1163 ], |
941 'sources': [ | 1164 'sources': [ |
942 'tools/mac_helpers/infoplist_strings_util.mm', | 1165 'tools/mac_helpers/infoplist_strings_util.mm', |
943 ], | 1166 ], |
944 }, | 1167 }, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 'target_name': 'flush_cache', | 1204 'target_name': 'flush_cache', |
982 'type': 'executable', | 1205 'type': 'executable', |
983 'dependencies': [ | 1206 'dependencies': [ |
984 '../base/base.gyp:base', | 1207 '../base/base.gyp:base', |
985 '../base/base.gyp:test_support_base', | 1208 '../base/base.gyp:test_support_base', |
986 ], | 1209 ], |
987 'sources': [ | 1210 'sources': [ |
988 'tools/perf/flush_cache/flush_cache.cc', | 1211 'tools/perf/flush_cache/flush_cache.cc', |
989 ], | 1212 ], |
990 }, | 1213 }, |
| 1214 { |
| 1215 # Mac needs 'process_outputs_as_mac_bundle_resources' to be set, |
| 1216 # and the option is only effective when the target type is native |
| 1217 # binary. Hence we cannot build the Mac bundle resources here and |
| 1218 # the action is duplicated in chrome_dll.gypi. |
| 1219 'target_name': 'packed_extra_resources', |
| 1220 'type': 'none', |
| 1221 'variables': { |
| 1222 'repack_path': '../tools/grit/grit/format/repack.py', |
| 1223 }, |
| 1224 'dependencies': [ |
| 1225 'chrome_extra_resources', |
| 1226 ], |
| 1227 'actions': [ |
| 1228 { |
| 1229 'action_name': 'repack_resources', |
| 1230 'variables': { |
| 1231 'pak_inputs': [ |
| 1232 '<(grit_out_dir)/component_extension_resources.pak', |
| 1233 '<(grit_out_dir)/devtools_frontend_resources.pak', |
| 1234 '<(grit_out_dir)/devtools_resources.pak', |
| 1235 '<(grit_out_dir)/options_resources.pak', |
| 1236 '<(grit_out_dir)/net_internals_resources.pak', |
| 1237 '<(grit_out_dir)/quota_internals_resources.pak', |
| 1238 '<(grit_out_dir)/shared_resources.pak', |
| 1239 '<(grit_out_dir)/sync_internals_resources.pak', |
| 1240 '<(grit_out_dir)/workers_resources.pak', |
| 1241 ], |
| 1242 }, |
| 1243 'inputs': [ |
| 1244 '<(repack_path)', |
| 1245 '<@(pak_inputs)', |
| 1246 ], |
| 1247 'outputs': [ |
| 1248 '<(PRODUCT_DIR)/resources.pak', |
| 1249 ], |
| 1250 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 1251 '<@(pak_inputs)'], |
| 1252 }, |
| 1253 ] |
| 1254 } |
991 ], | 1255 ], |
992 }], # OS!="mac" | 1256 },], # OS!="mac" |
993 ['OS=="linux"', | 1257 ['OS=="linux"', |
994 { 'targets': [ | 1258 { 'targets': [ |
995 { | 1259 { |
996 'target_name': 'linux_symbols', | 1260 'target_name': 'linux_symbols', |
997 'type': 'none', | 1261 'type': 'none', |
998 'conditions': [ | 1262 'conditions': [ |
999 ['linux_dump_symbols==1', { | 1263 ['linux_dump_symbols==1', { |
1000 'actions': [ | 1264 'actions': [ |
1001 { | 1265 { |
1002 'action_name': 'dump_symbols', | 1266 'action_name': 'dump_symbols', |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 '<@(_outputs)', | 1475 '<@(_outputs)', |
1212 ], | 1476 ], |
1213 'message': 'Generating version header file: <@(_outputs)', | 1477 'message': 'Generating version header file: <@(_outputs)', |
1214 }, | 1478 }, |
1215 ], | 1479 ], |
1216 }, | 1480 }, |
1217 { | 1481 { |
1218 'target_name': 'automation', | 1482 'target_name': 'automation', |
1219 'type': 'static_library', | 1483 'type': 'static_library', |
1220 'dependencies': [ | 1484 'dependencies': [ |
1221 'chrome_resources.gyp:theme_resources', | 1485 'theme_resources', |
1222 '../base/base.gyp:test_support_base', | 1486 '../base/base.gyp:test_support_base', |
1223 '../skia/skia.gyp:skia', | 1487 '../skia/skia.gyp:skia', |
1224 '../testing/gtest.gyp:gtest', | 1488 '../testing/gtest.gyp:gtest', |
1225 ], | 1489 ], |
1226 'include_dirs': [ | 1490 'include_dirs': [ |
1227 '..', | 1491 '..', |
1228 ], | 1492 ], |
1229 'sources': [ | 1493 'sources': [ |
1230 'test/automation/automation_handle_tracker.cc', | 1494 'test/automation/automation_handle_tracker.cc', |
1231 'test/automation/automation_handle_tracker.h', | 1495 'test/automation/automation_handle_tracker.h', |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 }, | 1564 }, |
1301 }, | 1565 }, |
1302 'configurations': { | 1566 'configurations': { |
1303 'Common_Base': { | 1567 'Common_Base': { |
1304 'msvs_target_platform': 'x64', | 1568 'msvs_target_platform': 'x64', |
1305 }, | 1569 }, |
1306 }, | 1570 }, |
1307 }, | 1571 }, |
1308 ]}, # 'targets' | 1572 ]}, # 'targets' |
1309 ], # OS=="win" | 1573 ], # OS=="win" |
| 1574 ['OS != "mac"', { |
| 1575 'targets': [{ |
| 1576 'target_name': 'packed_resources', |
| 1577 'type': 'none', |
| 1578 'variables': { |
| 1579 'repack_path': '../tools/grit/grit/format/repack.py', |
| 1580 }, |
| 1581 'dependencies': [ |
| 1582 # MSVS needs the dependencies explictly named, Make is able to |
| 1583 # derive the dependencies from the output files. |
| 1584 'chrome_resources', |
| 1585 'chrome_strings', |
| 1586 'default_plugin/default_plugin.gyp:default_plugin_resources', |
| 1587 'platform_locale_settings', |
| 1588 'theme_resources', |
| 1589 '<(DEPTH)/net/net.gyp:net_resources', |
| 1590 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', |
| 1591 '<(DEPTH)/ui/ui.gyp:gfx_resources', |
| 1592 '<(DEPTH)/ui/ui.gyp:ui_resources', |
| 1593 '<(DEPTH)/ui/ui.gyp:ui_resources_large', |
| 1594 '<(DEPTH)/ui/ui.gyp:ui_resources_standard', |
| 1595 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', |
| 1596 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', |
| 1597 ], |
| 1598 'actions': [ |
| 1599 # TODO(mark): These actions are duplicated for the Mac in the |
| 1600 # chrome_dll target. Can they be unified? |
| 1601 # |
| 1602 # Mac needs 'process_outputs_as_mac_bundle_resources' to be set, |
| 1603 # and the option is only effective when the target type is native |
| 1604 # binary. Hence we cannot build the Mac bundle resources here. |
| 1605 { |
| 1606 'action_name': 'repack_chrome', |
| 1607 'variables': { |
| 1608 'pak_inputs': [ |
| 1609 '<(grit_out_dir)/browser_resources.pak', |
| 1610 '<(grit_out_dir)/common_resources.pak', |
| 1611 '<(grit_out_dir)/default_plugin_resources/default_plugin_resourc
es.pak', |
| 1612 '<(grit_out_dir)/renderer_resources.pak', |
| 1613 '<(grit_out_dir)/theme_resources.pak', |
| 1614 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
| 1615 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak', |
| 1616 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.pak', |
| 1617 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak
', |
| 1618 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', |
| 1619 ], |
| 1620 'conditions': [ |
| 1621 ['touchui==0', { |
| 1622 'pak_inputs': [ |
| 1623 '<(grit_out_dir)/theme_resources_standard.pak', |
| 1624 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_reso
urces_standard.pak', |
| 1625 ], |
| 1626 }, { # else: touchui!=0 |
| 1627 'pak_inputs': [ |
| 1628 '<(grit_out_dir)/theme_resources_large.pak', |
| 1629 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_large/ui_resourc
es_large.pak', |
| 1630 ], |
| 1631 }], |
| 1632 ], |
| 1633 }, |
| 1634 'inputs': [ |
| 1635 '<(repack_path)', |
| 1636 '<@(pak_inputs)', |
| 1637 ], |
| 1638 'outputs': [ |
| 1639 '<(INTERMEDIATE_DIR)/repack/chrome.pak', |
| 1640 ], |
| 1641 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 1642 '<@(pak_inputs)'], |
| 1643 }, |
| 1644 { |
| 1645 'action_name': 'repack_locales', |
| 1646 'variables': { |
| 1647 'conditions': [ |
| 1648 ['branding=="Chrome"', { |
| 1649 'branding_flag': ['-b', 'google_chrome',], |
| 1650 }, { # else: branding!="Chrome" |
| 1651 'branding_flag': ['-b', 'chromium',], |
| 1652 }], |
| 1653 ], |
| 1654 }, |
| 1655 'inputs': [ |
| 1656 'tools/build/repack_locales.py', |
| 1657 '<!@pymod_do_main(repack_locales -i <(branding_flag) -g <(grit_out
_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(locales))' |
| 1658 ], |
| 1659 'outputs': [ |
| 1660 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED
_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(locales))' |
| 1661 ], |
| 1662 'action': [ |
| 1663 '<@(repack_locales_cmd)', |
| 1664 '<@(branding_flag)', |
| 1665 '-g', '<(grit_out_dir)', |
| 1666 '-s', '<(SHARED_INTERMEDIATE_DIR)', |
| 1667 '-x', '<(INTERMEDIATE_DIR)', |
| 1668 '<@(locales)', |
| 1669 ], |
| 1670 }, |
| 1671 { |
| 1672 'action_name': 'repack_pseudo_locales', |
| 1673 'variables': { |
| 1674 'conditions': [ |
| 1675 ['branding=="Chrome"', { |
| 1676 'branding_flag': ['-b', 'google_chrome',], |
| 1677 }, { # else: branding!="Chrome" |
| 1678 'branding_flag': ['-b', 'chromium',], |
| 1679 }], |
| 1680 ], |
| 1681 }, |
| 1682 'inputs': [ |
| 1683 'tools/build/repack_locales.py', |
| 1684 '<!@pymod_do_main(repack_locales -i <(branding_flag) -g <(grit_o
ut_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))' |
| 1685 ], |
| 1686 'outputs': [ |
| 1687 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHAR
ED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))' |
| 1688 ], |
| 1689 'action': [ |
| 1690 '<@(repack_locales_cmd)', |
| 1691 '<@(branding_flag)', |
| 1692 '-g', '<(grit_out_dir)', |
| 1693 '-s', '<(SHARED_INTERMEDIATE_DIR)', |
| 1694 '-x', '<(INTERMEDIATE_DIR)', |
| 1695 '<@(pseudo_locales)', |
| 1696 ], |
| 1697 }, |
| 1698 ], |
| 1699 # We'll install the resource files to the product directory. |
| 1700 'copies': [ |
| 1701 { |
| 1702 'destination': '<(PRODUCT_DIR)/locales', |
| 1703 'files': [ |
| 1704 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHARED
_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(locales))' |
| 1705 ], |
| 1706 }, |
| 1707 { |
| 1708 'destination': '<(PRODUCT_DIR)/pseudo_locales', |
| 1709 'files': [ |
| 1710 '<!@pymod_do_main(repack_locales -o -g <(grit_out_dir) -s <(SHAR
ED_INTERMEDIATE_DIR) -x <(INTERMEDIATE_DIR) <(pseudo_locales))' |
| 1711 ], |
| 1712 }, |
| 1713 { |
| 1714 'destination': '<(PRODUCT_DIR)', |
| 1715 'files': [ |
| 1716 '<(INTERMEDIATE_DIR)/repack/chrome.pak' |
| 1717 ], |
| 1718 }, |
| 1719 ], |
| 1720 'conditions': [ |
| 1721 ['branding=="Chrome"', { |
| 1722 'copies': [ |
| 1723 { |
| 1724 # This location is for the Windows and Linux builds. For |
| 1725 # Windows, the chrome.release file ensures that these files are |
| 1726 # copied into the installer. Note that we have a separate |
| 1727 # section in chrome_dll.gyp to copy these files for Mac, as it |
| 1728 # needs to be dropped inside the framework. |
| 1729 'destination': '<(PRODUCT_DIR)/default_apps', |
| 1730 'files': ['<@(default_apps_list)'] |
| 1731 }, |
| 1732 ], |
| 1733 }], |
| 1734 ], |
| 1735 }], # targets |
| 1736 }], # OS != "mac" |
1310 ], # 'conditions' | 1737 ], # 'conditions' |
1311 } | 1738 } |
OLD | NEW |