OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // IWYU pragma: private, include "SkTypes.h" | 8 // IWYU pragma: private, include "SkTypes.h" |
9 | 9 |
10 #ifndef SkPreConfig_DEFINED | 10 #ifndef SkPreConfig_DEFINED |
(...skipping 12 matching lines...) Expand all Loading... |
23 #ifdef __APPLE__ | 23 #ifdef __APPLE__ |
24 #include "TargetConditionals.h" | 24 #include "TargetConditionals.h" |
25 #endif | 25 #endif |
26 | 26 |
27 #if defined(WIN32) || defined(__SYMBIAN32__) | 27 #if defined(WIN32) || defined(__SYMBIAN32__) |
28 #define SK_BUILD_FOR_WIN32 | 28 #define SK_BUILD_FOR_WIN32 |
29 #elif defined(ANDROID) | 29 #elif defined(ANDROID) |
30 #define SK_BUILD_FOR_ANDROID | 30 #define SK_BUILD_FOR_ANDROID |
31 #elif defined(linux) || defined(__linux) || defined(__FreeBSD__) || \ | 31 #elif defined(linux) || defined(__linux) || defined(__FreeBSD__) || \ |
32 defined(__OpenBSD__) || defined(__sun) || defined(__NetBSD__) || \ | 32 defined(__OpenBSD__) || defined(__sun) || defined(__NetBSD__) || \ |
33 defined(__DragonFly__) || defined(__GLIBC__) || defined(__GNU__) || \ | 33 defined(__DragonFly__) || defined(__Fuchsia__) || \ |
34 defined(__unix__) | 34 defined(__GLIBC__) || defined(__GNU__) || defined(__unix__) |
35 #define SK_BUILD_FOR_UNIX | 35 #define SK_BUILD_FOR_UNIX |
36 #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR | 36 #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR |
37 #define SK_BUILD_FOR_IOS | 37 #define SK_BUILD_FOR_IOS |
38 #else | 38 #else |
39 #define SK_BUILD_FOR_MAC | 39 #define SK_BUILD_FOR_MAC |
40 #endif | 40 #endif |
41 | 41 |
42 #endif | 42 #endif |
43 | 43 |
44 /* Even if the user only defined the framework variant we still need to build | 44 /* Even if the user only defined the framework variant we still need to build |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 * | 261 * |
262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 262 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
263 */ | 263 */ |
264 #if SK_HAS_ATTRIBUTE(optimize) | 264 #if SK_HAS_ATTRIBUTE(optimize) |
265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 265 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
266 #else | 266 #else |
267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
268 #endif | 268 #endif |
269 | 269 |
270 #endif | 270 #endif |
OLD | NEW |