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

Function run_automate_git

tools/automate.py:982–1023  ·  view source on GitHub ↗

Run CEF automate-git.py using Python 2.7.

()

Source from the content-addressed store, hash-verified

980
981
982def run_automate_git():
983 """Run CEF automate-git.py using Python 2.7."""
984 script = os.path.join(Options.cefpython_dir, "tools", "automate-git.py")
985 """
986 Example automate-git.py command:
987 C:\chromium>call python automate-git.py --download-dir=./test/
988 --branch=2526 --no-debug-build --verbose-build
989 Run ninja build manually:
990 cd chromium/src
991 ninja -v -j2 -Cout\Release cefclient
992 """
993 args = []
994 if ARCH64 and not Options.x86:
995 args.append("--x64-build")
996 args.append("--download-dir=" + Options.cef_build_dir)
997 args.append("--branch=" + Options.cef_branch)
998 if Options.no_depot_tools_update:
999 args.append("--no-depot-tools-update")
1000 if Options.release_build:
1001 args.append("--no-debug-build")
1002 args.append("--verbose-build")
1003 # --force-build sets --force-distrib by default
1004 # ninja will only recompile files that changed
1005 args.append("--force-build")
1006 # We clone cef repository ourselves and update cef patches with ours,
1007 # so don't fetch/update CEF repo.
1008 args.append("--no-cef-update")
1009 # Force Chromium update so that gclient sync is called. It may fail
1010 # sometimes with files missing and must re-run to fix.
1011 if Options.force_chromium_update:
1012 args.append("--force-update")
1013 args.append("--no-distrib-archive")
1014 if platform.system() == "Linux":
1015 # Building cefclient target isn't supported on Linux when
1016 # using sysroot (cef/#1916). However building cefclient
1017 # later in cef_binary/ with cmake/ninja do works fine.
1018 args.append("--build-target=cefsimple")
1019
1020 args = " ".join(args)
1021 command = script + " " + args
1022 working_dir = Options.cef_build_dir
1023 return run_command("%s %s" % (sys.executable, command), working_dir)
1024
1025
1026def run_make_distrib():

Callers 1

build_cefFunction · 0.85

Calls 1

run_commandFunction · 0.85

Tested by

no test coverage detected