| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 #else | 150 #else |
| 151 #include GR_USER_CONFIG_FILE | 151 #include GR_USER_CONFIG_FILE |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 | 154 |
| 155 /////////////////////////////////////////////////////////////////////////////// | 155 /////////////////////////////////////////////////////////////////////////////// |
| 156 /////////////////////////////////////////////////////////////////////////////// | 156 /////////////////////////////////////////////////////////////////////////////// |
| 157 // postconfig section: | 157 // postconfig section: |
| 158 // | 158 // |
| 159 | 159 |
| 160 // GR_IMPLEMENTATION should be define to 1 when building Gr and 0 when including | |
| 161 // it in another dependent build. The Gr makefile/ide-project should define this | |
| 162 // to 1. | |
| 163 #if !defined(GR_IMPLEMENTATION) | |
| 164 #define GR_IMPLEMENTATION 0 | |
| 165 #endif | |
| 166 | |
| 167 // If Gr is built as a shared library then GR_DLL should be defined to 1 (both | |
| 168 // when building Gr and when including its headers in dependent builds). Only | |
| 169 // currently supported minimally for Chrome's Win32 Multi-DLL build (TODO: | |
| 170 // correctly exort all of the public API correctly and support shared lib on | |
| 171 // other platforms). | |
| 172 #if !defined(GR_DLL) | |
| 173 #define GR_DLL 0 | |
| 174 #endif | |
| 175 | |
| 176 #if GR_DLL | |
| 177 #if GR_WIN32_BUILD | |
| 178 #if GR_IMPLEMENTATION | |
| 179 #define GR_API __declspec(dllexport) | |
| 180 #else | |
| 181 #define GR_API __declspec(dllimport) | |
| 182 #endif | |
| 183 #else | |
| 184 #define GR_API __attribute__((visibility("default"))) | |
| 185 #endif | |
| 186 #else | |
| 187 #define GR_API | |
| 188 #endif | |
| 189 | |
| 190 // By now we must have a GR_..._BUILD symbol set to 1, and a decision about | 160 // By now we must have a GR_..._BUILD symbol set to 1, and a decision about |
| 191 // debug -vs- release | 161 // debug -vs- release |
| 192 // | 162 // |
| 193 | 163 |
| 194 #define GrPrintf SkDebugf | 164 #define GrPrintf SkDebugf |
| 195 | 165 |
| 196 /** | 166 /** |
| 197 * GR_STRING makes a string of X where X is expanded before conversion to a str
ing | 167 * GR_STRING makes a string of X where X is expanded before conversion to a str
ing |
| 198 * if X itself contains macros. | 168 * if X itself contains macros. |
| 199 */ | 169 */ |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 #endif | 347 #endif |
| 378 #if GR_LINUX_BUILD | 348 #if GR_LINUX_BUILD |
| 379 // #pragma message GR_WARN("GR_LINUX_BUILD") | 349 // #pragma message GR_WARN("GR_LINUX_BUILD") |
| 380 #endif | 350 #endif |
| 381 #if GR_QNX_BUILD | 351 #if GR_QNX_BUILD |
| 382 // #pragma message GR_WARN("GR_QNX_BUILD") | 352 // #pragma message GR_WARN("GR_QNX_BUILD") |
| 383 #endif | 353 #endif |
| 384 #endif | 354 #endif |
| 385 | 355 |
| 386 #endif | 356 #endif |
| OLD | NEW |