Condition Compilation support in premake #1828
alokprasad
started this conversation in
General
Replies: 1 comment
-
If you need the functions in the same file, you're stuck with doing it the "C way". Otherwise, you can put them in different files and then include those files with a filter based on whatever it is that controls your features. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any suggestion how to add or remove functions from C files based what is selected in Build , without the typical use of #ifdef.
Config.cfg
So if in Build system i want to select Feature2 it should only INclude Func4,5,6 for compilation and remove other variables and Function not selected.
Typical C way #ifdef will be
I want to avoid excessive use of Ifdef , is there any better way to do so
How to do that in premake.
Beta Was this translation helpful? Give feedback.
All reactions