This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 2
2
# Use of this source code is governed by a BSD-style license that can be
3
3
# found in the LICENSE file.
4
4
5
+ import (" //flutter/flutter_vma/config.gni" )
6
+
5
7
source_set (" flutter_vma" ) {
6
8
sources = [
7
9
" flutter_vma.cc" ,
8
10
" flutter_vma.h" ,
9
11
]
10
12
13
+ if (disable_vma_stl_shared_mutex ) {
14
+ defines = [ " VMA_USE_STL_SHARED_MUTEX=0" ]
15
+ }
16
+
11
17
deps = [
12
18
" //third_party/vulkan-deps/vulkan-headers/src:vulkan_headers" ,
13
19
" //third_party/vulkan_memory_allocator" ,
Original file line number Diff line number Diff line change
1
+ # Copyright 2013 The Flutter Authors. All rights reserved.
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+
5
+ declare_args () {
6
+ disable_vma_stl_shared_mutex = false
7
+ }
Original file line number Diff line number Diff line change @@ -438,6 +438,10 @@ def to_gn_args(args):
438
438
gn_args['skia_use_vulkan'] = True
439
439
gn_args['skia_use_vma'] = False
440
440
gn_args['shell_enable_vulkan'] = True
441
+ # Disable VMA's use of std::shared_mutex in environments where the
442
+ # standard library doesn't support it.
443
+ if args.target_os == 'ios' or sys.platform.startswith(('cygwin', 'win')):
444
+ gn_args['disable_vma_stl_shared_mutex'] = True
441
445
442
446
# We should not need a special case for x86, but this seems to introduce text relocations
443
447
# even with -fPIC everywhere.
You can’t perform that action at this time.
0 commit comments