ChromiumEnv::GetChildren() now clearing prior results.
[chromium-blink-merge.git] / chrome_frame / chrome_frame.gyp
blob9b33acbc3271e1f4f6e338c03e54869dcbd75cd4
1 # Copyright (c) 2012 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.
6   'variables': {
7     'chromium_code': 1,
9     # Keep the archive builder happy.
10     'chrome_personalization%': 1,
11     'use_syncapi_stub%': 0,
13     'conditions': [
14       ['OS=="win"', {
15         'python': [
16           '<(DEPTH)\\third_party\\python_26\\setup_env.bat && python'
17         ],
18       }, { # OS != win
19         'python': [
20           'python'
21         ],
22       }],
23     ],
24   },
25   'includes': [
26     '../build/win_precompile.gypi',
27     '../chrome/version.gypi',
28   ],
29   'target_defaults': {
30     'dependencies': [
31       '../chrome/chrome_resources.gyp:chrome_resources',
32       '../chrome/chrome_resources.gyp:chrome_strings',
33       '../chrome/chrome_resources.gyp:packed_resources',
34       '../chrome/chrome_resources.gyp:theme_resources',
35       '../skia/skia.gyp:skia',
36     ],
37     'defines': [ 'ISOLATION_AWARE_ENABLED=1' ],
38     'include_dirs': [
39       # all our own includes are relative to src/
40       '..',
41     ],
42   },
43   'targets': [
44     {
45       'target_name': 'chrome_frame_version_resources',
46       'type': 'none',
47       'conditions': [
48         ['branding == "Chrome"', {
49           'variables': {
50              'branding_path': '../chrome/app/theme/google_chrome/BRANDING',
51           },
52         }, { # else branding!="Chrome"
53           'variables': {
54              'branding_path': '../chrome/app/theme/chromium/BRANDING',
55           },
56         }],
57       ],
58       'variables': {
59         'output_dir': 'chrome_frame',
60         'template_input_path': 'npchrome_frame_version.rc.version',
61         'extra_variable_files_arguments': [ '-f', 'BRANDING' ],
62         'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above
63       },
64       'direct_dependent_settings': {
65         'include_dirs': [
66           '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
67         ],
68       },
69       'sources': [
70         'npchrome_frame_dll.ver',
71       ],
72       'includes': [
73         '../chrome/version_resource_rules.gypi',
74       ],
75     },
76     {
77       # Builds the crash tests in crash_reporting.
78       'target_name': 'chrome_frame_crash_tests',
79       'type': 'none',
80       'dependencies': [
81         'crash_reporting/crash_reporting.gyp:minidump_test',
82         'crash_reporting/crash_reporting.gyp:vectored_handler_tests',
83       ],
84     },
85     {
86       # Builds our IDL file to the shared intermediate directory.
87       'target_name': 'chrome_tab_idl',
88       'type': 'none',
89       'msvs_settings': {
90         'VCMIDLTool': {
91           'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)/chrome_frame',
92         },
93       },
94       'sources': [
95         'chrome_tab.idl',
96       ],
97       # Add the output dir for those who depend on us.
98       'direct_dependent_settings': {
99         'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
100       },
101     },
102     {
103       'target_name': 'chrome_frame_unittests',
104       'type': 'executable',
105       'dependencies': [
106         '../base/base.gyp:test_support_base',
107         '../chrome/app/policy/cloud_policy_codegen.gyp:policy',
108         '../chrome/chrome.gyp:test_support_common',
109         '../net/net.gyp:net',
110         '../testing/gmock.gyp:gmock',
111         '../testing/gtest.gyp:gtest',
112         'chrome_frame_launcher.gyp:chrome_frame_helper_lib',
113         'chrome_frame_ie',
114         'chrome_frame_strings',
115         'chrome_tab_idl',
116         'locales/locales.gyp:*',
117       ],
118       'sources': [
119         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
120         'chrome_frame_unittest_main.cc',
121         'chrome_launcher.cc',
122         'chrome_launcher.h',
123         'chrome_launcher_unittest.cc',
124         'function_stub_unittest.cc',
125         'scoped_initialization_manager_unittest.cc',
126         'test/chrome_tab_mocks.h',
127         'test/chrome_frame_test_utils.h',
128         'test/chrome_frame_test_utils.cc',
129         'test/com_message_event_unittest.cc',
130         'test/dll_redirector_test.cc',
131         'test/exception_barrier_unittest.cc',
132         'test/html_util_unittests.cc',
133         'test/http_negotiate_unittest.cc',
134         'test/infobar_unittests.cc',
135         'test/policy_settings_unittest.cc',
136         'test/ready_mode_unittest.cc',
137         'test/registry_watcher_unittest.cc',
138         'test/simulate_input.h',
139         'test/simulate_input.cc',
140         'test/urlmon_moniker_tests.h',
141         'test/urlmon_moniker_unittest.cc',
142         'test/util_unittests.cc',
143         'test/win_event_receiver.h',
144         'test/win_event_receiver.cc',
145         'unittest_precompile.h',
146         'unittest_precompile.cc',
147         'urlmon_upload_data_stream_unittest.cc',
148         'vtable_patch_manager_unittest.cc',
149       ],
150       'include_dirs': [
151         '<(DEPTH)/breakpad/src',
152       ],
153       'resource_include_dirs': [
154         '<(INTERMEDIATE_DIR)',
155       ],
156       'conditions': [
157         ['OS=="win" and buildtype=="Official"', {
158           'configurations': {
159             'Release': {
160               'msvs_settings': {
161                 'VCCLCompilerTool': {
162                   'WholeProgramOptimization': 'false',
163                 },
164               },
165             },
166           },
167         },],
168         ['OS=="win"', {
169           'link_settings': {
170             'libraries': [
171               '-lshdocvw.lib',
172               '-loleacc.lib',
173             ],
174           },
175           'msvs_settings': {
176             'VCLinkerTool': {
177               'DelayLoadDLLs': ['shdocvw.dll'],
178             },
179           },
180           'dependencies': [
181             '../breakpad/breakpad.gyp:breakpad_handler',
182             # TODO(slightlyoff): Get automation targets working on OS X
183             '../chrome/chrome.gyp:automation',
184             '../chrome/chrome.gyp:installer_util',
185             '../google_update/google_update.gyp:google_update',
186           ],
187           'configurations': {
188             'Debug_Base': {
189               'msvs_settings': {
190                 'VCLinkerTool': {
191                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
192                 },
193               },
194             },
195           },
196         }],
197       ],
198     },
199     {
200       'target_name': 'chrome_frame_tests',
201       'type': 'executable',
202       'dependencies': [
203         '../base/base.gyp:test_support_base',
204         '../chrome/chrome.gyp:browser',
205         '../chrome/chrome.gyp:common',
206         '../chrome/chrome.gyp:debugger',
207         '../chrome/chrome.gyp:renderer',
208         '../chrome/chrome.gyp:test_support_common',
209         '../chrome/chrome.gyp:utility',
210         '../chrome/installer/upgrade_test.gyp:alternate_version_generator_lib',
211         '../content/content.gyp:content_gpu',
212         '../net/net.gyp:net',
213         '../net/net.gyp:net_test_support',
214         '../testing/gmock.gyp:gmock',
215         '../testing/gtest.gyp:gtest',
216         '../third_party/iaccessible2/iaccessible2.gyp:IAccessible2Proxy',
217         '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
218         '../third_party/libxslt/libxslt.gyp:libxslt',
219         '../url/url.gyp:url_lib',
220         'chrome_frame_ie',
221         'chrome_frame_strings',
222         'chrome_frame_utils',
223         'chrome_tab_idl',
224         'locales/locales.gyp:*',
225         'npchrome_frame',
226       ],
227       'sources': [
228         '../base/test/test_suite.h',
229         'test/automation_client_mock.cc',
230         'test/automation_client_mock.h',
231         'test/chrome_frame_test_utils.cc',
232         'test/chrome_frame_test_utils.h',
233         'test/chrome_frame_ui_test_utils.cc',
234         'test/chrome_frame_ui_test_utils.h',
235         'test/chrome_frame_automation_mock.cc',
236         'test/chrome_frame_automation_mock.h',
237         'test/delete_chrome_history_test.cc',
238         'test/dll_redirector_loading_test.cc',
239         'test/header_test.cc',
240         'test/ie_configurator.cc',
241         'test/ie_configurator.h',
242         'test/ie_event_sink.cc',
243         'test/ie_event_sink.h',
244         'test/mock_ie_event_sink_actions.h',
245         'test/mock_ie_event_sink_test.cc',
246         'test/mock_ie_event_sink_test.h',
247         'test/navigation_test.cc',
248         'test/proxy_factory_mock.cc',
249         'test/proxy_factory_mock.h',
250         'test/run_all_unittests.cc',
251         'test/simple_resource_loader_test.cc',
252         'test/simulate_input.cc',
253         'test/simulate_input.h',
254         'test/test_scrubber.cc',
255         'test/test_scrubber.h',
256         'test/test_server.cc',
257         'test/test_server.h',
258         'test/test_server_test.cc',
259         'test/test_with_web_server.cc',
260         'test/test_with_web_server.h',
261         'test/ui_test.cc',
262         'test/urlmon_moniker_tests.h',
263         'test/urlmon_moniker_integration_test.cc',
264         'test/url_request_test.cc',
265         'test/win_event_receiver.cc',
266         'test/win_event_receiver.h',
267         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_launcher_exe_version.rc',
268         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
269         'test_utils.cc',
270         'test_utils.h',
271       ],
272       'include_dirs': [
273         '<(DEPTH)/third_party/wtl/include',
274         '<(DEPTH)/breakpad/src',
275       ],
276       'resource_include_dirs': [
277         '<(INTERMEDIATE_DIR)',
278       ],
279       'conditions': [
280         ['OS=="win"', {
281           'link_settings': {
282             'libraries': [
283               '-loleacc.lib',
284             ],
285           },
286           'dependencies': [
287             '../chrome/chrome.gyp:crash_service',
288             '../chrome/chrome.gyp:automation',
289             '../chrome/chrome.gyp:installer_util',
290             '../google_update/google_update.gyp:google_update',
291           ],
292           'configurations': {
293             'Debug_Base': {
294               'msvs_settings': {
295                 'VCLinkerTool': {
296                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
297                 },
298               },
299             },
300           },
301           'conditions': [
302             ['win_use_allocator_shim==1', {
303               'dependencies': [
304                 '../base/allocator/allocator.gyp:allocator',
305               ],
306             }],
307           ],
308         }],
309       ],
310     },
311     {
312       'target_name': 'chrome_frame_perftests',
313       'type': 'executable',
314       'dependencies': [
315         '../base/base.gyp:base',
316         '../base/base.gyp:base_i18n',
317         '../base/base.gyp:test_support_base',
318         '../chrome/chrome.gyp:browser',
319         '../chrome/chrome.gyp:common',
320         '../chrome/chrome.gyp:debugger',
321         '../chrome/chrome.gyp:image_pre_reader',
322         '../chrome/chrome.gyp:test_support_common',
323         '../chrome/chrome.gyp:test_support_ui',
324         '../chrome/chrome.gyp:utility',
325         '../chrome/test/perf/perf_test.gyp:*',
326         '../content/content.gyp:content_gpu',
327         '../testing/gmock.gyp:gmock',
328         '../testing/gtest.gyp:gtest',
329         '../third_party/libxml/libxml.gyp:libxml',
330         '../third_party/libxslt/libxslt.gyp:libxslt',
331         '../url/url.gyp:url_lib',
332         'chrome_frame_ie',
333         'chrome_frame_strings',
334         'chrome_frame_utils',
335         'chrome_tab_idl',
336         'locales/locales.gyp:*',
337         'npchrome_frame',
338       ],
339       'sources': [
340         '../base/test/perf_test_suite.h',
341         '../base/test/test_file_util.h',
342         '../chrome/test/base/chrome_process_util.cc',
343         '../chrome/test/base/chrome_process_util.h',
344         '../chrome/test/ui/ui_test.cc',
345         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
346         'test/chrome_frame_test_utils.cc',
347         'test/chrome_frame_test_utils.h',
348         'test/perf/chrome_frame_perftest.cc',
349         'test/perf/chrome_frame_perftest.h',
350         'test/perf/run_all.cc',
351         'test/perf/silverlight.cc',
352         'test/simulate_input.cc',
353         'test/simulate_input.h',
354         'test_utils.cc',
355         'test_utils.h',
356         'test/win_event_receiver.cc',
357         'test/win_event_receiver.h',
358       ],
359       'include_dirs': [
360         '<(DEPTH)/third_party/wtl/include',
361       ],
362       'conditions': [
363         ['OS=="win"', {
364           'configurations': {
365             'Debug_Base': {
366               'msvs_settings': {
367                 'VCLinkerTool': {
368                   'LinkIncremental': '<(msvs_debug_link_nonincremental)',
369                 },
370               },
371             },
372           },
373           'link_settings': {
374             'libraries': [
375               '-loleacc.lib',
376             ],
377           },
378           'dependencies': [
379             '../breakpad/breakpad.gyp:breakpad_handler',
380             '../chrome/chrome.gyp:automation',
381             '../chrome/chrome.gyp:crash_service',
382             '../chrome/chrome.gyp:installer_util',
383             '../google_update/google_update.gyp:google_update',
384           ],
385           'sources': [
386             '../base/test/test_file_util_win.cc',
387           ]
388         }],
389       ],
390     },
392     {
393       'target_name': 'chrome_frame_net_tests',
394       'type': 'executable',
395       'dependencies': [
396         '../base/base.gyp:test_support_base',
397         '../chrome/chrome.gyp:browser',
398         '../chrome/chrome.gyp:debugger',
399         '../chrome/chrome.gyp:renderer',
400         '../chrome/chrome.gyp:test_support_common',
401         '../chrome/chrome_resources.gyp:chrome_resources',
402         '../content/content.gyp:content_app_both',
403         '../content/content.gyp:content_gpu',
404         '../content/content_shell_and_tests.gyp:test_support_content',
405         '../net/net.gyp:net',
406         '../net/net.gyp:net_test_support',
407         '../skia/skia.gyp:skia',
408         '../sync/sync.gyp:sync',
409         '../testing/gtest.gyp:gtest',
410         '../third_party/icu/icu.gyp:icui18n',
411         '../third_party/icu/icu.gyp:icuuc',
412         '../ui/resources/ui_resources.gyp:ui_resources',
413         'chrome_frame_ie',
414         'chrome_tab_idl',
415         'npchrome_frame',
416       ],
417       'include_dirs': [
418         '<(DEPTH)/breakpad/src',
419       ],
420       'defines': [ 'CHROME_FRAME_NET_TESTS=1' ],
421       'sources': [
422         '../net/url_request/url_request_unittest.cc',
423         'test/chrome_frame_test_utils.cc',
424         'test/chrome_frame_test_utils.h',
425         'test/ie_configurator.cc',
426         'test/ie_configurator.h',
427         'test/simulate_input.cc',
428         'test/simulate_input.h',
429         'test/test_server.cc',
430         'test/test_server.h',
431         'test/win_event_receiver.cc',
432         'test/win_event_receiver.h',
433         'test/net/fake_external_tab.cc',
434         'test/net/fake_external_tab.h',
435         'test/net/test_automation_provider.cc',
436         'test/net/test_automation_provider.h',
437         'test/net/test_automation_resource_message_filter.cc',
438         'test/net/test_automation_resource_message_filter.h',
439         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
440         'test_utils.cc',
441         'test_utils.h',
442       ],
443       'conditions': [
444         ['OS=="win"', {
445           'msvs_large_pdb': 1,
446           'link_settings': {
447             'libraries': [
448               '-loleacc.lib',
449             ],
450           },
451           'msvs_settings': {
452             'VCLinkerTool': {
453               'DelayLoadDLLs': ['prntvpt.dll'],
454             },
455           },
456           'dependencies': [
457             '../breakpad/breakpad.gyp:breakpad_handler',
458             '../chrome/chrome.gyp:automation',
459             '../chrome/chrome.gyp:crash_service',
460             '../chrome/chrome.gyp:chrome_version_resources',
461             '../chrome/chrome.gyp:installer_util',
462             '../google_update/google_update.gyp:google_update',
463           ],
464           'configurations': {
465             'Debug_Base': {
466               'msvs_settings': {
467                 'VCLinkerTool': {
468                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
469                 },
470               },
471             },
472           },
473         }],
474       ],
475     },
477     {
478       'target_name': 'chrome_frame_reliability_tests',
479       'type': 'executable',
480       'dependencies': [
481         '../base/base.gyp:base',
482         '../base/base.gyp:test_support_base',
483         '../chrome/chrome.gyp:browser',
484         '../chrome/chrome.gyp:debugger',
485         '../chrome/chrome.gyp:renderer',
486         '../chrome/chrome.gyp:test_support_common',
487         '../content/content.gyp:content_gpu',
488         '../testing/gmock.gyp:gmock',
489         '../testing/gtest.gyp:gtest',
490         'chrome_frame_ie',
491         'chrome_frame_strings',
492         'chrome_tab_idl',
493         'locales/locales.gyp:*',
494       ],
495       'sources': [
496         'test/reliability/run_all_unittests.cc',
497         'test/reliability/page_load_test.cc',
498         'test/reliability/page_load_test.h',
499         'test/reliability/reliability_test_suite.h',
500         'test/chrome_frame_test_utils.cc',
501         'test/chrome_frame_test_utils.h',
502         'test/ie_event_sink.cc',
503         'test/ie_event_sink.h',
504         'test_utils.cc',
505         'test_utils.h',
506         'test/simulate_input.cc',
507         'test/simulate_input.h',
508         'test/win_event_receiver.cc',
509         'test/win_event_receiver.h',
510         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
511         '../base/test/test_file_util_win.cc',
512         '../chrome/test/automation/proxy_launcher.cc',
513         '../chrome/test/automation/proxy_launcher.h',
514         '../chrome/test/base/chrome_process_util.cc',
515         '../chrome/test/base/chrome_process_util.h',
516         '../chrome/test/ui/ui_test.cc',
517         '../chrome/test/ui/ui_test.h',
518         '../chrome/test/ui/ui_test_suite.cc',
519         '../chrome/test/ui/ui_test_suite.h',
520       ],
521       'resource_include_dirs': [
522         '<(INTERMEDIATE_DIR)',
523       ],
524       'conditions': [
525         ['OS=="win"', {
526           'msvs_large_pdb': 1,
527           'link_settings': {
528             'libraries': [
529               '-loleacc.lib',
530             ],
531           },
532           'dependencies': [
533             # TODO(slightlyoff): Get automation targets working on OS X
534             '../chrome/chrome.gyp:automation',
535             '../chrome/chrome.gyp:installer_util',
536             '../google_update/google_update.gyp:google_update',
537           ],
538           'configurations': {
539             'Debug_Base': {
540               'msvs_settings': {
541                 'VCLinkerTool': {
542                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
543                 },
544               },
545             },
546           },
547         }],
548       ],
549     },
550     {
551       'target_name': 'chrome_frame_qa_tests',
552       'type': 'executable',
553       'dependencies': [
554         '../base/base.gyp:test_support_base',
555         '../chrome/chrome.gyp:test_support_common',
556         '../net/net.gyp:net',
557         '../net/net.gyp:net_test_support',
558         '../testing/gmock.gyp:gmock',
559         '../testing/gtest.gyp:gtest',
560         '../third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
561         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
562         '../url/url.gyp:url_lib',
563         'chrome_frame_ie',
564         'chrome_frame_strings',
565         'chrome_tab_idl',
566         'locales/locales.gyp:*',
567         'npchrome_frame',
568       ],
569       'sources': [
570         '../base/test/test_suite.h',
571         'test/chrome_frame_test_utils.cc',
572         'test/chrome_frame_test_utils.h',
573         'test/chrome_frame_ui_test_utils.cc',
574         'test/chrome_frame_ui_test_utils.h',
575         'test/external_sites_test.cc',
576         'test/ie_configurator.cc',
577         'test/ie_configurator.h',
578         'test/ie_event_sink.cc',
579         'test/ie_event_sink.h',
580         'test/mock_ie_event_sink_actions.h',
581         'test/mock_ie_event_sink_test.cc',
582         'test/mock_ie_event_sink_test.h',
583         'test/run_all_unittests.cc',
584         'test/simulate_input.cc',
585         'test/simulate_input.h',
586         'test/test_scrubber.cc',
587         'test/test_scrubber.h',
588         'test/test_server.cc',
589         'test/test_server.h',
590         'test/test_with_web_server.cc',
591         'test/test_with_web_server.h',
592         'test/win_event_receiver.cc',
593         'test/win_event_receiver.h',
594         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
595         'chrome_tab.idl',
596         'test_utils.cc',
597         'test_utils.h',
598       ],
599       'include_dirs': [
600         '<(DEPTH)/third_party/wtl/include',
601         '<(DEPTH)/breakpad/src',
602       ],
603       'resource_include_dirs': [
604         '<(INTERMEDIATE_DIR)',
605       ],
606       'conditions': [
607         ['OS=="win"', {
608           'link_settings': {
609             'libraries': [
610               '-loleacc.lib',
611             ],
612           },
613           'dependencies': [
614             '../chrome/chrome.gyp:crash_service',
615             '../chrome/chrome.gyp:automation',
616             '../chrome/chrome.gyp:installer_util',
617             '../google_update/google_update.gyp:google_update',
618           ]
619         }],
620       ],
621     },
622     {
623       'target_name': 'chrome_frame_strings',
624       'type': 'none',
625       'variables': {
626         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome_frame',
627       },
628       'actions': [
629         {
630           'action_name': 'chrome_frame_resources',
631           'variables': {
632             'grit_grd_file': 'resources/chrome_frame_resources.grd',
633           },
634           'includes': [ '../build/grit_action.gypi' ],
635         },
636         {
637           'action_name': 'chrome_frame_dialogs',
638           'variables': {
639             'grit_grd_file': 'resources/chrome_frame_dialogs.grd',
640           },
641           'includes': [ '../build/grit_action.gypi' ],
642         },
643       ],
644       'includes': [ '../build/grit_target.gypi' ],
645     },
646     {
647       'target_name': 'chrome_frame_utils',
648        # The intent is that shared util code can be built into a separate lib.
649       'type': 'static_library',
650       'dependencies': [
651         '../base/base.gyp:base_i18n',
652         '../breakpad/breakpad.gyp:breakpad_handler',
653         '../chrome/chrome.gyp:chrome_version_header',
654       ],
655       'include_dirs': [
656         # To allow including "version.h"
657         # TODO(grt): remove this as per http://crbug.com/99368
658         '<(SHARED_INTERMEDIATE_DIR)',
659       ],
660       'sources': [
661         'crash_server_init.cc',
662         'crash_server_init.h',
663         'simple_resource_loader.cc',
664         'simple_resource_loader.h',
665       ],
666     },
667     {
668       'target_name': 'chrome_frame_ie',
669       'type': 'static_library',
670       'dependencies': [
671         '../chrome/app/policy/cloud_policy_codegen.gyp:policy',
672         '../chrome/chrome.gyp:common',
673         '../chrome/chrome.gyp:utility',
674         '../content/content.gyp:content_common',
675         '../net/net.gyp:net',
676         '../third_party/libxml/libxml.gyp:libxml',
677         '../url/url.gyp:url_lib',
678         '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
679         'chrome_frame_common',
680         'chrome_frame_strings',
681         'chrome_frame_utils',
682         'chrome_tab_idl',
683         'locales/locales.gyp:*',
684       ],
685       'sources': [
686         'bho.cc',
687         'bho.h',
688         'bho.rgs',
689         'bind_context_info.cc',
690         'bind_context_info.h',
691         'bind_status_callback_impl.cc',
692         'bind_status_callback_impl.h',
693         'buggy_bho_handling.cc',
694         'buggy_bho_handling.h',
695         'chrome_active_document.cc',
696         'chrome_active_document.h',
697         'chrome_active_document.rgs',
698         'chrome_frame_activex.cc',
699         'chrome_frame_activex.h',
700         'chrome_frame_activex.rgs',
701         'chrome_frame_activex_base.h',
702         'chrome_protocol.cc',
703         'chrome_protocol.h',
704         'chrome_protocol.rgs',
705         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
706         'com_message_event.cc',
707         'com_message_event.h',
708         'com_type_info_holder.cc',
709         'com_type_info_holder.h',
710         'delete_chrome_history.cc',
711         'delete_chrome_history.h',
712         'dll_redirector.cc',
713         'dll_redirector.h',
714         'exception_barrier.cc',
715         'exception_barrier.h',
716         'exception_barrier_lowlevel.asm',
717         'extra_system_apis.h',
718         'find_dialog.cc',
719         'find_dialog.h',
720         'function_stub.cc',
721         'function_stub.h',
722         'html_utils.h',
723         'html_utils.cc',
724         'http_negotiate.cc',
725         'http_negotiate.h',
726         'iids.cc',
727         'infobars/infobar_content.h',
728         'infobars/internal/displaced_window_manager.cc',
729         'infobars/internal/displaced_window_manager.h',
730         'infobars/internal/host_window_manager.cc',
731         'infobars/internal/host_window_manager.h',
732         'infobars/internal/infobar_window.cc',
733         'infobars/internal/infobar_window.h',
734         'infobars/internal/subclassing_window_with_delegate.h',
735         'infobars/infobar_manager.h',
736         'infobars/infobar_manager.cc',
737         'metrics_service.cc',
738         'metrics_service.h',
739         'pin_module.cc',
740         'pin_module.h',
741         'policy_settings.cc',
742         'policy_settings.h',
743         'protocol_sink_wrap.cc',
744         'protocol_sink_wrap.h',
745         'ready_mode/internal/ready_mode_state.h',
746         'ready_mode/internal/ready_mode_web_browser_adapter.cc',
747         'ready_mode/internal/ready_mode_web_browser_adapter.h',
748         'ready_mode/internal/ready_prompt_content.cc',
749         'ready_mode/internal/ready_prompt_content.h',
750         'ready_mode/internal/ready_prompt_window.cc',
751         'ready_mode/internal/ready_prompt_window.h',
752         'ready_mode/internal/registry_ready_mode_state.cc',
753         'ready_mode/internal/registry_ready_mode_state.h',
754         'ready_mode/internal/url_launcher.h',
755         'ready_mode/ready_mode.cc',
756         'ready_mode/ready_mode.h',
757         'register_bho.rgs',
758         'registry_list_preferences_holder.cc',
759         'registry_list_preferences_holder.h',
760         'stream_impl.cc',
761         'stream_impl.h',
762         'turndown_prompt/turndown_prompt.cc',
763         'turndown_prompt/turndown_prompt.h',
764         'turndown_prompt/turndown_prompt_content.cc',
765         'turndown_prompt/turndown_prompt_content.h',
766         'turndown_prompt/turndown_prompt_window.cc',
767         'turndown_prompt/turndown_prompt_window.h',
768         'urlmon_bind_status_callback.h',
769         'urlmon_bind_status_callback.cc',
770         'urlmon_moniker.h',
771         'urlmon_moniker.cc',
772         'urlmon_url_request.cc',
773         'urlmon_url_request.h',
774         'urlmon_url_request_private.h',
775         'urlmon_upload_data_stream.cc',
776         'urlmon_upload_data_stream.h',
777         'utils.h',
778         'utils.cc',
779         'vtable_patch_manager.cc',
780         'vtable_patch_manager.h',
781         '../third_party/active_doc/in_place_menu.h',
782         '../third_party/active_doc/ole_document_impl.h',
783       ],
784       'include_dirs': [
785         '<(DEPTH)/third_party/wtl/include',
786       ],
787       'conditions': [
788         ['OS=="win"', {
789           # NOTE(slightlyoff):
790           #   this is a fix for the include dirs length limit on the resource
791           #   compiler, tickled by the xul_include_dirs variable
792           'resource_include_dirs': [
793             '<(INTERMEDIATE_DIR)'
794           ],
795           'dependencies': [
796             '../breakpad/breakpad.gyp:breakpad_handler',
797             '../chrome/chrome.gyp:automation',
798             # Installer
799             '../chrome/chrome.gyp:installer_util',
800             '../google_update/google_update.gyp:google_update',
801             # Make the archive build happy.
802             '../sync/sync.gyp:sync',
803             # Crash Reporting
804             'crash_reporting/crash_reporting.gyp:crash_report',
805           ],
806           'link_settings': {
807             'libraries': ['-lurlmon.lib'],
808           },
809         },],
810       ],
811       'rules': [
812         {
813           'rule_name': 'Assemble',
814           'extension': 'asm',
815           'inputs': [],
816           'outputs': [
817             '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
818           ],
819           'action': [
820             'ml',
821             '/safeseh',
822             '/Fo', '<(INTERMEDIATE_DIR)\<(RULE_INPUT_ROOT).obj',
823             '/c', '<(RULE_INPUT_PATH)',
824           ],
825           'process_outputs_as_sources': 1,
826           'message':
827               'Assembling <(RULE_INPUT_PATH) to ' \
828               '<(INTERMEDIATE_DIR)\<(RULE_INPUT_ROOT).obj',
829         },
830       ],
831       'msvs_settings': {
832         'VCLinkerTool': {
833           'AdditionalOptions': [
834             '/safeseh',
835           ],
836         },
837       },
838     },
839     {
840       'target_name': 'chrome_frame_common',
841       'type': 'static_library',
842       'sources': [
843         'chrome_frame_automation.h',
844         'chrome_frame_automation.cc',
845         'chrome_frame_delegate.h',
846         'chrome_frame_delegate.cc',
847         'chrome_frame_plugin.cc',
848         'chrome_frame_plugin.h',
849         'chrome_launcher_utils.cc',
850         'chrome_launcher_utils.h',
851         'custom_sync_call_context.cc',
852         'custom_sync_call_context.h',
853         'navigation_constraints.h',
854         'navigation_constraints.cc',
855         'plugin_url_request.h',
856         'plugin_url_request.cc',
857         'sync_msg_reply_dispatcher.h',
858         'sync_msg_reply_dispatcher.cc',
859         'task_marshaller.h',
860         'task_marshaller.cc',
861       ],
862       'dependencies': [
863         '../base/base.gyp:base',
864         '../net/net.gyp:net',
865       ],
866       'export_dependent_settings': [
867         '../base/base.gyp:base',
868       ],
869     },
870     {
871       'target_name': 'npchrome_frame',
872       'type': 'shared_library',
873       'dependencies': [
874         '../base/base.gyp:base',
875         '../chrome/chrome.gyp:chrome',
876         '../chrome/chrome.gyp:chrome_dll',
877         '../chrome/chrome.gyp:chrome_version_resources',
878         '../chrome/chrome.gyp:common',
879         '../url/url.gyp:url_lib',
880         'chrome_frame_ie',
881         'chrome_frame_launcher.gyp:chrome_frame_helper',
882         'chrome_frame_launcher.gyp:chrome_frame_helper_dll',
883         'chrome_frame_launcher.gyp:chrome_launcher',
884         'chrome_frame_strings',
885         'chrome_frame_utils',
886         'chrome_frame_version_resources',
887         'chrome_tab_idl',
888         'locales/locales.gyp:*',
889       ],
890       'defines': [
891         '_WINDLL',
892       ],
893       'sources': [
894         'chrome_frame_elevation.rgs',
895         'chrome_frame_reporting.cc',
896         'chrome_frame_reporting.h',
897         'chrome_tab.cc',
898         'chrome_tab.def',
899         'scoped_initialization_manager.h',
900         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_tab.h',
901         '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/npchrome_frame_dll_version.rc',
902         # FIXME(slightlyoff): For chrome_tab.tlb. Giant hack until we can
903         #   figure out something more gyp-ish.
904         'resources/tlb_resource.rc',
905         'chrome_tab.rgs',
906         'resource.h',
907       ],
908       'conditions': [
909         ['OS=="win"', {
910           # NOTE(slightlyoff):
911           #   this is a fix for the include dirs length limit on the resource
912           #   compiler, tickled by the xul_include_dirs variable
913           'resource_include_dirs': [
914             '<(INTERMEDIATE_DIR)'
915           ],
916           'sources': [
917             '<(SHARED_INTERMEDIATE_DIR)/chrome_frame/chrome_frame_resources.rc',
918           ],
919           'dependencies': [
920             '../breakpad/breakpad.gyp:breakpad_handler',
921             '../chrome/chrome.gyp:automation',
922             # Installer
923             '../chrome/chrome.gyp:installer_util',
924             '../google_update/google_update.gyp:google_update',
925             # Make the archive build happy.
926             '../sync/sync.gyp:sync',
927             # Crash Reporting
928             'crash_reporting/crash_reporting.gyp:crash_report',
929           ],
930           'link_settings': {
931             'libraries': [
932               '-lshdocvw.lib',
933             ],
934           },
935           'msvs_settings': {
936             'VCLinkerTool': {
937               'DelayLoadDLLs': [],
938               'BaseAddress': '0x33000000',
939               # Set /SUBSYSTEM:WINDOWS (for consistency).
940               'SubSystem': '2',
941             },
942             'VCManifestTool': {
943               'AdditionalManifestFiles': [
944                 '$(ProjectDir)\\resources\\npchrome_frame.dll.manifest',
945               ],
946             },
947           },
948         }],
949       ],
950     },
951   ],