OLD | NEW |
1 #ifndef _CONFIG_H | 1 #ifndef _CONFIG_H |
2 #define _CONFIG_H | 2 #define _CONFIG_H |
3 | 3 |
4 // ---------------------------------------------------------------------------- | 4 // ---------------------------------------------------------------------------- |
5 // Filter configuration | 5 // Filter configuration |
6 // ---------------------------------------------------------------------------- | 6 // ---------------------------------------------------------------------------- |
7 | 7 |
8 #ifdef NDEBUG | 8 #ifdef NDEBUG |
9 #undef _DEBUG | 9 #undef _DEBUG |
10 #endif | 10 #endif |
11 | 11 |
12 // Define filter configuration | 12 // Define filter configuration |
13 #if (defined PRODUCT_ADBLOCKPLUS) | 13 #if (defined PRODUCT_ADBLOCKPLUS) |
14 #define FILTERS_PROTOCOL "https://" | 14 #define FILTERS_PROTOCOL "https://" |
15 #define FILTERS_HOST "easylist-downloads.adblockplus.org" | 15 #define FILTERS_HOST "easylist-downloads.adblockplus.org" |
| 16 #ifdef AVAST_ABP |
16 #ifdef _DEBUG | 17 #ifdef _DEBUG |
17 #define PLUGIN_UPDATE_URL "127.0.0.1/abpupdate.txt" | 18 #define PLUGIN_UPDATE_URL "update.txt" |
18 #else | 19 #else |
19 #define PLUGIN_UPDATE_URL "update.adblockplus.org" | 20 #define PLUGIN_UPDATE_URL "avastupdate.txt" |
| 21 #endif |
| 22 #else |
| 23 #define PLUGIN_UPDATE_URL "abpupdate.txt" |
20 #endif | 24 #endif |
21 #endif | 25 #endif |
22 | 26 |
23 // ---------------------------------------------------------------------------- | 27 // ---------------------------------------------------------------------------- |
24 // Define default protocols, hosts, scripts and pages | 28 // Define default protocols, hosts, scripts and pages |
25 // ---------------------------------------------------------------------------- | 29 // ---------------------------------------------------------------------------- |
26 | 30 |
27 #define USERS_PROTOCOL L"http://" | 31 #define USERS_PROTOCOL L"http://" |
28 #define USERS_PATH L"" | 32 #define USERS_PATH L"" |
29 #define USERS_PORT INTERNET_DEFAULT_HTTP_PORT | 33 #define USERS_PORT INTERNET_DEFAULT_HTTP_PORT |
(...skipping 11 matching lines...) Expand all Loading... |
41 // ---------------------------------------------------------------------------- | 45 // ---------------------------------------------------------------------------- |
42 // Define actual configurations | 46 // Define actual configurations |
43 // ---------------------------------------------------------------------------- | 47 // ---------------------------------------------------------------------------- |
44 | 48 |
45 // AdBlocker configuration | 49 // AdBlocker configuration |
46 | 50 |
47 | 51 |
48 #if (defined PRODUCT_ADBLOCKPLUS) | 52 #if (defined PRODUCT_ADBLOCKPLUS) |
49 #define SADOMAIN L"simple-adblock.com" | 53 #define SADOMAIN L"simple-adblock.com" |
50 #ifdef ADPLUGIN_TEST_MODE | 54 #ifdef ADPLUGIN_TEST_MODE |
51 #define USERS_HOST L"" | 55 #define USERS_HOST L"127.0.0.1" |
52 #elif (defined ADPLUGIN_PRODUCTION_MODE) | 56 #elif (defined ADPLUGIN_PRODUCTION_MODE) |
53 #define USERS_HOST L"" | 57 #ifdef _DEBUG |
| 58 #define USERS_HOST L"127.0.0.1" |
| 59 #else |
| 60 #define USERS_HOST L"update.adblockplus.org" |
| 61 #endif |
54 #else | 62 #else |
55 #error "Undefined mode. Please use configuation Release Production/Test or Deb
ug Production/Test" | 63 #error "Undefined mode. Please use configuation Release Production/Test or Deb
ug Production/Test" |
56 #endif | 64 #endif |
57 #else | 65 #else |
58 #error "Undefined product. Please specify PRODUCT_ADBLOCKPLUS in configuration" | 66 #error "Undefined product. Please specify PRODUCT_ADBLOCKPLUS in configuration" |
59 #endif | 67 #endif |
60 | 68 |
61 // ---------------------------------------------------------------------------- | 69 // ---------------------------------------------------------------------------- |
62 // Timers | 70 // Timers |
63 // ---------------------------------------------------------------------------- | 71 // ---------------------------------------------------------------------------- |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 #define ENABLE_DEBUG_RESULT_IGNORED | 107 #define ENABLE_DEBUG_RESULT_IGNORED |
100 #define ENABLE_DEBUG_SPLIT_FILE | 108 #define ENABLE_DEBUG_SPLIT_FILE |
101 #else | 109 #else |
102 #undef ENABLE_DEBUG_INFO | 110 #undef ENABLE_DEBUG_INFO |
103 #endif | 111 #endif |
104 | 112 |
105 #ifdef NDEBUG | 113 #ifdef NDEBUG |
106 #undef ENABLE_DEBUG_INFO | 114 #undef ENABLE_DEBUG_INFO |
107 #endif | 115 #endif |
108 | 116 |
| 117 #define ENABLE_DEBUG_INFO |
109 #undef ENABLE_DEBUG_SELFTEST | 118 #undef ENABLE_DEBUG_SELFTEST |
110 | 119 |
111 #define DEBUG_FUNC CPluginDebug::Debug | 120 #define DEBUG_FUNC CPluginDebug::Debug |
112 #define DEBUG_ERROR_FUNC CPluginDebug::DebugError | 121 #define DEBUG_ERROR_FUNC CPluginDebug::DebugError |
113 #define DEBUG_ERROR_CODE_FUNC CPluginDebug::DebugErrorCode | 122 #define DEBUG_ERROR_CODE_FUNC CPluginDebug::DebugErrorCode |
114 | 123 |
115 #if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_GENERAL) | 124 #if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_GENERAL) |
116 #undef DEBUG_GENERAL | 125 #undef DEBUG_GENERAL |
117 #define DEBUG_GENERAL(x) DEBUG_FUNC(x); | 126 #define DEBUG_GENERAL(x) DEBUG_FUNC(x); |
118 #endif | 127 #endif |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 #endif | 313 #endif |
305 | 314 |
306 // Status bar pane number | 315 // Status bar pane number |
307 #if (defined PRODUCT_ADBLOCKPLUS) | 316 #if (defined PRODUCT_ADBLOCKPLUS) |
308 #define STATUSBAR_PANE_NUMBER 2 | 317 #define STATUSBAR_PANE_NUMBER 2 |
309 #endif | 318 #endif |
310 | 319 |
311 | 320 |
312 | 321 |
313 #endif // _CONFIG_H | 322 #endif // _CONFIG_H |
OLD | NEW |