premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

Files in group section

Open TracerDS opened this issue 6 months ago • 6 comments

What problem will this solve? In VisualStudio its possible to add files to a folder not tied to specific project (see image below). Premake doesnt seem to have that feature. Image

What might be a solution? Add support for misc files in global folders

What other alternatives have you already considered? I thought of creating a project to store files (like header files) but its not really that great.

Alternative: Image

TracerDS avatar Jun 12 '25 16:06 TracerDS

I don't believe adding files directly to the virtual file structure is necessarily the best solution. There is a path forward with fixing up part of the Utility exporter to make sure it properly supports include paths and language versions. This works well with the uses/usages API.

nickclark2016 avatar Jun 12 '25 17:06 nickclark2016

I don't believe adding files directly to the virtual file structure is necessarily the best solution. There is a path forward with fixing up part of the Utility exporter to make sure it properly supports include paths and language versions. This works well with the uses/usages API.

Not including it limits what you can do in premake. uses/usages API doesnt really do what I need as far as I see. This feature would be of huge help especially with utility projects where intellisense can get broken very quickly

TracerDS avatar Jun 12 '25 18:06 TracerDS

I thought of creating a project to store files (like header files) but its not really that great.

What is not good with that solution? Kind "None" or Kind "Utility" seems to do the job

Jarod42 avatar Jun 13 '25 20:06 Jarod42

What is not good with that solution? Kind "None" or Kind "Utility" seems to do the job

No, it doesnt. On the surface it sounds like a good idea but when tested in practice you can see the underlying flaws behind it. It may work fine on non VS projects but in VS the intellisense gets messed up with this. Due to how VS intellisense works, the Kind "None" project will fill up the output box with false errors due to mismatch in project configurations.

TracerDS avatar Jun 14 '25 09:06 TracerDS

intellisense prefer Kind "Utility" indeed IIRC.

Jarod42 avatar Jun 14 '25 21:06 Jarod42

intellisense prefer Kind "Utility" indeed IIRC.

Nope. Intellisense treats both kind types in the same way

TracerDS avatar Jun 15 '25 10:06 TracerDS