| 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 { | |
| 360 'target_name': 'default_extensions', | 137 'target_name': 'default_extensions', |
| 361 'type': 'none', | 138 'type': 'none', |
| 362 'conditions': [ | 139 'conditions': [ |
| 363 ['OS=="win"', { | 140 ['OS=="win"', { |
| 364 'copies': [ | 141 'copies': [ |
| 365 { | 142 { |
| 366 'destination': '<(PRODUCT_DIR)/extensions', | 143 'destination': '<(PRODUCT_DIR)/extensions', |
| 367 'files': [ | 144 'files': [ |
| 368 'browser/extensions/default_extensions/external_extensions.json' | 145 'browser/extensions/default_extensions/external_extensions.json' |
| 369 ] | 146 ] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 380 } | 157 } |
| 381 ], | 158 ], |
| 382 }], | 159 }], |
| 383 ], | 160 ], |
| 384 }, | 161 }, |
| 385 { | 162 { |
| 386 # TODO(joi): Move debugger-related build rules to content/ | 163 # TODO(joi): Move debugger-related build rules to content/ |
| 387 'target_name': 'debugger', | 164 'target_name': 'debugger', |
| 388 'type': 'static_library', | 165 'type': 'static_library', |
| 389 'dependencies': [ | 166 'dependencies': [ |
| 390 'chrome_extra_resources', | 167 'chrome_resources.gyp:chrome_extra_resources', |
| 391 'chrome_resources', | 168 'chrome_resources.gyp:chrome_resources', |
| 392 'chrome_strings', | 169 'chrome_resources.gyp:chrome_strings', |
| 393 'theme_resources', | 170 'chrome_resources.gyp:theme_resources', |
| 394 '../base/base.gyp:base', | 171 '../base/base.gyp:base', |
| 395 '../content/content.gyp:content_browser', | 172 '../content/content.gyp:content_browser', |
| 396 '../net/net.gyp:http_server', | 173 '../net/net.gyp:http_server', |
| 397 '../net/net.gyp:net', | 174 '../net/net.gyp:net', |
| 398 '../skia/skia.gyp:skia', | 175 '../skia/skia.gyp:skia', |
| 399 '../third_party/icu/icu.gyp:icui18n', | 176 '../third_party/icu/icu.gyp:icui18n', |
| 400 '../third_party/icu/icu.gyp:icuuc', | 177 '../third_party/icu/icu.gyp:icuuc', |
| 401 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | 178 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
| 402 ], | 179 ], |
| 403 'include_dirs': [ | 180 'include_dirs': [ |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 '../content/content.gyp:content_plugin', | 222 '../content/content.gyp:content_plugin', |
| 446 ], | 223 ], |
| 447 'sources': [ | 224 'sources': [ |
| 448 'plugin/chrome_content_plugin_client.cc', | 225 'plugin/chrome_content_plugin_client.cc', |
| 449 'plugin/chrome_content_plugin_client.h', | 226 'plugin/chrome_content_plugin_client.h', |
| 450 ], | 227 ], |
| 451 'include_dirs': [ | 228 'include_dirs': [ |
| 452 '..', | 229 '..', |
| 453 '<(grit_out_dir)', | 230 '<(grit_out_dir)', |
| 454 ], | 231 ], |
| 455 }, | 232 }, |
| 456 { | 233 { |
| 457 'target_name': 'utility', | 234 'target_name': 'utility', |
| 458 'type': 'static_library', | 235 'type': 'static_library', |
| 459 'dependencies': [ | 236 'dependencies': [ |
| 460 '../base/base.gyp:base', | 237 '../base/base.gyp:base', |
| 461 '../content/content.gyp:content_utility', | 238 '../content/content.gyp:content_utility', |
| 462 '../skia/skia.gyp:skia', | 239 '../skia/skia.gyp:skia', |
| 463 ], | 240 ], |
| 464 'sources': [ | 241 'sources': [ |
| 465 'utility/chrome_content_utility_client.cc', | 242 'utility/chrome_content_utility_client.cc', |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 'hard_dependency': 1, | 591 'hard_dependency': 1, |
| 815 'export_dependent_settings': [ | 592 'export_dependent_settings': [ |
| 816 '../jingle/jingle.gyp:notifier', | 593 '../jingle/jingle.gyp:notifier', |
| 817 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n', | 594 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n', |
| 818 ], | 595 ], |
| 819 }, | 596 }, |
| 820 { | 597 { |
| 821 'target_name': 'service', | 598 'target_name': 'service', |
| 822 'type': 'static_library', | 599 'type': 'static_library', |
| 823 'dependencies': [ | 600 'dependencies': [ |
| 824 'chrome_strings', | 601 'chrome_resources.gyp:chrome_strings', |
| 825 'common', | 602 'common', |
| 826 'common_net', | 603 'common_net', |
| 827 '../base/base.gyp:base', | 604 '../base/base.gyp:base', |
| 828 '../jingle/jingle.gyp:notifier', | 605 '../jingle/jingle.gyp:notifier', |
| 829 '../net/net.gyp:net', | 606 '../net/net.gyp:net', |
| 830 '../printing/printing.gyp:printing', | 607 '../printing/printing.gyp:printing', |
| 831 '../skia/skia.gyp:skia', | 608 '../skia/skia.gyp:skia', |
| 832 '../third_party/libjingle/libjingle.gyp:libjingle', | 609 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 833 ], | 610 ], |
| 834 'sources': [ | 611 'sources': [ |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 '@executable_path/../../../<(mac_product_name) Framework.framewo
rk/<(mac_product_name) Framework', | 924 '@executable_path/../../../<(mac_product_name) Framework.framewo
rk/<(mac_product_name) Framework', |
| 1148 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' | 925 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 1149 ], | 926 ], |
| 1150 }, | 927 }, |
| 1151 ], | 928 ], |
| 1152 }, | 929 }, |
| 1153 { | 930 { |
| 1154 'target_name': 'infoplist_strings_tool', | 931 'target_name': 'infoplist_strings_tool', |
| 1155 'type': 'executable', | 932 'type': 'executable', |
| 1156 'dependencies': [ | 933 'dependencies': [ |
| 1157 'chrome_strings', | 934 'chrome_resources.gyp:chrome_strings', |
| 1158 '../base/base.gyp:base', | 935 '../base/base.gyp:base', |
| 1159 '../ui/ui.gyp:ui', | 936 '../ui/ui.gyp:ui', |
| 1160 ], | 937 ], |
| 1161 'include_dirs': [ | 938 'include_dirs': [ |
| 1162 '<(grit_out_dir)', | 939 '<(grit_out_dir)', |
| 1163 ], | 940 ], |
| 1164 'sources': [ | 941 'sources': [ |
| 1165 'tools/mac_helpers/infoplist_strings_util.mm', | 942 'tools/mac_helpers/infoplist_strings_util.mm', |
| 1166 ], | 943 ], |
| 1167 }, | 944 }, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 'target_name': 'flush_cache', | 981 'target_name': 'flush_cache', |
| 1205 'type': 'executable', | 982 'type': 'executable', |
| 1206 'dependencies': [ | 983 'dependencies': [ |
| 1207 '../base/base.gyp:base', | 984 '../base/base.gyp:base', |
| 1208 '../base/base.gyp:test_support_base', | 985 '../base/base.gyp:test_support_base', |
| 1209 ], | 986 ], |
| 1210 'sources': [ | 987 'sources': [ |
| 1211 'tools/perf/flush_cache/flush_cache.cc', | 988 'tools/perf/flush_cache/flush_cache.cc', |
| 1212 ], | 989 ], |
| 1213 }, | 990 }, |
| 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 } | |
| 1255 ], | 991 ], |
| 1256 },], # OS!="mac" | 992 }], # OS!="mac" |
| 1257 ['OS=="linux"', | 993 ['OS=="linux"', |
| 1258 { 'targets': [ | 994 { 'targets': [ |
| 1259 { | 995 { |
| 1260 'target_name': 'linux_symbols', | 996 'target_name': 'linux_symbols', |
| 1261 'type': 'none', | 997 'type': 'none', |
| 1262 'conditions': [ | 998 'conditions': [ |
| 1263 ['linux_dump_symbols==1', { | 999 ['linux_dump_symbols==1', { |
| 1264 'actions': [ | 1000 'actions': [ |
| 1265 { | 1001 { |
| 1266 'action_name': 'dump_symbols', | 1002 'action_name': 'dump_symbols', |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 '<@(_outputs)', | 1211 '<@(_outputs)', |
| 1476 ], | 1212 ], |
| 1477 'message': 'Generating version header file: <@(_outputs)', | 1213 'message': 'Generating version header file: <@(_outputs)', |
| 1478 }, | 1214 }, |
| 1479 ], | 1215 ], |
| 1480 }, | 1216 }, |
| 1481 { | 1217 { |
| 1482 'target_name': 'automation', | 1218 'target_name': 'automation', |
| 1483 'type': 'static_library', | 1219 'type': 'static_library', |
| 1484 'dependencies': [ | 1220 'dependencies': [ |
| 1485 'theme_resources', | 1221 'chrome_resources.gyp:theme_resources', |
| 1486 '../base/base.gyp:test_support_base', | 1222 '../base/base.gyp:test_support_base', |
| 1487 '../skia/skia.gyp:skia', | 1223 '../skia/skia.gyp:skia', |
| 1488 '../testing/gtest.gyp:gtest', | 1224 '../testing/gtest.gyp:gtest', |
| 1489 ], | 1225 ], |
| 1490 'include_dirs': [ | 1226 'include_dirs': [ |
| 1491 '..', | 1227 '..', |
| 1492 ], | 1228 ], |
| 1493 'sources': [ | 1229 'sources': [ |
| 1494 'test/automation/automation_handle_tracker.cc', | 1230 'test/automation/automation_handle_tracker.cc', |
| 1495 'test/automation/automation_handle_tracker.h', | 1231 'test/automation/automation_handle_tracker.h', |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 }, | 1300 }, |
| 1565 }, | 1301 }, |
| 1566 'configurations': { | 1302 'configurations': { |
| 1567 'Common_Base': { | 1303 'Common_Base': { |
| 1568 'msvs_target_platform': 'x64', | 1304 'msvs_target_platform': 'x64', |
| 1569 }, | 1305 }, |
| 1570 }, | 1306 }, |
| 1571 }, | 1307 }, |
| 1572 ]}, # 'targets' | 1308 ]}, # 'targets' |
| 1573 ], # OS=="win" | 1309 ], # 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" | |
| 1737 ], # 'conditions' | 1310 ], # 'conditions' |
| 1738 } | 1311 } |
| OLD | NEW |