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