mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
Support compilation of Dawn on iOS.
BUG=dawn:225 Change-Id: I618552c55c8472adc25625733b59d972d7297f57 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11040 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
45f9185de5
commit
b495e48405
@@ -17,15 +17,27 @@
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
# define DAWN_PLATFORM_WINDOWS 1
|
||||
|
||||
#elif defined(__linux__)
|
||||
# define DAWN_PLATFORM_LINUX 1
|
||||
# define DAWN_PLATFORM_POSIX 1
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define DAWN_PLATFORM_APPLE 1
|
||||
# define DAWN_PLATFORM_POSIX 1
|
||||
# include <TargetConditionals.h>
|
||||
# if TARGET_OS_IPHONE
|
||||
# define DAWN_PLATFORM_IOS
|
||||
# elif TARGET_OS_MAC
|
||||
# define DAWN_PLATFORM_MACOS
|
||||
# else
|
||||
# error "Unsupported Apple platform."
|
||||
# endif
|
||||
|
||||
#elif defined(__Fuchsia__)
|
||||
# define DAWN_PLATFORM_FUCHSIA 1
|
||||
# define DAWN_PLATFORM_POSIX 1
|
||||
|
||||
#else
|
||||
# error "Unsupported platform."
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user