dxli/LibreCAD — pull request #6 by tin-pot (2012-01-01 08:58:23+00:00)
Title: Revamped *.pro files to automatically support MSVC and Qt 4.3/4.4

Happy new year, Dungxu!

Here are my latest commits, builds properly with Qt 4.5 and acceptable with Qt 4.3. It should build on other platforms without changes, the *.pro files are supposed to take care of that.

- Factored out the MSVC stanza into a single "common.pro" file. This gets included by the other qmake project files.
- This would also be a good place to set (rsp factor out) global, common project definitions.
- The emu_*.cpp and emu_*.h files are only added to SOURCES and HEADERS when needed; this is done in src/src.pro.
- Added some messages that qmake emits when MSVC or older (or too old) Qt is detected and accomodated.
- To silence these messages, remove "verbose" option from CONFIG variable in src/src.pro.

If it works like I hope it does, you should be able to build via qmake without further intervention. And none of the emu_* stuff should find its way into the makefiles.

(Somehow this curious spanish-named folder popped up during me wrestling with git. I deleted it again, hope that doesn't cause troubles for the pull. And yes: you should pull from my _master_ branch, I have merged "for-dli" in.)

Good luck!

Martin