blob: a2547a2cd6d70a62150576e032b9f9b88e11e3d6 [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
import("//build/config/gclient_args.gni")
declare_args() {
# Enables Native Client support.
# Temporarily disable nacl on arm64 linux to get rid of compilation errors.
# Intentionally and permanently disable nacl om arm64 mac.
# TODO: When mipsel-nacl-clang is available, drop the exclusion.
enable_nacl =
checkout_nacl && target_os != "ios" && !is_android && !is_fuchsia &&
!is_chromecast && current_cpu != "mipsel" && current_cpu != "mips64el" &&
target_cpu != "arm64" && !(is_win && host_os != "win") &&
!(is_mac && (host_os != "mac" || target_cpu != "x64"))
}
assert(!(is_win && host_os != "win") || !enable_nacl,
"NaCl doesn't work in win cross builds, crbug.com/774186")
assert(!enable_nacl || checkout_nacl)