summaryrefslogtreecommitdiffstats
path: root/ceee/ie/plugin/toolband/toolband.gyp
blob: 7019c856ba06df40e3603246264741e3e61df2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'variables': {
    'chromium_code': 1,
  },
  'includes': [
    '../../../../build/common.gypi',
  ],
  'targets': [
    {
      'target_name': 'ceee_ie_lib',
      'type': 'static_library',
      'dependencies': [
        '<(DEPTH)/chrome_frame/chrome_frame.gyp:chrome_tab_idl',
        '../../common/common.gyp:ie_common_settings',
        '../../../../base/base.gyp:base',
        '../../../../ceee/common/common.gyp:ceee_common',
      ],
      'sources': [
        '../../common/precompile.cc',
        '../../common/precompile.h',
        'tool_band.cc',
        'tool_band.h',
      ],
      'libraries': [
        'oleacc.lib',
        'iepmapi.lib',
      ],
      'include_dirs': [
        # For chrome_tab.h
        '<(SHARED_INTERMEDIATE_DIR)',
      ],
      'configurations': {
        'Debug': {
          'msvs_precompiled_source': '../../common/precompile.cc',
          'msvs_precompiled_header': '../../common/precompile.h',
        },
      },
    },
    {
      'target_name': 'ceee_ie',
      'type': 'shared_library',
      'dependencies': [
        'ceee_ie_lib',
        'ie_toolband_common',
        'toolband_idl',
        '../bho/bho.gyp:bho',
        '../scripting/scripting.gyp:scripting',
        '../../common/common.gyp:ie_common_settings',
        '../../common/common.gyp:ie_guids',
        '../../../../base/base.gyp:base',
        '../../../../breakpad/breakpad.gyp:breakpad_handler',
        '../../../../ceee/common/common.gyp:ceee_common',
        '<(DEPTH)/chrome/chrome.gyp:chrome_version_header',
      ],
      'sources': [
        '../../common/precompile.cc',
        '../../common/precompile.h',
        'resource.h',
        'tool_band.rgs',
        'toolband.def',
        'toolband.rc',
        'toolband_module.cc',
        '../bho/browser_helper_object.rgs',
        '../executor.rgs',
        '../executor_creator.rgs',
        '../scripting/content_script_manager.rc',
      ],
      'libraries': [
        'oleacc.lib',
        'iepmapi.lib',
      ],
      'include_dirs': [
        # Allows us to include .tlb and .h files generated
        # from our .idl without undue trouble
        '$(IntDir)',
        # For version.h
        '<(SHARED_INTERMEDIATE_DIR)',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'OutputFile': '$(OutDir)/servers/$(ProjectName).dll',
        },
      },
      'configurations': {
        'Debug': {
          'msvs_precompiled_source': '../../common/precompile.cc',
          'msvs_precompiled_header': '../../common/precompile.h',
        },
      },
    },
    {
      'target_name': 'ie_toolband_common',
      'type': 'static_library',
      'dependencies': [
        '../../../../chrome_frame/crash_reporting/'
            'crash_reporting.gyp:crash_report',
        '../../../../base/base.gyp:base',
        '../../../../breakpad/breakpad.gyp:breakpad_handler',
      ],
      'sources': [
        'toolband_module_reporting.cc',
        'toolband_module_reporting.h',
      ],
    },
    {
      'target_name': 'toolband_idl',
      'type': 'none',
      'sources': [
        '../../broker/broker_lib.idl',
        'toolband.idl',
      ],
      'msvs_settings': {
        'VCMIDLTool': {
          'OutputDirectory': '<(SHARED_INTERMEDIATE_DIR)',
          'DLLDataFileName': '$(InputName)_dlldata.c',
        },
      },
      # Add the output dir for those who depend on us.
      'direct_dependent_settings': {
        'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
      },
    },
  ]
}