mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
47 lines
2.0 KiB
Plaintext
47 lines
2.0 KiB
Plaintext
|
# Copyright 2016 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/chrome_build.gni")
|
||
|
import("//build/config/chromecast_build.gni")
|
||
|
import("//build/config/gclient_args.gni")
|
||
|
import("//chrome/android/channel.gni")
|
||
|
|
||
|
declare_args() {
|
||
|
# TODO(733935): Enable for other Android architectures too. Currently we only
|
||
|
# support arm and arm64.
|
||
|
enable_gvr_services = is_android && !is_chromecast &&
|
||
|
(current_cpu == "arm" || current_cpu == "arm64")
|
||
|
enable_openvr = is_win
|
||
|
|
||
|
# To build with Oculus support, the Oculus SDK for Windows will need to be
|
||
|
# installed in third_party/libovr/src. See
|
||
|
# third_party/libovr/README.chromium for details.
|
||
|
enable_oculus_vr = checkout_oculus_sdk && is_chrome_branded && is_win
|
||
|
}
|
||
|
|
||
|
declare_args() {
|
||
|
# Enable VR device support whenever VR device SDK(s) are supported.
|
||
|
# We enable VR on Linux even though VR features aren't usable because
|
||
|
# the binary size impact is small and allows many VR tests to run on Linux
|
||
|
enable_vr =
|
||
|
enable_gvr_services || enable_openvr || enable_oculus_vr ||
|
||
|
(is_desktop_linux && (current_cpu == "x64" || current_cpu == "x86"))
|
||
|
|
||
|
# Whether to include VR extras like test APKs in non-VR-specific targets
|
||
|
include_vr_data = false
|
||
|
|
||
|
# TODO(crbug.com/837999, crbug.com/841389): We currently only support arm and
|
||
|
# we are limiting to canary and dev until binary size issues are resolved.
|
||
|
# TODO(crbug.com/845080): add android_channel == "dev" || "canary"
|
||
|
package_arcore = is_android && !is_chromecast && current_cpu == "arm" &&
|
||
|
android_channel == "default"
|
||
|
|
||
|
# TODO(crbug.com/841389): We should eventually have a single flag for
|
||
|
# enabling arcore, but we currently don't support ARCore in 64bit, and we do
|
||
|
# not support all channels. This flag governs the inclusion of code that must
|
||
|
# be identical across configs.
|
||
|
enable_arcore = is_android && !is_chromecast &&
|
||
|
(current_cpu == "arm" || current_cpu == "arm64")
|
||
|
}
|