Run CEF make_distrib script.
()
| 1024 | |
| 1025 | |
| 1026 | def run_make_distrib(): |
| 1027 | """Run CEF make_distrib script.""" |
| 1028 | print("[automate.py] Make CEF binary distribution") |
| 1029 | script_ext = "bat" if WINDOWS else "sh" |
| 1030 | base_script = "make_distrib.{ext}".format(ext=script_ext) |
| 1031 | tools_dir = os.path.join(Options.cef_build_dir, "chromium", "src", "cef", |
| 1032 | "tools") |
| 1033 | script = os.path.join(tools_dir, base_script) |
| 1034 | args = list() |
| 1035 | args.append("--allow-partial") |
| 1036 | args.append("--ninja-build") |
| 1037 | if ARCH64 and not Options.x86: |
| 1038 | args.append("--x64-build") |
| 1039 | args.append("--no-archive") |
| 1040 | args = " ".join(args) |
| 1041 | command = "{script} {args}".format(script=script, args=args) |
| 1042 | status = run_command(command, tools_dir) |
| 1043 | if status == 0: |
| 1044 | print("[automate.py] Done. CEF binary distribution created in: {dir}" |
| 1045 | .format(dir=Options.binary_distrib)) |
| 1046 | else: |
| 1047 | print("[automate.py] Error while making CEF binary distribution") |
| 1048 | sys.exit(1) |
| 1049 | |
| 1050 | |
| 1051 | def rmdir(path): |