Fix GN warnings related to ANGLE (flutter/engine#34336)
This commit is contained in:
@@ -533,17 +533,27 @@ def to_gn_args(args):
|
||||
if args.prebuilt_impellerc is not None:
|
||||
gn_args['impeller_use_prebuilt_impellerc'] = args.prebuilt_impellerc
|
||||
|
||||
# Do not build unnecessary parts of the ANGLE tree.
|
||||
gn_args['angle_build_all'] = False
|
||||
# Requires RTTI. We may want to build this in debug modes, punting on that
|
||||
# for now.
|
||||
gn_args['angle_enable_vulkan_validation_layers'] = False
|
||||
gn_args['angle_vulkan_headers_dir'
|
||||
] = '//third_party/vulkan-deps/vulkan-headers/src'
|
||||
gn_args['angle_vulkan_loader_dir'
|
||||
] = '//third_party/vulkan-deps/vulkan-loader/src'
|
||||
gn_args['angle_vulkan_tools_dir'
|
||||
] = '//third_party/vulkan-deps/vulkan-tools/src'
|
||||
# ANGLE is exclusively used for:
|
||||
# - Windows at runtime
|
||||
# - Non-fuchsia host unit tests (is_host_build evaluates to false).
|
||||
# Setting these variables creates warnings otherwise.
|
||||
# If we add ANGLE usage on other platforms, include them here.
|
||||
# There is a special case for Android on Windows because there we _only_ build
|
||||
# gen_snapshot, but the build defines otherwise make it look like the build is
|
||||
# for a host Windows build and make GN think we will be building ANGLE.
|
||||
if is_host_build(args) or (args.target_os == 'android' and
|
||||
get_host_os() == 'win'):
|
||||
# Do not build unnecessary parts of the ANGLE tree.
|
||||
gn_args['angle_build_all'] = False
|
||||
# Requires RTTI. We may want to build this in debug modes, punting on that
|
||||
# for now.
|
||||
gn_args['angle_enable_vulkan_validation_layers'] = False
|
||||
gn_args['angle_vulkan_headers_dir'
|
||||
] = '//third_party/vulkan-deps/vulkan-headers/src'
|
||||
gn_args['angle_vulkan_loader_dir'
|
||||
] = '//third_party/vulkan-deps/vulkan-loader/src'
|
||||
gn_args['angle_vulkan_tools_dir'
|
||||
] = '//third_party/vulkan-deps/vulkan-tools/src'
|
||||
|
||||
return gn_args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user