LEFT | RIGHT |
1 { | 1 { |
2 'includes': [ | 2 'includes': [ |
3 'defaults.gypi', | 3 'defaults.gypi', |
4 'common/common.gypi', | 4 'common/common.gypi', |
5 ], | 5 ], |
6 | 6 |
7 'variables': { | 7 'variables': { |
8 'build_type%': 'devbuild', | 8 'build_type%': 'devbuild', |
9 'build_version%': '', | 9 'build_version%': '', |
10 }, | 10 }, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 'src/shared/Communication.cpp', | 45 'src/shared/Communication.cpp', |
46 'src/shared/Communication.h', | 46 'src/shared/Communication.h', |
47 'src/shared/CriticalSection.h', | 47 'src/shared/CriticalSection.h', |
48 'src/shared/Dictionary.cpp', | 48 'src/shared/Dictionary.cpp', |
49 'src/shared/Dictionary.h', | 49 'src/shared/Dictionary.h', |
50 'src/shared/Utils.cpp', | 50 'src/shared/Utils.cpp', |
51 'src/shared/Utils.h', | 51 'src/shared/Utils.h', |
52 'src/shared/Version.h', | 52 'src/shared/Version.h', |
53 'src/shared/MsHTMLUtils.cpp', | 53 'src/shared/MsHTMLUtils.cpp', |
54 'src/shared/MsHTMLUtils.h', | 54 'src/shared/MsHTMLUtils.h', |
55 ] | 55 ], |
| 56 'include_dirs': [ |
| 57 '$(ADBLOCKPLUS_ATL)/include', |
| 58 ], |
56 }, | 59 }, |
57 | 60 |
58 { | 61 { |
59 'target_name': 'AdblockPlusEngine', | 62 'target_name': 'AdblockPlusEngine', |
60 'type': 'executable', | 63 'type': 'executable', |
61 'dependencies': [ | 64 'dependencies': [ |
62 'shared', | 65 'shared', |
63 'libadblockplus/libadblockplus.gyp:libadblockplus', | 66 'libadblockplus/libadblockplus.gyp:libadblockplus', |
64 ], | 67 ], |
65 'sources': [ | 68 'sources': [ |
66 'src/engine/Main.cpp', | 69 'src/engine/Main.cpp', |
67 'src/engine/NotificationWindow.cpp', | 70 'src/engine/NotificationWindow.cpp', |
68 'src/engine/NotificationWindow.h', | 71 'src/engine/NotificationWindow.h', |
69 'src/engine/Debug.cpp', | 72 'src/engine/Debug.cpp', |
70 'src/engine/UpdateInstallDialog.cpp', | 73 'src/engine/UpdateInstallDialog.cpp', |
71 'src/engine/Updater.cpp', | 74 'src/engine/Updater.cpp', |
72 'src/engine/engine.rc', | 75 'src/engine/engine.rc', |
73 ], | 76 ], |
| 77 'include_dirs': [ |
| 78 '$(ADBLOCKPLUS_ATL)/include', |
| 79 ], |
74 'libraries': [ | 80 'libraries': [ |
75 '-ladvapi32', | 81 '-ladvapi32', |
76 '-lole32', | 82 '-lole32', |
77 '-luser32', | 83 '-luser32', |
78 '-lshell32', | 84 '-lshell32', |
79 '-lshlwapi', | 85 '-lshlwapi', |
80 ], | 86 ], |
81 'msbuild_toolset': 'v110_xp', | 87 'msbuild_toolset': 'v110_xp', |
82 'msvs_settings': { | 88 'msvs_settings': { |
83 'VCLinkerTool': { | 89 'VCLinkerTool': { |
84 'DelayLoadDLLs': ['Shell32.dll'], | 90 'DelayLoadDLLs': ['Shell32.dll'], |
| 91 'conditions': [[ |
| 92 'target_arch=="ia32"', { |
| 93 'AdditionalLibraryDirectories': [ |
| 94 '$(ADBLOCKPLUS_ATL)/lib', |
| 95 ], |
| 96 }, { |
| 97 'AdditionalLibraryDirectories': [ |
| 98 '$(ADBLOCKPLUS_ATL)/lib/amd64', |
| 99 ], |
| 100 } |
| 101 ]], |
85 }, | 102 }, |
86 }, | 103 }, |
87 }, | 104 }, |
88 | 105 |
89 { | 106 { |
90 'target_name': 'AdblockPlus', | 107 'target_name': 'AdblockPlus', |
91 'type': 'shared_library', | 108 'type': 'shared_library', |
92 'dependencies': [ | 109 'dependencies': [ |
93 'shared', | 110 'shared', |
94 'libadblockplus/libadblockplus.gyp:libadblockplus', | 111 'libadblockplus/libadblockplus.gyp:libadblockplus', |
95 ], | 112 ], |
96 'sources': [ | 113 'sources': [ |
97 'src/plugin/ActiveQueue.h', | 114 'src/plugin/ActiveQueue.h', |
98 'src/plugin/AdblockPlus.def', | 115 'src/plugin/AdblockPlus.def', |
99 'src/plugin/AdblockPlus.idl', | 116 'src/plugin/AdblockPlus.idl', |
100 'src/plugin/AdblockPlus.rc', | 117 'src/plugin/AdblockPlus.rc', |
101 'src/plugin/AdblockPlus.rgs', | 118 'src/plugin/AdblockPlus.rgs', |
102 'src/plugin/AdblockPlusClient.cpp', | 119 'src/plugin/AdblockPlusClient.cpp', |
103 'src/plugin/AdblockPlusClient.h', | 120 'src/plugin/AdblockPlusClient.h', |
104 'src/plugin/AdblockPlusDomTraverser.cpp', | 121 'src/plugin/AdblockPlusDomTraverser.cpp', |
105 'src/plugin/AdblockPlusDomTraverser.h', | 122 'src/plugin/AdblockPlusDomTraverser.h', |
106 'src/plugin/AdblockPlusGuids.h', | 123 'src/plugin/AdblockPlusGuids.h', |
107 'src/plugin/ATL_Deprecate.cpp', | |
108 'src/plugin/ATL_Deprecate.h', | 124 'src/plugin/ATL_Deprecate.h', |
109 'src/plugin/Config.h', | 125 'src/plugin/Config.h', |
| 126 'src/plugin/Instances.h', |
110 'src/plugin/NotificationMessage.cpp', | 127 'src/plugin/NotificationMessage.cpp', |
111 'src/plugin/NotificationMessage.h', | 128 'src/plugin/NotificationMessage.h', |
112 'src/plugin/Placeholder.h', | 129 'src/plugin/Placeholder.h', |
113 'src/plugin/Plugin.cpp', | 130 'src/plugin/Plugin.cpp', |
114 'src/plugin/Plugin.h', | 131 'src/plugin/Plugin.h', |
115 'src/plugin/PluginClass.cpp', | 132 'src/plugin/PluginClass.cpp', |
116 'src/plugin/PluginClass.h', | 133 'src/plugin/PluginClass.h', |
117 'src/plugin/PluginClientFactory.cpp', | 134 'src/plugin/PluginClientFactory.cpp', |
118 'src/plugin/PluginClientFactory.h', | 135 'src/plugin/PluginClientFactory.h', |
119 'src/plugin/PluginDebug.cpp', | 136 'src/plugin/PluginDebug.cpp', |
120 'src/plugin/PluginDebug.h', | 137 'src/plugin/PluginDebug.h', |
121 'src/plugin/PluginDomTraverserBase.h', | 138 'src/plugin/PluginDomTraverserBase.h', |
122 'src/plugin/PluginErrorCodes.h', | 139 'src/plugin/PluginErrorCodes.h', |
123 'src/plugin/PluginFilter.cpp', | 140 'src/plugin/PluginFilter.cpp', |
124 'src/plugin/PluginFilter.h', | 141 'src/plugin/PluginFilter.h', |
125 'src/plugin/PluginMimeFilterClient.cpp', | 142 'src/plugin/PluginMimeFilterClient.cpp', |
126 'src/plugin/PluginMimeFilterClient.h', | 143 'src/plugin/PluginMimeFilterClient.h', |
127 'src/plugin/PluginMutex.cpp', | 144 'src/plugin/PluginMutex.cpp', |
128 'src/plugin/PluginMutex.h', | 145 'src/plugin/PluginMutex.h', |
129 'src/plugin/PluginPassthroughObject.h', | |
130 'src/plugin/PluginSettings.cpp', | 146 'src/plugin/PluginSettings.cpp', |
131 'src/plugin/PluginSettings.h', | 147 'src/plugin/PluginSettings.h', |
132 'src/plugin/PluginStdAfx.cpp', | 148 'src/plugin/PluginStdAfx.cpp', |
133 'src/plugin/PluginStdAfx.h', | 149 'src/plugin/PluginStdAfx.h', |
134 'src/plugin/PluginSystem.cpp', | 150 'src/plugin/PluginSystem.cpp', |
135 'src/plugin/PluginSystem.h', | 151 'src/plugin/PluginSystem.h', |
136 'src/plugin/PluginTabBase.cpp', | 152 'src/plugin/PluginTabBase.cpp', |
137 'src/plugin/PluginTabBase.h', | 153 'src/plugin/PluginTabBase.h', |
138 'src/plugin/PluginUserSettings.cpp', | 154 'src/plugin/PluginUserSettings.cpp', |
139 'src/plugin/PluginUserSettings.h', | 155 'src/plugin/PluginUserSettings.h', |
140 'src/plugin/PluginUtil.cpp', | 156 'src/plugin/PluginUtil.cpp', |
141 'src/plugin/PluginUtil.h', | 157 'src/plugin/PluginUtil.h', |
142 'src/plugin/PluginWbPassThrough.cpp', | 158 'src/plugin/PluginWbPassThrough.cpp', |
143 'src/plugin/PluginWbPassThrough.h', | 159 'src/plugin/PluginWbPassThrough.h', |
144 'src/plugin/Resource.h', | 160 'src/plugin/Resource.h', |
| 161 'src/plugin/passthroughapp/PassthroughObject.h', |
145 'src/plugin/passthroughapp/ProtocolCF.h', | 162 'src/plugin/passthroughapp/ProtocolCF.h', |
146 'src/plugin/passthroughapp/ProtocolCF.inl', | 163 'src/plugin/passthroughapp/ProtocolCF.inl', |
147 'src/plugin/passthroughapp/ProtocolImpl.h', | 164 'src/plugin/passthroughapp/ProtocolImpl.h', |
148 'src/plugin/passthroughapp/ProtocolImpl.inl', | 165 'src/plugin/passthroughapp/ProtocolImpl.inl', |
149 'src/plugin/passthroughapp/SinkPolicy.h', | 166 'src/plugin/passthroughapp/SinkPolicy.h', |
150 'src/plugin/passthroughapp/SinkPolicy.inl', | 167 'src/plugin/passthroughapp/SinkPolicy.inl', |
151 ], | 168 ], |
152 'include_dirs': [ | 169 'include_dirs': [ |
153 '$(WindowsSDK_IncludePath)', | 170 '$(ADBLOCKPLUS_ATL)/include', |
154 '$(VCInstallDir)atlmfc/include', | |
155 '$(WINDDKDIR)/inc/atl71', | |
156 ], | 171 ], |
157 # See "Adding Visual Style Support to an Extension, Plug-in, MMC Snap-in or
a DLL | 172 # See "Adding Visual Style Support to an Extension, Plug-in, MMC Snap-in or
a DLL |
158 # That Is Brought into a Process" on the link here: | 173 # That Is Brought into a Process" on the link here: |
159 # http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85
%29.aspx#using_manifests | 174 # http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85
%29.aspx#using_manifests |
160 'defines': ['ISOLATION_AWARE_ENABLED'], | 175 'defines': ['ISOLATION_AWARE_ENABLED'], |
161 'libraries': [ | 176 'libraries': [ |
162 '-lwinhttp', | 177 '-lwinhttp', |
163 '-lshell32', | 178 '-lshell32', |
164 '-lComctl32', | 179 '-lComctl32', |
165 '-lGdi32', | 180 '-lGdi32', |
166 ], | 181 ], |
167 'configurations': { | |
168 # 'libraries' is not allowed under 'configurations' :-( | |
169 'Debug': { | |
170 'msvs_settings': { | |
171 'VCLinkerTool': { | |
172 'AdditionalDependencies': ['atlsd.lib'], | |
173 }, | |
174 }, | |
175 }, | |
176 'Release': { | |
177 'msvs_settings': { | |
178 'VCLinkerTool': { | |
179 'AdditionalDependencies': ['atls.lib'], | |
180 }, | |
181 }, | |
182 }, | |
183 }, | |
184 'msvs_settings': { | 182 'msvs_settings': { |
185 'VCLinkerTool': { | 183 'VCLinkerTool': { |
186 'conditions': [[ | 184 'conditions': [[ |
187 'target_arch=="ia32"', { | 185 'target_arch=="ia32"', { |
188 'AdditionalLibraryDirectories': [ | 186 'AdditionalLibraryDirectories': [ |
189 '$(VCInstallDir)atlmfc/lib', | 187 '$(ADBLOCKPLUS_ATL)/lib', |
190 '$(WindowsSDK_LibraryPath_x86)', | |
191 '$(WINDDKDIR)/lib/ATL/i386', | |
192 ], | 188 ], |
193 }, { | 189 }, { |
194 'AdditionalLibraryDirectories': [ | 190 'AdditionalLibraryDirectories': [ |
195 '$(VCInstallDir)atlmfc/lib/amd64', | 191 '$(ADBLOCKPLUS_ATL)/lib/amd64', |
196 '$(WindowsSDK_LibraryPath_x64)', | |
197 '$(WINDDKDIR)/lib/ATL/amd64', | |
198 ], | 192 ], |
199 } | 193 } |
200 ]], | 194 ]], |
201 'DelayLoadDLLs': ['Shell32.dll'], | 195 'DelayLoadDLLs': ['Shell32.dll'], |
202 }, | 196 }, |
203 }, | 197 }, |
204 }, | 198 }, |
205 | 199 |
206 { | 200 { |
207 'target_name': 'tests', | 201 'target_name': 'tests', |
208 'type': 'executable', | 202 'type': 'executable', |
209 'dependencies': [ | 203 'dependencies': [ |
210 'shared', | 204 'shared', |
211 'libadblockplus/third_party/googletest.gyp:googletest_main', | 205 'libadblockplus/third_party/googletest.gyp:googletest_main', |
212 ], | 206 ], |
213 'sources': [ | 207 'sources': [ |
214 'test/CommunicationTest.cpp', | 208 'test/CommunicationTest.cpp', |
215 'test/DictionaryTest.cpp', | 209 'test/DictionaryTest.cpp', |
216 'test/UtilTest.cpp', | 210 'test/UtilTest.cpp', |
217 'test/UtilGetQueryStringTest.cpp', | 211 'test/UtilGetQueryStringTest.cpp', |
218 'test/UtilGetSchemeAndHierarchicalPartTest.cpp', | 212 'test/UtilGetSchemeAndHierarchicalPartTest.cpp', |
219 ], | 213 ], |
220 'defines': ['WINVER=0x0501'], | 214 'defines': ['WINVER=0x0501'], |
221 'link_settings': { | 215 'link_settings': { |
222 'libraries': ['-ladvapi32', '-lshell32', '-lole32'], | 216 'libraries': ['-ladvapi32', '-lshell32', '-lole32', '-loleaut32'], |
223 }, | 217 }, |
224 'msvs_settings': { | 218 'msvs_settings': { |
225 'VCLinkerTool': { | 219 'VCLinkerTool': { |
226 'SubSystem': '1', # Console | 220 'SubSystem': '1', # Console |
227 'EntryPointSymbol': 'mainCRTStartup', | 221 'EntryPointSymbol': 'mainCRTStartup', |
228 }, | 222 }, |
229 }, | 223 }, |
230 }, | 224 }, |
231 | 225 |
232 { | 226 { |
233 'target_name': 'tests_plugin', | 227 'target_name': 'tests_plugin', |
234 'type': 'executable', | 228 'type': 'executable', |
235 'dependencies': [ | 229 'dependencies': [ |
236 'shared', | 230 'shared', |
237 'libadblockplus/libadblockplus.gyp:libadblockplus', | 231 'libadblockplus/libadblockplus.gyp:libadblockplus', |
238 'libadblockplus/third_party/googletest.gyp:googletest_main', | 232 'libadblockplus/third_party/googletest.gyp:googletest_main', |
239 ], | 233 ], |
240 'sources': [ | 234 'sources': [ |
| 235 'src/plugin/PluginDebug.cpp', |
| 236 'test/plugin/DebugTest.cpp', |
| 237 'src/plugin/Instances.h', |
| 238 'test/plugin/InstancesTest.cpp', |
241 'src/plugin/PluginUserSettings.cpp', | 239 'src/plugin/PluginUserSettings.cpp', |
242 'src/plugin/PluginUserSettings.h', | 240 'src/plugin/PluginUserSettings.h', |
243 'test/plugin/UserSettingsTest.cpp', | 241 'test/plugin/UserSettingsTest.cpp', |
244 'src/plugin/PluginUtil.h', | 242 'src/plugin/PluginUtil.h', |
245 'test/plugin/UtilTest.cpp', | 243 'test/plugin/UtilTest.cpp', |
246 # | 244 # |
247 # required only for linking | 245 # required only for linking |
248 # | 246 # |
249 'src/plugin/AdblockPlusClient.cpp', | 247 'src/plugin/AdblockPlusClient.cpp', |
250 'src/plugin/AdblockPlusDomTraverser.cpp', | 248 'src/plugin/AdblockPlusDomTraverser.cpp', |
251 'src/plugin/ATL_Deprecate.cpp', | |
252 'src/plugin/NotificationMessage.cpp', | 249 'src/plugin/NotificationMessage.cpp', |
253 'src/plugin/Plugin.cpp', | 250 'src/plugin/Plugin.cpp', |
254 'src/plugin/PluginClientFactory.cpp', | 251 'src/plugin/PluginClientFactory.cpp', |
255 'src/plugin/PluginClass.cpp', | 252 'src/plugin/PluginClass.cpp', |
256 'src/plugin/PluginDebug.cpp', | |
257 'src/plugin/PluginFilter.cpp', | 253 'src/plugin/PluginFilter.cpp', |
258 'src/plugin/PluginMimeFilterClient.cpp', | 254 'src/plugin/PluginMimeFilterClient.cpp', |
259 'src/plugin/PluginMutex.cpp', | 255 'src/plugin/PluginMutex.cpp', |
260 'src/plugin/PluginSettings.cpp', | 256 'src/plugin/PluginSettings.cpp', |
261 'src/plugin/PluginSystem.cpp', | 257 'src/plugin/PluginSystem.cpp', |
262 'src/plugin/PluginTabBase.cpp', | 258 'src/plugin/PluginTabBase.cpp', |
263 'src/plugin/PluginUtil.cpp', | 259 'src/plugin/PluginUtil.cpp', |
264 'src/plugin/PluginWbPassthrough.cpp', | 260 'src/plugin/PluginWbPassthrough.cpp', |
265 ], | 261 ], |
266 'include_dirs': [ | 262 'include_dirs': [ |
267 '$(WINDDKDIR)/inc/atl71', | 263 '$(ADBLOCKPLUS_ATL)/include', |
268 ], | 264 ], |
269 'defines': [ | 265 'defines': [ |
270 'WINVER=0x0501', | 266 'WINVER=0x0501', |
271 'PRODUCT_ADBLOCKPLUS' | 267 'PRODUCT_ADBLOCKPLUS' |
272 ], | 268 ], |
273 'link_settings': { | 269 'link_settings': { |
274 'libraries': ['-ladvapi32', '-lshell32', '-lole32', '-lComctl32', '-lGdi32
'], | 270 'libraries': ['-ladvapi32', '-lshell32', '-lole32', '-lComctl32', '-lGdi32
'], |
275 }, | 271 }, |
276 'msvs_settings': { | 272 'msvs_settings': { |
277 'VCLinkerTool': { | 273 'VCLinkerTool': { |
278 'SubSystem': '1', # Console | 274 'SubSystem': '1', # Console |
279 'EntryPointSymbol': 'mainCRTStartup', | 275 'EntryPointSymbol': 'mainCRTStartup', |
280 'conditions': [[ | 276 'conditions': [[ |
281 'target_arch=="ia32"', { | 277 'target_arch=="ia32"', { |
282 'AdditionalLibraryDirectories': [ | 278 'AdditionalLibraryDirectories': [ |
283 '$(VCInstallDir)atlmfc/lib', | 279 '$(ADBLOCKPLUS_ATL)/lib', |
284 '$(WindowsSDK_LibraryPath_x86)', | |
285 '$(WINDDKDIR)/lib/ATL/i386', | |
286 ], | 280 ], |
287 }, { | 281 }, { |
288 'AdditionalLibraryDirectories': [ | 282 'AdditionalLibraryDirectories': [ |
289 '$(VCInstallDir)atlmfc/lib/amd64', | 283 '$(ADBLOCKPLUS_ATL)/lib/amd64', |
290 '$(WindowsSDK_LibraryPath_x64)', | |
291 '$(WINDDKDIR)/lib/ATL/amd64', | |
292 ], | 284 ], |
293 } | 285 } |
294 ]], | 286 ]], |
295 }, | |
296 }, | |
297 'configurations': { | |
298 # 'libraries' is not allowed under 'configurations' :-( | |
299 'Debug': { | |
300 'msvs_settings': { | |
301 'VCLinkerTool': { | |
302 'AdditionalDependencies': ['atlsd.lib'], | |
303 }, | |
304 }, | |
305 }, | |
306 'Release': { | |
307 'msvs_settings': { | |
308 'VCLinkerTool': { | |
309 'AdditionalDependencies': ['atls.lib'], | |
310 }, | |
311 }, | |
312 }, | 287 }, |
313 }, | 288 }, |
314 }, | 289 }, |
315 | 290 |
316 { | 291 { |
317 'target_name': 'tests_plugin_2', | 292 'target_name': 'tests_plugin_2', |
318 'type': 'executable', | 293 'type': 'executable', |
319 'dependencies': [ | 294 'dependencies': [ |
320 'libadblockplus/third_party/googletest.gyp:googletest_main', | 295 'libadblockplus/third_party/googletest.gyp:googletest_main', |
321 ], | 296 ], |
(...skipping 12 matching lines...) Expand all Loading... |
334 'msvs_settings': { | 309 'msvs_settings': { |
335 'VCLinkerTool': { | 310 'VCLinkerTool': { |
336 'SubSystem': '1', # Console | 311 'SubSystem': '1', # Console |
337 'EntryPointSymbol': 'mainCRTStartup', | 312 'EntryPointSymbol': 'mainCRTStartup', |
338 }, | 313 }, |
339 }, | 314 }, |
340 }, | 315 }, |
341 | 316 |
342 ] | 317 ] |
343 } | 318 } |
LEFT | RIGHT |