9"""Create a ccache binary for mac hosts."""
17FILE_DIR = os.path.dirname(os.path.abspath(__file__))
18INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
19sys.path.insert(0, INFRA_BOTS_DIR)
23URL =
"https://github.com/ccache/ccache/releases/download/v3.7.7/ccache-3.7.7.tar.gz"
24VERSION =
"ccache-3.7.7"
29 target_dir = os.path.abspath(target_dir)
33 subprocess.check_call([
"curl",
"-L",
"-o", VERSION +
".tar.gz",
34 "https://github.com/ccache/ccache/releases/download/v3.7.7/ccache-3.7.7.tar.gz"])
35 subprocess.check_call([
"tar",
"-xzf", VERSION +
".tar.gz"])
38 subprocess.check_call([
"./configure",
"--disable-man",
"--prefix=" + target_dir])
39 subprocess.check_call([
"make"])
40 subprocess.check_call([
"make" ,
"install"])
44 parser = argparse.ArgumentParser()
45 parser.add_argument(
'--target_dir',
'-t', required=
True)
46 args = parser.parse_args()
50if __name__ ==
'__main__':
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)