| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 2 | /* |
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * Copyright 2010 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | |
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 10 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 11 | #ifndef GrConfig_DEFINED |
| 12 | #define GrConfig_DEFINED |
| 13 | |
| robertphillips@google.com | 5955202 | 2012-08-31 13:07:37 +0000 | [diff] [blame] | 14 | #include "SkTypes.h" |
| 15 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 16 | /////////////////////////////////////////////////////////////////////////////// |
| 17 | // preconfig section: |
| 18 | // |
| 19 | // All the work before including GrUserConfig.h should center around guessing |
| 20 | // what platform we're on, and defining low-level symbols based on that. |
| 21 | // |
| 22 | // A build environment may have already defined symbols, so we first check |
| 23 | // for that |
| 24 | // |
| 25 | |
| 26 | // hack to ensure we know what sort of Apple platform we're on |
| 27 | #if defined(__APPLE_CPP__) || defined(__APPLE_CC__) |
| 28 | #include <TargetConditionals.h> |
| 29 | #endif |
| 30 | |
| 31 | /** |
| 32 | * Gr defines are set to 0 or 1, rather than being undefined or defined |
| 33 | */ |
| 34 | |
| 35 | #if !defined(GR_ANDROID_BUILD) |
| 36 | #define GR_ANDROID_BUILD 0 |
| 37 | #endif |
| 38 | #if !defined(GR_IOS_BUILD) |
| 39 | #define GR_IOS_BUILD 0 |
| 40 | #endif |
| 41 | #if !defined(GR_LINUX_BUILD) |
| 42 | #define GR_LINUX_BUILD 0 |
| 43 | #endif |
| 44 | #if !defined(GR_MAC_BUILD) |
| 45 | #define GR_MAC_BUILD 0 |
| 46 | #endif |
| 47 | #if !defined(GR_WIN32_BUILD) |
| 48 | #define GR_WIN32_BUILD 0 |
| 49 | #endif |
| 50 | #if !defined(GR_QNX_BUILD) |
| 51 | #define GR_QNX_BUILD 0 |
| 52 | #endif |
| robertphillips@google.com | 5955202 | 2012-08-31 13:07:37 +0000 | [diff] [blame] | 53 | #if !defined(GR_CACHE_STATS) |
| 54 | #define GR_CACHE_STATS 0 |
| 55 | #endif |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 56 | |
| 57 | /** |
| 58 | * If no build target has been defined, attempt to infer. |
| 59 | */ |
| 60 | #if !GR_ANDROID_BUILD && !GR_IOS_BUILD && !GR_LINUX_BUILD && !GR_MAC_BUILD && !GR_WIN32_BUILD && !GR_QNX_BUILD |
| 61 | #if defined(_WIN32) |
| 62 | #undef GR_WIN32_BUILD |
| 63 | #define GR_WIN32_BUILD 1 |
| 64 | // #error "WIN" |
| 65 | #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR |
| 66 | #undef GR_IOS_BUILD |
| 67 | #define GR_IOS_BUILD 1 |
| 68 | // #error "IOS" |
| djsollen@google.com | 56c6977 | 2011-11-08 19:00:26 +0000 | [diff] [blame] | 69 | #elif defined(SK_BUILD_FOR_ANDROID) |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 70 | #undef GR_ANDROID_BUILD |
| 71 | #define GR_ANDROID_BUILD 1 |
| 72 | // #error "ANDROID" |
| 73 | #elif TARGET_OS_MAC |
| 74 | #undef GR_MAC_BUILD |
| 75 | #define GR_MAC_BUILD 1 |
| 76 | // #error "MAC" |
| 77 | #elif TARGET_OS_QNX || defined(__QNXNTO__) |
| 78 | #undef GR_QNX_BUILD |
| 79 | #define GR_QNX_BUILD 1 |
| 80 | // #error "QNX" |
| 81 | #else |
| 82 | #undef GR_LINUX_BUILD |
| 83 | #define GR_LINUX_BUILD 1 |
| 84 | // #error "LINUX" |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 85 | #endif |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 86 | #endif |
| 87 | |
| commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame^] | 88 | #if !defined(SK_DEBUG) && !GR_RELEASE |
| 89 | #ifdef NDEBUG |
| 90 | #define GR_RELEASE 1 |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 91 | #endif |
| reed@google.com | c921843 | 2011-01-25 19:05:12 +0000 | [diff] [blame] | 92 | #endif |
| 93 | |
| commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame^] | 94 | #if defined(SK_DEBUG) && GR_RELEASE |
| 95 | #error "cannot define both SK_DEBUG and GR_RELEASE" |
| reed@google.com | c921843 | 2011-01-25 19:05:12 +0000 | [diff] [blame] | 96 | #endif |
| 97 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 98 | /////////////////////////////////////////////////////////////////////////////// |
| 99 | /////////////////////////////////////////////////////////////////////////////// |
| 100 | |
| senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 101 | #if GR_WIN32_BUILD |
| 102 | // VC8 doesn't support stdint.h, so we define those types here. |
| 103 | typedef signed char int8_t; |
| 104 | typedef unsigned char uint8_t; |
| 105 | typedef short int16_t; |
| 106 | typedef unsigned short uint16_t; |
| 107 | typedef int int32_t; |
| 108 | typedef unsigned uint32_t; |
| bsalomon@google.com | 4be283f | 2011-04-19 21:15:09 +0000 | [diff] [blame] | 109 | typedef __int64 int64_t; |
| 110 | typedef unsigned __int64 uint64_t; |
| senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 111 | #else |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 112 | /* |
| bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame] | 113 | * Include stdint.h with defines that trigger declaration of C99 limit/const |
| rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 114 | * macros here before anyone else has a chance to include stdint.h without |
| bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame] | 115 | * these. |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 116 | */ |
| senorblanco@chromium.org | f9a1455 | 2012-11-06 18:36:33 +0000 | [diff] [blame] | 117 | #ifndef __STDC_LIMIT_MACROS |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 118 | #define __STDC_LIMIT_MACROS |
| senorblanco@chromium.org | f9a1455 | 2012-11-06 18:36:33 +0000 | [diff] [blame] | 119 | #endif |
| 120 | #ifndef __STDC_CONSTANT_MACROS |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 121 | #define __STDC_CONSTANT_MACROS |
| senorblanco@chromium.org | f9a1455 | 2012-11-06 18:36:33 +0000 | [diff] [blame] | 122 | #endif |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 123 | #include <stdint.h> |
| senorblanco@chromium.org | 9d18b78 | 2011-03-28 20:47:09 +0000 | [diff] [blame] | 124 | #endif |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 125 | |
| 126 | /* |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 127 | * The "user config" file can be empty, and everything should work. It is |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 128 | * meant to store a given platform/client's overrides of our guess-work. |
| 129 | * |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 130 | * A alternate user config file can be specified by defining |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 131 | * GR_USER_CONFIG_FILE. It should be defined relative to GrConfig.h |
| 132 | * |
| commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame^] | 133 | * e.g. it can change the BUILD target or supply its own defines for anything |
| 134 | * else (e.g. GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT) |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 135 | */ |
| 136 | #if !defined(GR_USER_CONFIG_FILE) |
| 137 | #include "GrUserConfig.h" |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 138 | #else |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 139 | #include GR_USER_CONFIG_FILE |
| 140 | #endif |
| 141 | |
| 142 | |
| 143 | /////////////////////////////////////////////////////////////////////////////// |
| 144 | /////////////////////////////////////////////////////////////////////////////// |
| 145 | // postconfig section: |
| 146 | // |
| bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame] | 147 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 148 | // By now we must have a GR_..._BUILD symbol set to 1, and a decision about |
| 149 | // debug -vs- release |
| 150 | // |
| 151 | |
| bungeman@google.com | f85abda | 2012-03-22 17:56:29 +0000 | [diff] [blame] | 152 | #define GrPrintf SkDebugf |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 153 | |
| 154 | /** |
| 155 | * GR_STRING makes a string of X where X is expanded before conversion to a string |
| 156 | * if X itself contains macros. |
| 157 | */ |
| 158 | #define GR_STRING(X) GR_STRING_IMPL(X) |
| 159 | #define GR_STRING_IMPL(X) #X |
| 160 | |
| 161 | /** |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 162 | * GR_CONCAT concatenates X and Y where each is expanded before |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 163 | * contanenation if either contains macros. |
| 164 | */ |
| 165 | #define GR_CONCAT(X,Y) GR_CONCAT_IMPL(X,Y) |
| 166 | #define GR_CONCAT_IMPL(X,Y) X##Y |
| 167 | |
| 168 | /** |
| 169 | * Creates a string of the form "<filename>(<linenumber>) : " |
| 170 | */ |
| 171 | #define GR_FILE_AND_LINE_STR __FILE__ "(" GR_STRING(__LINE__) ") : " |
| 172 | |
| 173 | /** |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 174 | * Compilers have different ways of issuing warnings. This macro |
| 175 | * attempts to abstract them, but may need to be specialized for your |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 176 | * particular compiler. |
| 177 | * To insert compiler warnings use "#pragma message GR_WARN(<string>)" |
| 178 | */ |
| reed@google.com | c921843 | 2011-01-25 19:05:12 +0000 | [diff] [blame] | 179 | #if defined(_MSC_VER) && _MSC_VER |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 180 | #define GR_WARN(MSG) (GR_FILE_AND_LINE_STR "WARNING: " MSG) |
| 181 | #else//__GNUC__ - may need other defines for different compilers |
| 182 | #define GR_WARN(MSG) ("WARNING: " MSG) |
| 183 | #endif |
| 184 | |
| 185 | /** |
| 186 | * GR_ALWAYSBREAK is an unconditional break in all builds. |
| 187 | */ |
| 188 | #if !defined(GR_ALWAYSBREAK) |
| 189 | #if GR_WIN32_BUILD |
| bsalomon@google.com | 0442380 | 2011-11-23 21:25:35 +0000 | [diff] [blame] | 190 | #define GR_ALWAYSBREAK SkNO_RETURN_HINT(); __debugbreak() |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 191 | #else |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 192 | // TODO: do other platforms really not have continuable breakpoints? |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 193 | // sign extend for 64bit architectures to be sure this is |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 194 | // in the high address range |
| bsalomon@google.com | 0442380 | 2011-11-23 21:25:35 +0000 | [diff] [blame] | 195 | #define GR_ALWAYSBREAK SkNO_RETURN_HINT(); *((int*)(int64_t)(int32_t)0xbeefcafe) = 0; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 196 | #endif |
| 197 | #endif |
| 198 | |
| 199 | /** |
| 200 | * GR_DEBUGBREAK is an unconditional break in debug builds. |
| 201 | */ |
| 202 | #if !defined(GR_DEBUGBREAK) |
| commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame^] | 203 | #ifdef SK_DEBUG |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 204 | #define GR_DEBUGBREAK GR_ALWAYSBREAK |
| 205 | #else |
| 206 | #define GR_DEBUGBREAK |
| 207 | #endif |
| 208 | #endif |
| 209 | |
| 210 | /** |
| 211 | * GR_ALWAYSASSERT is an assertion in all builds. |
| 212 | */ |
| 213 | #if !defined(GR_ALWAYSASSERT) |
| 214 | #define GR_ALWAYSASSERT(COND) \ |
| 215 | do { \ |
| 216 | if (!(COND)) { \ |
| 217 | GrPrintf("%s %s failed\n", GR_FILE_AND_LINE_STR, #COND); \ |
| 218 | GR_ALWAYSBREAK; \ |
| 219 | } \ |
| 220 | } while (false) |
| 221 | #endif |
| 222 | |
| 223 | /** |
| 224 | * GR_DEBUGASSERT is an assertion in debug builds only. |
| 225 | */ |
| 226 | #if !defined(GR_DEBUGASSERT) |
| commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame^] | 227 | #ifdef SK_DEBUG |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 228 | #define GR_DEBUGASSERT(COND) GR_ALWAYSASSERT(COND) |
| 229 | #else |
| 230 | #define GR_DEBUGASSERT(COND) |
| 231 | #endif |
| 232 | #endif |
| 233 | |
| 234 | /** |
| 235 | * Prettier forms of the above macros. |
| 236 | */ |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 237 | #define GrAlwaysAssert(COND) GR_ALWAYSASSERT(COND) |
| 238 | |
| 239 | /** |
| commit-bot@chromium.org | 8d47ddc | 2013-05-09 14:55:46 +0000 | [diff] [blame] | 240 | * Crash from unrecoverable condition, optionally with a message. The debug variants only |
| 241 | * crash in a debug build. The message versions print the message regardless of release vs debug. |
| bsalomon@google.com | 6f7fbc9 | 2011-02-01 19:12:40 +0000 | [diff] [blame] | 242 | */ |
| 243 | inline void GrCrash() { GrAlwaysAssert(false); } |
| 244 | inline void GrCrash(const char* msg) { GrPrintf(msg); GrAlwaysAssert(false); } |
| tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 245 | inline void GrDebugCrash() { SkASSERT(false); } |
| 246 | inline void GrDebugCrash(const char* msg) { GrPrintf(msg); SkASSERT(false); } |
| bsalomon@google.com | 6f7fbc9 | 2011-02-01 19:12:40 +0000 | [diff] [blame] | 247 | |
| 248 | /** |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 249 | * GR_DEBUGCODE compiles the code X in debug builds only |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 250 | */ |
| 251 | #if !defined(GR_DEBUGCODE) |
| commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame^] | 252 | #ifdef SK_DEBUG |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 253 | #define GR_DEBUGCODE(X) X |
| 254 | #else |
| 255 | #define GR_DEBUGCODE(X) |
| 256 | #endif |
| 257 | #endif |
| 258 | |
| 259 | /** |
| 260 | * GR_STATIC_ASSERT is a compile time assertion. Depending on the platform |
| 261 | * it may print the message in the compiler log. Obviously, the condition must |
| 262 | * be evaluatable at compile time. |
| 263 | */ |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 264 | // VS 2010 and GCC compiled with c++0x or gnu++0x support the new |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 265 | // static_assert. |
| 266 | #if !defined(GR_STATIC_ASSERT) |
| reed@google.com | c921843 | 2011-01-25 19:05:12 +0000 | [diff] [blame] | 267 | #if (defined(_MSC_VER) && _MSC_VER >= 1600) || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__) |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 268 | #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") |
| 269 | #else |
| 270 | template <bool> class GR_STATIC_ASSERT_FAILURE; |
| 271 | template <> class GR_STATIC_ASSERT_FAILURE<true> {}; |
| 272 | #define GR_STATIC_ASSERT(CONDITION) \ |
| 273 | enum {GR_CONCAT(X,__LINE__) = \ |
| 274 | sizeof(GR_STATIC_ASSERT_FAILURE<CONDITION>)} |
| 275 | #endif |
| 276 | #endif |
| 277 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 278 | /** |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 279 | * GR_GEOM_BUFFER_LOCK_THRESHOLD gives a threshold (in bytes) for when Gr should |
| bsalomon@google.com | 96e96df | 2011-10-10 14:49:29 +0000 | [diff] [blame] | 280 | * lock a GrGeometryBuffer to update its contents. It will use lock() if the |
| 281 | * size of the updated region is greater than the threshold. Otherwise it will |
| 282 | * use updateData(). |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 283 | */ |
| 284 | #if !defined(GR_GEOM_BUFFER_LOCK_THRESHOLD) |
| 285 | #define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15) |
| 286 | #endif |
| 287 | |
| djsollen@google.com | 42041e6 | 2012-10-29 19:24:45 +0000 | [diff] [blame] | 288 | /** |
| 289 | * GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the |
| 290 | * maximum size of the texture cache in vram. The value is only a default and |
| 291 | * can be overridden at runtime. |
| 292 | */ |
| 293 | #if !defined(GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT) |
| 294 | #define GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT 96 |
| 295 | #endif |
| 296 | |
| senorblanco@chromium.org | e0d44ff | 2012-11-19 20:43:10 +0000 | [diff] [blame] | 297 | /** |
| sugoi@google.com | e3453cb | 2013-01-07 14:26:40 +0000 | [diff] [blame] | 298 | * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can be selected |
| 299 | * as a path renderer. GrStrokePathRenderer is currently an experimental path renderer. |
| 300 | */ |
| 301 | #if !defined(GR_STROKE_PATH_RENDERING) |
| 302 | #define GR_STROKE_PATH_RENDERING 0 |
| 303 | #endif |
| 304 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 305 | /////////////////////////////////////////////////////////////////////////////// |
| 306 | // tail section: |
| 307 | // |
| 308 | // Now we just assert if we are missing some required define, or if we detect |
| 309 | // and inconsistent combination of defines |
| 310 | // |
| 311 | |
| 312 | |
| 313 | /** |
| 314 | * Only one build target macro should be 1 and the rest should be 0. |
| 315 | */ |
| 316 | #define GR_BUILD_SUM (GR_WIN32_BUILD + GR_MAC_BUILD + GR_IOS_BUILD + GR_ANDROID_BUILD + GR_LINUX_BUILD + GR_QNX_BUILD) |
| 317 | #if 0 == GR_BUILD_SUM |
| 318 | #error "Missing a GR_BUILD define" |
| 319 | #elif 1 != GR_BUILD_SUM |
| 320 | #error "More than one GR_BUILD defined" |
| 321 | #endif |
| 322 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 323 | #if 0 |
| 324 | #if GR_WIN32_BUILD |
| 325 | // #pragma message GR_WARN("GR_WIN32_BUILD") |
| 326 | #endif |
| 327 | #if GR_MAC_BUILD |
| 328 | // #pragma message GR_WARN("GR_MAC_BUILD") |
| 329 | #endif |
| 330 | #if GR_IOS_BUILD |
| 331 | // #pragma message GR_WARN("GR_IOS_BUILD") |
| 332 | #endif |
| 333 | #if GR_ANDROID_BUILD |
| 334 | // #pragma message GR_WARN("GR_ANDROID_BUILD") |
| 335 | #endif |
| 336 | #if GR_LINUX_BUILD |
| 337 | // #pragma message GR_WARN("GR_LINUX_BUILD") |
| 338 | #endif |
| 339 | #if GR_QNX_BUILD |
| 340 | // #pragma message GR_WARN("GR_QNX_BUILD") |
| 341 | #endif |
| 342 | #endif |
| 343 | |
| 344 | #endif |