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

Additional Flags for CustomFileBuildStepData #322

Closed Sharlock93 closed 6 months ago

Sharlock93 commented 8 months ago

This mainly adds two flags, ResolveExecutable and DependOnExecutable.

First one is basically to skip prefixing the Executable string with the project path. This allows running of programs that are in the environment but not in the project.

My use case was running a shader compiler while not adding the executable to the project.

The second flag is to skip adding the executable to the list of AdditionalInputs, this prevents a warning when the executable is not found in the project.

The first flag has a workaround by overriding MakeRelativePaths but the second flag does not have any workaround I could find.

I'm not extensively familiar with all potential problems that might come up with these flags so any feedback on it would be appreciated.