Only build "common" on supported systems
src/common/BUILD.gn contains common dawn configs and will be discovered by all Chromium builds. "common" doesn't build on all system, for example Fuchsia so we only expose the target if we are on a supported system. BUG=dawn:61 Change-Id: Ib12b1bd3e32529e1969fdc2fc50af05f8e97e7df Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/5360 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
579cf621f3
commit
aa9d6ad09d
|
@ -71,6 +71,10 @@ config("dawn_internal") {
|
|||
# Common dawn library
|
||||
###############################################################################
|
||||
|
||||
# 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) {
|
||||
static_library("common") {
|
||||
sources = [
|
||||
"Assert.cpp",
|
||||
|
@ -98,3 +102,4 @@ static_library("common") {
|
|||
"${dawn_root}/src/dawn:dawn_headers",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue