File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import pathlib
66import subprocess
77from rules_support import PluginBranchInfo
8+ from conans import tools
9+ import shutil
810
911class EphysDataConan (ConanFile ):
1012 """Class to package plugin using conan
@@ -152,6 +154,17 @@ def package(self):
152154 release_dir ,
153155 ]
154156 )
157+
158+ # Add the PDB files to the Conan package
159+ if self .settings .os == "Windows" :
160+ print ("Copying PDBs..." )
161+ pdb_dest = pathlib .Path (package_dir , "RelWithDebInfo" , "PDBs" )
162+ pdb_dest .mkdir ()
163+ pdb_files = pdb_files = [p for p in pathlib .Path (self .build_folder ).rglob ('*' ) if p .is_file () and p .suffix .lower () == '.pdb' ]
164+ print ("PDB(s): " , pdb_files )
165+ for pfile in pdb_files :
166+ shutil .copy (pfile , pdb_dest )
167+
155168 self .copy (pattern = "*" , src = package_dir )
156169
157170 def package_id (self ):
You can’t perform that action at this time.
0 commit comments