• Home
  • Raw
  • Download

Lines Matching +full:upload +full:- +full:dir

2 # Use of this source code is governed by a BSD-style license that can be
12 parser = argparse.ArgumentParser(description="Upload goldfish libvulkan to CIPD")
14 parser.add_argument("--release-dir")
15 parser.add_argument("--arch")
16 parser.add_argument("--dry-run", action="store_true")
17 parser.add_argument("--ignore-branch", action="store_true")
18 parser.add_argument("--ignore-rebuild", action="store_true")
19 parser.add_argument("--ignore-buildtype", action="store_true")
36 print "Release dir: %s doesn't exist" % release_dir
44 target_name = "%s-shared/libvulkan_goldfish.so" % arch
45 git_repo_location = "%s/third_party/goldfish-opengl" % fuchsia_root
49 debug_target_name = "%s-shared/lib.unstripped/libvulkan_goldfish.so" % arch
50 debug_dir = "libvulkan_goldfish/debug-symbols-%s" % arch
53 repo_name = "goldfish-opengl"
55 "git", "-C", git_repo_location, "rev-parse", "--abbrev-ref", "HEAD"
63 print("Use --ignore-branch flag to upload anyway")
66 # Force ninja dry-run
68 fx_path, "ninja", "-C", release_dir, "-v", "-n", target_name
76 print("Use --ignore-rebuild flag to upload anyway")
80 fx_path, "gn", "args", release_dir, "--list=is_debug", "--short"
87 print("Use --ignore-buildtype flag to upload anyway")
107 elf_info = re.search(r'Build ID: ([a-f0-9]*)',
108 subprocess.check_output(['readelf', '-n', debug_source_file_name]).strip())
125 ["git", "-C", git_repo_location, "rev-parse", "HEAD"]).strip()
127 cipd_command = ("%s cipd create -in %s -name %s -ref latest"
128 " -install-mode copy -tag git_revision:%s") % (
134 # Create libvulkan_goldfish/debug-symbols package
135 cipd_command = ("%s cipd create -in %s -name %s -ref latest"
136 " -install-mode copy -tag git_revision:%s") % (
147 """ % (package_name, git_rev, package_dir))[1:-1]
151 path="prebuilt/.build-id"
152 attributes="debug-symbols,debug-symbols-%s"/>
153 """ % (debug_package_name, git_rev, arch))[1:-1]