Skip to content

Commit

Permalink
Fix debug build
Browse files Browse the repository at this point in the history
Signed-off-by: Cédrik Fuoco <[email protected]>
  • Loading branch information
cedrik-fuoco-adsk committed Dec 6, 2024
1 parent a28c14e commit 143adc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/build/make_pyside6.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ def build() -> None:
if OPENSSL_OUTPUT_DIR:
pyside_build_args.append(f"--openssl={os.path.join(OPENSSL_OUTPUT_DIR, 'bin')}")

if platform.system() == "Windows":
# Add the debug switch to match build type but only on Windows
# (on other platforms, PySide6 is built in release)
if VARIANT == "Debug":
pyside_build_args.append("--debug")

print(f"Executing {pyside_build_args}")
subprocess.run(pyside_build_args).check_returncode()

Expand Down
3 changes: 2 additions & 1 deletion src/build/make_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def install_python_vfx2024() -> None:
).check_returncode()

# bin
src_dir = os.path.join(SOURCE_DIR, "PCBuild", "amd64")
libs_dir = os.path.join(OUTPUT_DIR, "libs")
dst_dir = os.path.join(OUTPUT_DIR, "bin")

# Create a python3.exe file to mimic Mac+Linux
Expand Down Expand Up @@ -801,6 +801,7 @@ def install_python_vfx2024() -> None:
python3xx_lib = f"python{PYTHON_VERSION}_d.lib"

shutil.copy(os.path.join(build_path, python3_lib), os.path.join(dst_dir, python3_lib))
shutil.copy(os.path.join(build_path, python3_lib), os.path.join(libs_dir, python3_lib))
shutil.copy(os.path.join(build_path, python3xx_lib), os.path.join(dst_dir, python3xx_lib))

# Tcl and Tk DLL are not copied by the main.py script in Debug.
Expand Down

0 comments on commit 143adc7

Please sign in to comment.