@@ -32,8 +32,7 @@ def IsLinux():
32
32
def IsMac ():
33
33
return platform .system () == 'Darwin'
34
34
35
-
36
- def GetPMBinPath ():
35
+ def GetFuchsiaSDKPath ():
37
36
# host_os references the gn host_os
38
37
# https://gn.googlesource.com/gn/+/master/docs/reference.md#var_host_os
39
38
host_os = ''
@@ -44,7 +43,11 @@ def GetPMBinPath():
44
43
else :
45
44
host_os = 'windows'
46
45
47
- return os .path .join (_src_root_dir , 'fuchsia' , 'sdk' , host_os , 'tools' , 'pm' )
46
+ return os .path .join (_src_root_dir , 'fuchsia' , 'sdk' , host_os )
47
+
48
+
49
+ def GetPMBinPath ():
50
+ return os .path .join (GetFuchsiaSDKPath (), 'tools' , 'pm' )
48
51
49
52
50
53
def RunExecutable (command ):
@@ -149,10 +152,20 @@ def CopyToBucket(src, dst, product=False):
149
152
CopyToBucketWithMode (src , dst , True , product , 'dart' )
150
153
151
154
155
+ def CopyVulkanDepsToBucket (src , dst , arch ):
156
+ sdk_path = GetFuchsiaSDKPath ()
157
+ deps_bucket_path = os .path .join (_bucket_directory , dst )
158
+ if not os .path .exists (deps_bucket_path ):
159
+ FindFileAndCopyTo ('VkLayer_khronos_validation.json' , '%s/pkg' % (sdk_path ), deps_bucket_path )
160
+ FindFileAndCopyTo ('VkLayer_khronos_validation.so' , '%s/arch/%s' % (sdk_path , arch ), deps_bucket_path )
161
+
162
+
152
163
def BuildBucket (runtime_mode , arch , product ):
153
164
out_dir = 'fuchsia_%s_%s/' % (runtime_mode , arch )
154
165
bucket_dir = 'flutter/%s/%s/' % (arch , runtime_mode )
166
+ deps_dir = 'flutter/%s/deps/' % (arch )
155
167
CopyToBucket (out_dir , bucket_dir , product )
168
+ CopyVulkanDepsToBucket (out_dir , deps_dir , arch )
156
169
157
170
158
171
def ProcessCIPDPackage (upload , engine_version ):
0 commit comments