OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 'xul_sdk_dir': '../third_party/xulrunner-sdk/<(OS)', |
| 9 |
| 10 # Keep the archive builder happy. |
| 11 'chrome_personalization%': 1, |
| 12 'use_syncapi_stub%': 0, |
| 13 |
| 14 # Deps info. |
| 15 'xul_include_directories': [ |
| 16 # TODO(slightlyoff): pare these down. This makes it too easy to |
| 17 # regress to using unfrozen FF interfaces. |
| 18 '<(xul_sdk_dir)/include', |
| 19 '<(xul_sdk_dir)/include/accessibility', |
| 20 '<(xul_sdk_dir)/include/alerts', |
| 21 '<(xul_sdk_dir)/include/appcomps', |
| 22 '<(xul_sdk_dir)/include/appshell', |
| 23 '<(xul_sdk_dir)/include/autocomplete', |
| 24 '<(xul_sdk_dir)/include/autoconfig', |
| 25 '<(xul_sdk_dir)/include/ax_common', |
| 26 '<(xul_sdk_dir)/include/browser', |
| 27 '<(xul_sdk_dir)/include/cairo', |
| 28 '<(xul_sdk_dir)/include/caps', |
| 29 '<(xul_sdk_dir)/include/chardet', |
| 30 '<(xul_sdk_dir)/include/chrome', |
| 31 '<(xul_sdk_dir)/include/commandhandler', |
| 32 '<(xul_sdk_dir)/include/composer', |
| 33 '<(xul_sdk_dir)/include/content', |
| 34 '<(xul_sdk_dir)/include/contentprefs', |
| 35 '<(xul_sdk_dir)/include/cookie', |
| 36 '<(xul_sdk_dir)/include/crashreporter', |
| 37 '<(xul_sdk_dir)/include/docshell', |
| 38 '<(xul_sdk_dir)/include/dom', |
| 39 '<(xul_sdk_dir)/include/downloads', |
| 40 '<(xul_sdk_dir)/include/editor', |
| 41 '<(xul_sdk_dir)/include/embed_base', |
| 42 '<(xul_sdk_dir)/include/embedcomponents', |
| 43 '<(xul_sdk_dir)/include/expat', |
| 44 '<(xul_sdk_dir)/include/extensions', |
| 45 '<(xul_sdk_dir)/include/exthandler', |
| 46 '<(xul_sdk_dir)/include/exthelper', |
| 47 '<(xul_sdk_dir)/include/fastfind', |
| 48 '<(xul_sdk_dir)/include/feeds', |
| 49 '<(xul_sdk_dir)/include/find', |
| 50 '<(xul_sdk_dir)/include/gfx', |
| 51 '<(xul_sdk_dir)/include/htmlparser', |
| 52 '<(xul_sdk_dir)/include/imgicon', |
| 53 '<(xul_sdk_dir)/include/imglib2', |
| 54 '<(xul_sdk_dir)/include/inspector', |
| 55 '<(xul_sdk_dir)/include/intl', |
| 56 '<(xul_sdk_dir)/include/jar', |
| 57 '<(xul_sdk_dir)/include/java', |
| 58 '<(xul_sdk_dir)/include/jpeg', |
| 59 '<(xul_sdk_dir)/include/js', |
| 60 '<(xul_sdk_dir)/include/jsdebug', |
| 61 '<(xul_sdk_dir)/include/jsurl', |
| 62 '<(xul_sdk_dir)/include/layout', |
| 63 '<(xul_sdk_dir)/include/lcms', |
| 64 '<(xul_sdk_dir)/include/libbz2', |
| 65 '<(xul_sdk_dir)/include/libmar', |
| 66 '<(xul_sdk_dir)/include/libpixman', |
| 67 '<(xul_sdk_dir)/include/libreg', |
| 68 '<(xul_sdk_dir)/include/liveconnect', |
| 69 '<(xul_sdk_dir)/include/locale', |
| 70 '<(xul_sdk_dir)/include/loginmgr', |
| 71 '<(xul_sdk_dir)/include/lwbrk', |
| 72 '<(xul_sdk_dir)/include/mimetype', |
| 73 '<(xul_sdk_dir)/include/morkreader', |
| 74 '<(xul_sdk_dir)/include/necko', |
| 75 '<(xul_sdk_dir)/include/nkcache', |
| 76 '<(xul_sdk_dir)/include/nspr', |
| 77 '<(xul_sdk_dir)/include/nss', |
| 78 '<(xul_sdk_dir)/include/oji', |
| 79 '<(xul_sdk_dir)/include/parentalcontrols', |
| 80 '<(xul_sdk_dir)/include/pipboot', |
| 81 '<(xul_sdk_dir)/include/pipnss', |
| 82 '<(xul_sdk_dir)/include/pippki', |
| 83 '<(xul_sdk_dir)/include/places', |
| 84 '<(xul_sdk_dir)/include/plugin', |
| 85 '<(xul_sdk_dir)/include/png', |
| 86 '<(xul_sdk_dir)/include/pref', |
| 87 '<(xul_sdk_dir)/include/prefetch', |
| 88 '<(xul_sdk_dir)/include/profdirserviceprovider', |
| 89 '<(xul_sdk_dir)/include/profile', |
| 90 '<(xul_sdk_dir)/include/rdf', |
| 91 '<(xul_sdk_dir)/include/rdfutil', |
| 92 '<(xul_sdk_dir)/include/satchel', |
| 93 '<(xul_sdk_dir)/include/shistory', |
| 94 '<(xul_sdk_dir)/include/simple', |
| 95 '<(xul_sdk_dir)/include/spellchecker', |
| 96 '<(xul_sdk_dir)/include/sqlite3', |
| 97 '<(xul_sdk_dir)/include/storage', |
| 98 '<(xul_sdk_dir)/include/string', |
| 99 '<(xul_sdk_dir)/include/thebes', |
| 100 '<(xul_sdk_dir)/include/toolkitcomps', |
| 101 '<(xul_sdk_dir)/include/txmgr', |
| 102 '<(xul_sdk_dir)/include/txtsvc', |
| 103 '<(xul_sdk_dir)/include/uconv', |
| 104 '<(xul_sdk_dir)/include/ucvcn', |
| 105 '<(xul_sdk_dir)/include/ucvibm', |
| 106 '<(xul_sdk_dir)/include/ucvja', |
| 107 '<(xul_sdk_dir)/include/ucvko', |
| 108 '<(xul_sdk_dir)/include/ucvlatin', |
| 109 '<(xul_sdk_dir)/include/ucvmath', |
| 110 '<(xul_sdk_dir)/include/ucvtw', |
| 111 '<(xul_sdk_dir)/include/ucvtw2', |
| 112 '<(xul_sdk_dir)/include/unicharutil', |
| 113 '<(xul_sdk_dir)/include/update', |
| 114 '<(xul_sdk_dir)/include/uriloader', |
| 115 '<(xul_sdk_dir)/include/urlformatter', |
| 116 '<(xul_sdk_dir)/include/util', |
| 117 '<(xul_sdk_dir)/include/view', |
| 118 '<(xul_sdk_dir)/include/webbrowserpersist', |
| 119 '<(xul_sdk_dir)/include/webbrwsr', |
| 120 '<(xul_sdk_dir)/include/webshell', |
| 121 '<(xul_sdk_dir)/include/widget', |
| 122 '<(xul_sdk_dir)/include/windowwatcher', |
| 123 '<(xul_sdk_dir)/include/xml', |
| 124 '<(xul_sdk_dir)/include/xml-rpc', |
| 125 '<(xul_sdk_dir)/include/xpcom', |
| 126 '<(xul_sdk_dir)/include/xpconnect', |
| 127 '<(xul_sdk_dir)/include/xpinstall', |
| 128 '<(xul_sdk_dir)/include/xulapp', |
| 129 '<(xul_sdk_dir)/include/xuldoc', |
| 130 '<(xul_sdk_dir)/include/xulrunner', |
| 131 '<(xul_sdk_dir)/include/xultmpl', |
| 132 '<(xul_sdk_dir)/include/zipwriter', |
| 133 '<(xul_sdk_dir)/include/zlib', |
| 134 '<(xul_sdk_dir)/sdk/include', |
| 135 ], |
| 136 }, |
| 137 'includes': [ |
| 138 '../build/common.gypi', |
| 139 ], |
| 140 'target_defaults': { |
| 141 'dependencies': [ |
| 142 '../chrome/chrome.gyp:chrome_resources', |
| 143 '../chrome/chrome.gyp:chrome_strings', |
| 144 '../chrome/chrome.gyp:theme_resources', |
| 145 '../skia/skia.gyp:skia', |
| 146 '../third_party/npapi/npapi.gyp:npapi', |
| 147 ], |
| 148 'include_dirs': [ |
| 149 # all our own includes are relative to src/ |
| 150 '..', |
| 151 ], |
| 152 }, |
| 153 'targets': [ |
| 154 { |
| 155 # TODO(slightlyoff): de-win23-ify |
| 156 'target_name': 'xulrunner_sdk', |
| 157 'type': 'none', |
| 158 'conditions': [ |
| 159 ['OS=="win"', { |
| 160 'direct_dependent_settings': { |
| 161 'include_dirs': [ |
| 162 '<@(xul_include_directories)', |
| 163 ], |
| 164 'libraries': [ |
| 165 '../third_party/xulrunner-sdk/win/lib/xpcomglue_s.lib', |
| 166 '../third_party/xulrunner-sdk/win/lib/xpcom.lib', |
| 167 '../third_party/xulrunner-sdk/win/lib/nspr4.lib', |
| 168 ], |
| 169 }, |
| 170 },], |
| 171 ], |
| 172 }, |
| 173 { |
| 174 # build the ICU stubs |
| 175 'target_name': 'icu_stubs', |
| 176 'type': 'static_library', |
| 177 'dependencies': [ |
| 178 '../base/base.gyp:base', |
| 179 ], |
| 180 'sources': [ |
| 181 'icu_stubs.cc' |
| 182 ], |
| 183 }, |
| 184 { |
| 185 # TODO(slightlyoff): de-win32-ify |
| 186 # |
| 187 # build the base_noicu.lib. |
| 188 'target_name': 'base_noicu', |
| 189 'type': 'none', |
| 190 'dependencies': [ |
| 191 '../base/base.gyp:base', |
| 192 'icu_stubs', |
| 193 ], |
| 194 'actions': [ |
| 195 { |
| 196 'action_name': 'combine_libs', |
| 197 'msvs_cygwin_shell': 0, |
| 198 'inputs': [ |
| 199 '<(PRODUCT_DIR)/lib/base.lib', |
| 200 '<(PRODUCT_DIR)/lib/icu_stubs.lib', |
| 201 ], |
| 202 'outputs': [ |
| 203 '<(PRODUCT_DIR)/lib/base_noicu.lib', |
| 204 ], |
| 205 'action': [ |
| 206 'python', |
| 207 'combine_libs.py', |
| 208 '-o <(_outputs)', |
| 209 '-r (icu_|_icu.obj)', |
| 210 '<@(_inputs)'], |
| 211 }, |
| 212 ], |
| 213 'direct_dependent_settings': { |
| 214 # linker_settings |
| 215 'libraries': [ |
| 216 '<(PRODUCT_DIR)/lib/base_noicu.lib', |
| 217 ], |
| 218 }, |
| 219 }, |
| 220 { |
| 221 'target_name': 'chrome_frame_unittests', |
| 222 'type': 'executable', |
| 223 'dependencies': [ |
| 224 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 225 '../chrome/chrome.gyp:common', |
| 226 '../chrome/chrome.gyp:utility', |
| 227 '../testing/gmock.gyp:gmock', |
| 228 '../testing/gtest.gyp:gtest', |
| 229 'base_noicu', |
| 230 'icu_stubs', |
| 231 'chrome_frame_npapi', |
| 232 'chrome_frame_strings', |
| 233 'xulrunner_sdk', |
| 234 ], |
| 235 'sources': [ |
| 236 'chrome_frame_npapi_unittest.cc', |
| 237 'chrome_frame_unittest_main.cc', |
| 238 'chrome_launcher_unittest.cc', |
| 239 'unittest_precompile.h', |
| 240 'unittest_precompile.cc', |
| 241 'urlmon_upload_data_stream.cc', |
| 242 'urlmon_upload_data_stream_unittest.cc', |
| 243 'chrome_frame_histograms.h', |
| 244 'chrome_frame_histograms.cc', |
| 245 ], |
| 246 'include_dirs': [ |
| 247 # To allow including "chrome_tab.h" |
| 248 '<(INTERMEDIATE_DIR)', |
| 249 ], |
| 250 'resource_include_dirs': [ |
| 251 '<(INTERMEDIATE_DIR)', |
| 252 ], |
| 253 'conditions': [ |
| 254 ['OS=="win"', { |
| 255 'msvs_settings': { |
| 256 'VCLinkerTool': { |
| 257 'DelayLoadDLLs': ['xpcom.dll', 'nspr4.dll'], |
| 258 }, |
| 259 }, |
| 260 'sources': [ |
| 261 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/chrome_frame_resources.rc', |
| 262 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/chrome_frame_strings.rc', |
| 263 ], |
| 264 'dependencies': [ |
| 265 # TODO(slightlyoff): Get automation targets working on OS X |
| 266 '../chrome/chrome.gyp:automation', |
| 267 '../chrome/installer/installer.gyp:installer_util', |
| 268 '../google_update/google_update.gyp:google_update', |
| 269 ] |
| 270 }], |
| 271 ], |
| 272 }, |
| 273 { |
| 274 'target_name': 'chrome_frame_tests', |
| 275 'type': 'executable', |
| 276 'dependencies': [ |
| 277 # 'base_noicu', |
| 278 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 279 '../chrome/chrome.gyp:common', |
| 280 '../chrome/chrome.gyp:utility', |
| 281 '../testing/gmock.gyp:gmock', |
| 282 '../testing/gtest.gyp:gtest', |
| 283 '../third_party/libxml/libxml.gyp:libxml', |
| 284 '../third_party/libxslt/libxslt.gyp:libxslt', |
| 285 'chrome_frame_strings', |
| 286 'chrome_frame_npapi', |
| 287 # 'npchrome_tab', |
| 288 'xulrunner_sdk', |
| 289 ], |
| 290 'sources': [ |
| 291 '../base/test_suite.h', |
| 292 'test/chrome_frame_test_utils.cc', |
| 293 'test/chrome_frame_test_utils.h', |
| 294 'test/chrome_frame_automation_mock.cc', |
| 295 'test/chrome_frame_automation_mock.h', |
| 296 'test/chrome_frame_unittests.cc', |
| 297 'test/chrome_frame_unittests.h', |
| 298 'test/com_message_event_unittest.cc', |
| 299 'test/function_stub_unittest.cc', |
| 300 'test/html_util_unittests.cc', |
| 301 'test/http_server.cc', |
| 302 'test/http_server.h', |
| 303 'test/icu_stubs_unittests.cc', |
| 304 'test/run_all_unittests.cc', |
| 305 'test/test_server.cc', |
| 306 'test/test_server.h', |
| 307 'test/test_server_test.cc', |
| 308 'test/util_unittests.cc', |
| 309 'chrome_frame_automation.cc', |
| 310 'chrome_tab.h', |
| 311 'chrome_tab.idl', |
| 312 'com_message_event.cc', |
| 313 'html_utils.cc', |
| 314 'sync_msg_reply_dispatcher.cc', |
| 315 'sync_msg_reply_dispatcher.h', |
| 316 'test_utils.cc', |
| 317 'test_utils.h', |
| 318 'utils.cc', |
| 319 'utils.h', |
| 320 'chrome_frame_histograms.h', |
| 321 'chrome_frame_histograms.cc', |
| 322 ], |
| 323 'include_dirs': [ |
| 324 '<@(xul_include_directories)', |
| 325 '../chrome/third_party/wtl/include', |
| 326 # To allow including "chrome_tab.h" |
| 327 '<(INTERMEDIATE_DIR)', |
| 328 ], |
| 329 'resource_include_dirs': [ |
| 330 '<(INTERMEDIATE_DIR)', |
| 331 ], |
| 332 'conditions': [ |
| 333 ['OS=="win"', { |
| 334 'msvs_settings': { |
| 335 'VCLinkerTool': { |
| 336 'DelayLoadDLLs': ['xpcom.dll', 'nspr4.dll'], |
| 337 }, |
| 338 }, |
| 339 'sources': [ |
| 340 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/chrome_frame_resources.rc', |
| 341 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/chrome_frame_strings.rc', |
| 342 ], |
| 343 'dependencies': [ |
| 344 '../chrome/chrome.gyp:automation', |
| 345 '../chrome/installer/installer.gyp:installer_util', |
| 346 '../google_update/google_update.gyp:google_update', |
| 347 ] |
| 348 }], |
| 349 ], |
| 350 }, |
| 351 { |
| 352 'target_name': 'chrome_frame_perftests', |
| 353 'type': 'executable', |
| 354 'dependencies': [ |
| 355 '../base/base.gyp:base_gfx', |
| 356 '../base/base.gyp:test_support_base', |
| 357 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 358 '../chrome/chrome.gyp:common', |
| 359 '../chrome/chrome.gyp:utility', |
| 360 '../testing/gmock.gyp:gmock', |
| 361 '../testing/gtest.gyp:gtest', |
| 362 '../third_party/libxml/libxml.gyp:libxml', |
| 363 '../third_party/libxslt/libxslt.gyp:libxslt', |
| 364 'chrome_frame_strings', |
| 365 'xulrunner_sdk', |
| 366 ], |
| 367 'sources': [ |
| 368 '../base/perf_test_suite.h', |
| 369 '../base/perftimer.cc', |
| 370 '../base/test_file_util.h', |
| 371 '../chrome/test/chrome_process_util.cc', |
| 372 '../chrome/test/chrome_process_util.h', |
| 373 '../chrome/test/ui/ui_test.cc', |
| 374 'chrome_tab.h', |
| 375 'chrome_tab.idl', |
| 376 'html_utils.cc', |
| 377 'test/perf/chrome_frame_perftest.cc', |
| 378 'test/perf/chrome_frame_perftest.h', |
| 379 'test/perf/run_all.cc', |
| 380 'test/perf/silverlight.cc', |
| 381 'test_utils.cc', |
| 382 'test_utils.h', |
| 383 'utils.cc', |
| 384 'utils.h', |
| 385 ], |
| 386 'include_dirs': [ |
| 387 '<@(xul_include_directories)', |
| 388 '../chrome/third_party/wtl/include', |
| 389 # To allow including "chrome_tab.h" |
| 390 '<(INTERMEDIATE_DIR)', |
| 391 ], |
| 392 'conditions': [ |
| 393 ['OS=="win"', { |
| 394 'dependencies': [ |
| 395 '../chrome/chrome.gyp:automation', |
| 396 '../breakpad/breakpad.gyp:breakpad_handler', |
| 397 '../chrome/installer/installer.gyp:installer_util', |
| 398 '../google_update/google_update.gyp:google_update', |
| 399 '../chrome/installer/installer.gyp:installer_util', |
| 400 ], |
| 401 'sources': [ |
| 402 '../chrome/test/perf/mem_usage_win.cc', |
| 403 '../chrome/test/chrome_process_util_win.cc', |
| 404 '../base/test_file_util_win.cc', |
| 405 ] |
| 406 }], |
| 407 ], |
| 408 }, |
| 409 |
| 410 { |
| 411 'target_name': 'chrome_frame_net_tests', |
| 412 'type': 'executable', |
| 413 'dependencies': [ |
| 414 '../base/base.gyp:test_support_base', |
| 415 '../chrome/chrome.gyp:browser', |
| 416 '../chrome/chrome.gyp:chrome_dll_version', |
| 417 '../chrome/chrome.gyp:chrome_resources', |
| 418 '../chrome/chrome.gyp:debugger', |
| 419 '../chrome/chrome.gyp:renderer', |
| 420 '../chrome/chrome.gyp:syncapi', |
| 421 '../skia/skia.gyp:skia', |
| 422 '../testing/gtest.gyp:gtest', |
| 423 '../third_party/icu/icu.gyp:icui18n', |
| 424 '../third_party/icu/icu.gyp:icuuc', |
| 425 'chrome_frame_npapi', |
| 426 ], |
| 427 'sources': [ |
| 428 '../net/url_request/url_request_unittest.cc', |
| 429 '../net/url_request/url_request_unittest.h', |
| 430 'test/chrome_frame_test_utils.cc', |
| 431 'test/chrome_frame_test_utils.h', |
| 432 'test/test_server.cc', |
| 433 'test/test_server.h', |
| 434 'test/net/dialog_watchdog.cc', |
| 435 'test/net/dialog_watchdog.h', |
| 436 'test/net/fake_external_tab.cc', |
| 437 'test/net/fake_external_tab.h', |
| 438 'test/net/process_singleton_subclass.cc', |
| 439 'test/net/process_singleton_subclass.h', |
| 440 'test/net/test_automation_provider.cc', |
| 441 'test/net/test_automation_provider.h', |
| 442 'test/net/test_automation_resource_message_filter.cc', |
| 443 'test/net/test_automation_resource_message_filter.h', |
| 444 ], |
| 445 'include_dirs': [ |
| 446 # To allow including "chrome_tab.h" |
| 447 '<(INTERMEDIATE_DIR)', |
| 448 ], |
| 449 'conditions': [ |
| 450 ['OS=="win"', { |
| 451 'dependencies': [ |
| 452 '../chrome/chrome.gyp:automation', |
| 453 '../breakpad/breakpad.gyp:breakpad_handler', |
| 454 '../chrome/installer/installer.gyp:installer_util', |
| 455 '../google_update/google_update.gyp:google_update', |
| 456 '../chrome/installer/installer.gyp:installer_util', |
| 457 ] |
| 458 }], |
| 459 ], |
| 460 }, |
| 461 |
| 462 { |
| 463 'target_name': 'chrome_frame_npapi', |
| 464 'type': 'static_library', |
| 465 'dependencies': [ |
| 466 'chrome_frame_strings', |
| 467 '../chrome/chrome.gyp:common', |
| 468 'xulrunner_sdk', |
| 469 ], |
| 470 'sources': [ |
| 471 'chrome_frame_automation.cc', |
| 472 'chrome_frame_automation.h', |
| 473 'chrome_frame_delegate.cc', |
| 474 'chrome_frame_delegate.h', |
| 475 'chrome_frame_plugin.h', |
| 476 'chrome_frame_npapi.cc', |
| 477 'chrome_frame_npapi.h', |
| 478 'chrome_launcher.cc', |
| 479 'chrome_launcher.h', |
| 480 'html_utils.cc', |
| 481 'html_utils.h', |
| 482 'np_browser_functions.cc', |
| 483 'np_browser_functions.h', |
| 484 'np_event_listener.cc', |
| 485 'np_event_listener.h', |
| 486 'np_proxy_service.cc', |
| 487 'np_proxy_service.h', |
| 488 'npapi_url_request.cc', |
| 489 'npapi_url_request.h', |
| 490 'ns_associate_iid_win.h', |
| 491 'ns_isupports_impl.h', |
| 492 'plugin_url_request.cc', |
| 493 'plugin_url_request.h', |
| 494 'scoped_ns_ptr_win.h', |
| 495 'sync_msg_reply_dispatcher.cc', |
| 496 'sync_msg_reply_dispatcher.h', |
| 497 'utils.cc', |
| 498 'utils.h', |
| 499 ], |
| 500 }, |
| 501 { |
| 502 'target_name': 'chrome_launcher', |
| 503 'type': 'executable', |
| 504 'msvs_guid': 'B7E540C1-49D9-4350-ACBC-FB8306316D16', |
| 505 'dependencies': [], |
| 506 'sources': [ |
| 507 'chrome_launcher_main.cc', |
| 508 ], |
| 509 'msvs_settings': { |
| 510 'VCLinkerTool': { |
| 511 'OutputFile': |
| 512 '..\\chrome\\$(ConfigurationName)\\servers\\$(ProjectName).exe', |
| 513 # Set /SUBSYSTEM:WINDOWS since this is not a command-line program. |
| 514 'SubSystem': '2', |
| 515 # We're going for minimal size, so no standard library (in release |
| 516 # builds). |
| 517 'IgnoreAllDefaultLibraries': "true", |
| 518 }, |
| 519 'VCCLCompilerTool': { |
| 520 # Requires standard library, so disable it. |
| 521 'BufferSecurityCheck': "false", |
| 522 }, |
| 523 }, |
| 524 'configurations': { |
| 525 # Bring back the standard library in debug buidls. |
| 526 'Debug': { |
| 527 'msvs_settings': { |
| 528 'VCLinkerTool': { |
| 529 'IgnoreAllDefaultLibraries': "false", |
| 530 }, |
| 531 }, |
| 532 }, |
| 533 }, |
| 534 }, |
| 535 { |
| 536 'target_name': 'chrome_frame_strings', |
| 537 'type': 'none', |
| 538 'rules': [ |
| 539 { |
| 540 'rule_name': 'grit', |
| 541 'extension': 'grd', |
| 542 'inputs': [ |
| 543 '../tools/grit/grit.py', |
| 544 ], |
| 545 'variables': { |
| 546 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab', |
| 547 }, |
| 548 'outputs': [ |
| 549 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/grit/<(RULE_INPUT_ROOT).h', |
| 550 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/<(RULE_INPUT_ROOT).pak', |
| 551 ], |
| 552 'action': ['python', '<@(_inputs)', '-i', |
| 553 '<(RULE_INPUT_PATH)', |
| 554 'build', '-o', '<(grit_out_dir)' |
| 555 ], |
| 556 'message': 'Generating resources from <(RULE_INPUT_PATH)', |
| 557 }, |
| 558 ], |
| 559 'sources': [ |
| 560 # Localizable resources. |
| 561 'resources/chrome_frame_strings.grd', |
| 562 'resources/chrome_frame_resources.grd', |
| 563 ], |
| 564 'direct_dependent_settings': { |
| 565 'include_dirs': [ |
| 566 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab', |
| 567 ], |
| 568 }, |
| 569 'conditions': [ |
| 570 ['OS=="win"', { |
| 571 'dependencies': ['../build/win/system.gyp:cygwin'], |
| 572 }], |
| 573 ], |
| 574 }, |
| 575 { |
| 576 'target_name': 'npchrome_tab', |
| 577 'type': 'shared_library', |
| 578 'msvs_guid': 'E3DE7E63-D3B6-4A9F-BCC4-5C8169E9C9F2', |
| 579 'dependencies': [ |
| 580 'base_noicu', |
| 581 'chrome_frame_npapi', |
| 582 'chrome_frame_strings', |
| 583 'chrome_launcher', |
| 584 'xulrunner_sdk', |
| 585 '../chrome/chrome.gyp:common', |
| 586 '../chrome/chrome.gyp:utility', |
| 587 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 588 # FIXME(slightlyoff): |
| 589 # gigantic hack to get these to build from main Chrome sln. |
| 590 'chrome_frame_perftests', |
| 591 'chrome_frame_tests', |
| 592 'chrome_frame_unittests', |
| 593 'chrome_frame_net_tests', |
| 594 ], |
| 595 'sources': [ |
| 596 'bho.cc', |
| 597 'bho.h', |
| 598 'bho.rgs', |
| 599 'chrome_active_document.bmp', |
| 600 'chrome_active_document.cc', |
| 601 'chrome_active_document.h', |
| 602 'chrome_active_document.rgs', |
| 603 'chrome_frame_activex.cc', |
| 604 'chrome_frame_activex.h', |
| 605 'chrome_frame_activex_base.h', |
| 606 'chrome_frame_activex.rgs', |
| 607 'chrome_frame_npapi.rgs', |
| 608 'chrome_frame_npapi_entrypoints.cc', |
| 609 'chrome_protocol.cc', |
| 610 'chrome_protocol.h', |
| 611 'chrome_protocol.rgs', |
| 612 'chrome_tab.cc', |
| 613 'chrome_tab.def', |
| 614 'chrome_tab.h', |
| 615 'chrome_tab.idl', |
| 616 # FIXME(slightlyoff): For chrome_tab.tlb. Giant hack until we can |
| 617 # figure out something more gyp-ish. |
| 618 'resources/tlb_resource.rc', |
| 619 'chrome_tab.rgs', |
| 620 'chrome_tab_version.rc.version', |
| 621 'com_message_event.cc', |
| 622 'com_message_event.h', |
| 623 'com_type_info_holder.cc', |
| 624 'com_type_info_holder.h', |
| 625 'crash_report.cc', |
| 626 'crash_report.h', |
| 627 'ff_30_privilege_check.cc', |
| 628 'ff_privilege_check.h', |
| 629 'find_dialog.cc', |
| 630 'find_dialog.h', |
| 631 'function_stub.h', |
| 632 'icu_stubs.cc', |
| 633 'iids.cc', |
| 634 'in_place_menu.h', |
| 635 'ole_document_impl.h', |
| 636 'protocol_sink_wrap.cc', |
| 637 'protocol_sink_wrap.h', |
| 638 'resource.h', |
| 639 'script_security_manager.h', |
| 640 'sync_msg_reply_dispatcher.cc', |
| 641 'sync_msg_reply_dispatcher.h', |
| 642 'extra_system_apis.h', |
| 643 'urlmon_url_request.cc', |
| 644 'urlmon_url_request.h', |
| 645 'urlmon_upload_data_stream.cc', |
| 646 'urlmon_upload_data_stream.h', |
| 647 'vectored_handler-impl.h', |
| 648 'vectored_handler.h', |
| 649 'vtable_patch_manager.cc', |
| 650 'vtable_patch_manager.h', |
| 651 'chrome_frame_histograms.h', |
| 652 'chrome_frame_histograms.cc', |
| 653 ], |
| 654 'include_dirs': [ |
| 655 # To allow including "chrome_tab.h" |
| 656 '<(INTERMEDIATE_DIR)', |
| 657 '<(INTERMEDIATE_DIR)/../npchrome_tab', |
| 658 ], |
| 659 'conditions': [ |
| 660 ['OS=="win"', { |
| 661 # NOTE(slightlyoff): |
| 662 # this is a fix for the include dirs length limit on the resource |
| 663 # compiler, tickled by the xul_include_dirs variable |
| 664 'resource_include_dirs': [ |
| 665 '<(INTERMEDIATE_DIR)' |
| 666 ], |
| 667 'sources': [ |
| 668 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/chrome_frame_resources.rc', |
| 669 '<(SHARED_INTERMEDIATE_DIR)/ie_alt_tab/chrome_frame_strings.rc', |
| 670 ], |
| 671 'dependencies': [ |
| 672 '../breakpad/breakpad.gyp:breakpad_handler', |
| 673 '../chrome/chrome.gyp:automation', |
| 674 # Make the archive build happy. |
| 675 '../chrome/chrome.gyp:syncapi', |
| 676 # Installer |
| 677 '../chrome/installer/installer.gyp:installer_util', |
| 678 '../google_update/google_update.gyp:google_update', |
| 679 ], |
| 680 'msvs_settings': { |
| 681 'VCLinkerTool': { |
| 682 'OutputFile': |
| 683 '..\\chrome\\$(ConfigurationName)\\servers\\$(ProjectName).dll
', |
| 684 'DelayLoadDLLs': ['xpcom.dll', 'nspr4.dll'], |
| 685 'BaseAddress': '0x33000000', |
| 686 # Set /SUBSYSTEM:WINDOWS (for consistency). |
| 687 'SubSystem': '2', |
| 688 }, |
| 689 }, |
| 690 }], |
| 691 ], |
| 692 'rules': [ |
| 693 # Borrowed from chrome.gyp:chrome_dll_version, branding references |
| 694 # removed |
| 695 { |
| 696 'rule_name': 'version', |
| 697 'extension': 'version', |
| 698 'variables': { |
| 699 'version_py': '../chrome/tools/build/version.py', |
| 700 'version_path': '../chrome/VERSION', |
| 701 'template_input_path': 'chrome_tab_version.rc.version', |
| 702 }, |
| 703 'inputs': [ |
| 704 '<(template_input_path)', |
| 705 '<(version_path)', |
| 706 ], |
| 707 'outputs': [ |
| 708 'chrome_tab_version.rc', |
| 709 ], |
| 710 'action': [ |
| 711 'python', |
| 712 '<(version_py)', |
| 713 '-f', '<(version_path)', |
| 714 '<(template_input_path)', |
| 715 '<@(_outputs)', |
| 716 ], |
| 717 'process_outputs_as_sources': 1, |
| 718 'message': 'Generating version information in <(_outputs)' |
| 719 }, |
| 720 ], |
| 721 }, |
| 722 ], |
| 723 } |
| 724 |
| 725 # vim: shiftwidth=2:et:ai:tabstop=2 |
OLD | NEW |