mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
- Adds an explicit option for not building the GLFW embedding. - Disables GLFW by default on Windows, where it's no longer the uploaded embedding. - Moves the X11 pkg-config, which is only used by the GLFW embedding, behind the GLFW build flag.
14 lines
590 B
Plaintext
14 lines
590 B
Plaintext
# Copyright 2013 The Flutter Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
# Whether to build the GLFW shell for the host platform, if available.
|
|
#
|
|
# By default, the GLFW shell is not built if there is a native toolkit shell,
|
|
# but it can be enabled for supported platforms (Windows, macOS, and Linux)
|
|
# as an extra build artifact with this flag. The native toolkit shell will
|
|
# still be built as well.
|
|
build_glfw_shell = is_linux && current_toolchain == host_toolchain
|
|
}
|