annulen/premake — pull request #9 by Lusito (2013-10-15 22:51:26+00:00)
Title: NetBeans (7.3) C/C++ project generation

NetBeans is my fav. IDE, especially since its autocompletion and refactoring is better than Visual Studio's.
I've not seen a netbeans action for premake since I've started working with it, so I decided to write one myself.
This was written with NB 7.3 in mind. Not sure how compatible this would be to older versions.

This creates c/c++ project files for static libs, shared libs and executables.
I'm new to this, so I might have done something horribly wrong, forgive me if I did.

Known issues / Notes:
- Netbeans does not have anything like a "solution" file. The closest thing would be a group, but you can't store them in files.
- There is no "single" project file. There are actually 3 files:
- one Makefile (containing pre- and post-build steps)
- and the nbprojects folder with:
- project.xml
- configurations.xml
- So for every project I created a new folder containing the makefile and the nbprojects folder.
- You need to restart netbeans for it to recognize changes in a project file.
- Simply closing and reopening the project won't work.
- I have no idea how to add resource files (.rc) correctly
- Pre-link steps seem impossible to me.
- I'm not sure If I have the linking libraries part right, but my test projects seem to work.
- Release builds usually have this tag set in all tools, but I'm unsure how to check if the config is a release kind of project:
< developmentMode>5
- Maybe "not config.isDebugBuild(cfg)" or "cfg.flags.ReleaseRuntime" ? (also not sure where those get their values from)

Let me know if you have other problems.