ubisoft / Sharpmake

Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
Apache License 2.0
922 stars 168 forks source link

Added support for OutputItemType to CustomFileBuildStep. #345

Closed cfehunter closed 5 months ago

cfehunter commented 6 months ago

This (optionally) allows for specifying to Vcxproj what the output files of a custom build step should be treated as. Useful in contexts where a custom build step generates other build inputs.

I have a use case where we generate C++ wrappers using swig, and want to compile them into the same project that generated them. It's significantly easier to do so if you can provide the OutputItemType field to the build step.

cfehunter commented 6 months ago

Changes made as requested. Thanks for pointing out the RemoveLineTag.

jspelletier commented 6 months ago

could you add your case to an existing sample ?

cfehunter commented 5 months ago

could you add your case to an existing sample ?

Not really, it's an incredibly specific case that comes from upgrading an old project.