Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: include/core/SkPreConfig.h

Issue 2205173003: Make SK_BUILD_FOR_WIN32 auto-detection work. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #define SkPreConfig_DEFINED 11 #define SkPreConfig_DEFINED
12 12
13 // Allows embedders that want to disable macros that take arguments to just 13 // Allows embedders that want to disable macros that take arguments to just
14 // define that symbol to be one of these 14 // define that symbol to be one of these
15 #define SK_NOTHING_ARG1(arg1) 15 #define SK_NOTHING_ARG1(arg1)
16 #define SK_NOTHING_ARG2(arg1, arg2) 16 #define SK_NOTHING_ARG2(arg1, arg2)
17 #define SK_NOTHING_ARG3(arg1, arg2, arg3) 17 #define SK_NOTHING_ARG3(arg1, arg2, arg3)
18 18
19 ////////////////////////////////////////////////////////////////////// 19 //////////////////////////////////////////////////////////////////////
20 20
21 #if !defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_IOS) && !defined(SK_ BUILD_FOR_WIN32) && !defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_MAC) 21 #if !defined(SK_BUILD_FOR_ANDROID) && !defined(SK_BUILD_FOR_IOS) && !defined(SK_ BUILD_FOR_WIN32) && !defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_MAC)
22 22
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(__Fuchsia__) || \ 33 defined(__DragonFly__) || defined(__Fuchsia__) || \
34 defined(__GLIBC__) || defined(__GNU__) || 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
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 * 263 *
264 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 264 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
265 */ 265 */
266 #if SK_HAS_ATTRIBUTE(optimize) 266 #if SK_HAS_ATTRIBUTE(optimize)
267 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 267 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
268 #else 268 #else
269 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 269 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
270 #endif 270 #endif
271 271
272 #endif 272 #endif
OLDNEW
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698