Use setuptools to build static libraries / executable.
()
| 401 | |
| 402 | |
| 403 | def compile_cpp_projects_with_setuptools(): |
| 404 | """Use setuptools to build static libraries / executable.""" |
| 405 | compile_cpp_projects = os.path.join(TOOLS_DIR, "build_cpp_projects.py") |
| 406 | retcode = subprocess.call([sys.executable, compile_cpp_projects]) |
| 407 | if retcode != 0: |
| 408 | print("[build.py] ERROR: Failed to compile C++ projects") |
| 409 | sys.exit(1) |
| 410 | # Copy subprocess executable |
| 411 | print("[build.py] Copy subprocess executable") |
| 412 | shutil.copy(SUBPROCESS_EXE, CEFPYTHON_BINARY) |
| 413 | |
| 414 | |
| 415 | def compile_cpp_projects_windows_DEPRECATED(): |