premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.13k stars 611 forks source link

Add support of per-file configuration `buildaction "None"` #2169

Closed Jarod42 closed 6 months ago

Jarod42 commented 7 months ago

What does this PR do?

Add support of per-file configuration buildaction "None" for Codelite, gmake, gmake2, xcode4.

How does this PR change Premake's behavior?

As for flags "ExcludeFromBuild", previously conflicting obj file name might now differ (as there are no longer built): i.e

files {"src/toto.cpp", "excluded/toto.cpp" }
filters {"files:excluded/toto.cpp"}
    buildaction "None"

Both resulted in "toto.o" with special treatment now "excluded/toto.cpp" won't have obj object, and so no conflict with the "src/" one.

Anything else we should know?

Tested with my repo especially:

Did you check all the boxes?