Linux only: libcef.so is huge (500 MB) in Chrome v54+. Issue #262.
(arch)
| 467 | |
| 468 | |
| 469 | def reduce_package_size_issue262(arch): |
| 470 | """Linux only: libcef.so is huge (500 MB) in Chrome v54+. Issue #262.""" |
| 471 | print("[build_distrib.py] Reduce package size for {arch} (Issue #262)" |
| 472 | .format(arch=arch)) |
| 473 | prebuilt_basename = get_cef_binaries_libraries_basename( |
| 474 | get_os_postfix2_for_arch(arch)) |
| 475 | bin_dir = os.path.join(prebuilt_basename, "bin") |
| 476 | |
| 477 | # Run `strip` command on `libcef.so` |
| 478 | libcef_so = os.path.join(bin_dir, "libcef.so") |
| 479 | print("[build_distrib.py] Strip {libcef_so}" |
| 480 | .format(libcef_so=os.path.basename(libcef_so))) |
| 481 | command = "strip {libcef_so}".format(libcef_so=libcef_so) |
| 482 | pcode = subprocess.call(command, shell=True) |
| 483 | assert pcode == 0, "strip command failed" |
| 484 | |
| 485 | |
| 486 | def remove_unnecessary_package_files(arch): |
no test coverage detected