twhl-community/halflife-updated

Use post build event to copy dlls instead of using output directory

Closed this issue · 0 comments

All of the Updated projects currently put compiled dlls and pdb files directly in the mod directory using the Output directory property in the Visual Studio project files.

This is non-standard behavior and has been a cause of confusion in the past. It also makes it harder for the continuous integration artifact setup step to package up the Windows dlls for download.

Use the default directory, modified to include the project name (to disambiguate between identical source file names when they are compiled into object files) and rely on a post build event to copy them.

The actual copying should be delegated to a batch script that knows how to translate relative paths to absolute paths pointing to the mod directory. For a given input hl.dll dlls/hl.dll the script should copy hl.dll to path/to/mod/dir/dlls/hl.dll.