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

Function compile_cpp_projects_windows_DEPRECATED

tools/build.py:415–458  ·  view source on GitHub ↗

DEPRECATED. Not used currently. Build C++ projects using .vcproj files.

()

Source from the content-addressed store, hash-verified

413
414
415def compile_cpp_projects_windows_DEPRECATED():
416 """DEPRECATED. Not used currently.
417 Build C++ projects using .vcproj files."""
418
419 # TODO: Remove code after setuptools compilation was tested for some time
420
421 print("[build.py] Compile C++ projects")
422
423 print("[build.py] ~~ Build CLIENT_HANDLER vcproj")
424 vcproj = ("client_handler_py{pyver}_{os}.vcproj"
425 .format(pyver=PYVERSION, os=OS_POSTFIX2))
426 vcproj = os.path.join(SRC_DIR, "client_handler", vcproj)
427 build_vcproj_DEPRECATED(vcproj)
428
429 print("[build.py] ~~ Build LIBCEFPYTHONAPP vcproj")
430 vcproj = ("libcefpythonapp_py{pyver}_{os}.vcproj"
431 .format(pyver=PYVERSION, os=OS_POSTFIX2))
432 vcproj = os.path.join(SRC_DIR, "subprocess", vcproj)
433 build_vcproj_DEPRECATED(vcproj)
434
435 print("[build.py] ~~ Build SUBPROCESS vcproj")
436 vcproj = ("subprocess_{os}.vcproj"
437 .format(os=OS_POSTFIX2))
438 vcproj = os.path.join(SRC_DIR, "subprocess", vcproj)
439 ret = build_vcproj_DEPRECATED(vcproj)
440
441 # Copy subprocess executable
442 subprocess_from = os.path.join(
443 SUBPROCESS_DIR,
444 "Release_{os}".format(os=OS_POSTFIX2),
445 "subprocess_{os}.exe".format(os=OS_POSTFIX2))
446 subprocess_to = os.path.join(CEFPYTHON_BINARY, "subprocess.exe")
447 if os.path.exists(subprocess_to):
448 os.remove(subprocess_to)
449 if ret == 0:
450 print("[build.py] Copy subprocess executable")
451 # shutil.copy() will also copy Permission bits
452 shutil.copy(subprocess_from, subprocess_to)
453
454 print("[build.py] ~~ Build CPP_UTILS vcproj")
455 vcproj = ("cpp_utils_{os}.vcproj"
456 .format(os=OS_POSTFIX2))
457 vcproj = os.path.join(SRC_DIR, "cpp_utils", vcproj)
458 build_vcproj_DEPRECATED(vcproj)
459
460
461def build_vcproj_DEPRECATED(vcproj):

Callers

nothing calls this directly

Calls 2

build_vcproj_DEPRECATEDFunction · 0.85
copyMethod · 0.80

Tested by

no test coverage detected