Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MDd")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MD")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD")
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO} /DEBUG")
endif()

# -----------------------------------------------------------------------------
Expand Down
14 changes: 13 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import pathlib
import subprocess
from rules_support import PluginBranchInfo

from conans import tools
import shutil

class LinePlotViewPluginConan(ConanFile):
"""Class to package ImageLoaderPlugin using conan
Expand Down Expand Up @@ -146,6 +147,17 @@ def package(self):
release_dir,
]
)

# Add the PDB files to the Conan package
if self.settings.os == "Windows":
print("Copying PDBs...")
pdb_dest = pathlib.Path(package_dir, "RelWithDebInfo", "PDBs")
pdb_dest.mkdir()
pdb_files = pdb_files = [p for p in pathlib.Path(self.build_folder).rglob('*') if p.is_file() and p.suffix.lower() == '.pdb']
print("PDB(s): ", pdb_files)
for pfile in pdb_files:
shutil.copy(pfile, pdb_dest)

self.copy(pattern="*", src=package_dir)

def package_info(self):
Expand Down