MCPcopy Create free account
hub / github.com/cztomczak/cefpython / reduce_package_size_issue262

Function reduce_package_size_issue262

tools/build_distrib.py:469–483  ·  view source on GitHub ↗

Linux only: libcef.so is huge (500 MB) in Chrome v54+. Issue #262.

(arch)

Source from the content-addressed store, hash-verified

467
468
469def 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
486def remove_unnecessary_package_files(arch):

Callers 1

mainFunction · 0.85

Tested by

no test coverage detected