mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
Allow compilation of Dawn on Android
BUG=dawn:286 Change-Id: Ia65b57fde12a1260d29913f61f9b24eded7dbc30 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13822 Reviewed-by: David Turner <digit@google.com> 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
00b1e38f3b
commit
673146475f
@@ -79,7 +79,7 @@ config("dawn_internal") {
|
||||
# This GN file is discovered by all Chromium builds, but common doesn't support
|
||||
# all of Chromium's OSes so we explicitly make the target visible only on
|
||||
# systems we know Dawn is able to compile on.
|
||||
if (is_win || is_linux || is_mac || is_fuchsia) {
|
||||
if (is_win || is_linux || is_mac || is_fuchsia || is_android) {
|
||||
static_library("common") {
|
||||
sources = [
|
||||
"Assert.cpp",
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#elif defined(__linux__)
|
||||
# define DAWN_PLATFORM_LINUX 1
|
||||
# define DAWN_PLATFORM_POSIX 1
|
||||
# if defined(__ANDROID__)
|
||||
# define DAWN_PLATFORM_ANDROID 1
|
||||
# endif
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define DAWN_PLATFORM_APPLE 1
|
||||
|
||||
Reference in New Issue
Block a user