[zeromq-dev] [PATCH] MSVC10 project files
Stuart Webster
sw_webster at hotmail.com
Sun Nov 20 18:20:20 CET 2011
There has been some discussion* over the past week or two about updating
the build system for Windows, which seems to be gravitating toward the
use of cmake to generate project files for Visual Studio. Personally, I
think cmake is a great tool, but professionally I think it would be an
obstacle for some institutions and may preclude them from considering
0MQ. I have worked as a contractor for several investment banks and it
is not uncommon for them to have locked down network access (i.e.
developers are prevented from downloading installers for unsanctioned
software, such as cmake) and build environments.
Even for relatively open Microsoft shops, Visual Studio is the standard
development environment with which everybody is familiar; cmake is
relatively obscure by comparison. Consequently, if you were to provide
only a CMakeLists file, relatively few Microsoft developers would take
the time to reverse engineer any improvements they make to the generated
project files and push them upstream.
I understand the antipathy toward Visual Studio project files. They are
overly verbose and denormalised by default, with compiler flags etc.
replicated for every single project configuration. The introduction of
vcxproj.filter files in VC10 does not help, as they essentially just
duplicate the list of headers and source files in any given project by
default. However, it's not that difficult to normalise these files by
moving compiler and linker flags into shared property sheets and
deleting all of the redundant data from the filters.
That's basically what these patches provide. 32-bit configurations build
free of warnings with /W3. 64-bit configurations generate several
legitimate "conversion from 'size_t' to 'int', possible loss of data"
warnings which I intend to address with a subsequent patch. Note that
this patch does not remove the MSVC9 project files, but I appreciate
that maintaining both sets is not an appealing prospect. I would suggest
that they are removed if this patch or some variant thereof is accepted.
* I apologise for not responding directly to the thread ("x64 build
target for Windows?") in question. I only subscribed to the mailing list
yesterday and I still get "zeromq-dev roster authentication failed"
errors when I attempt to visit the subscriber list. I replied to the
confirmation e-mail and received a welcome e-mail in return. Do I need
to do anything else, or will the roster just be updated automatically at
some point?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: zeromq2-1_msvc10_projects_1.patch
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111120/71eaf68f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: zeromq2-1_msvc10_projects_2.patch
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111120/71eaf68f/attachment-0001.ksh>
More information about the zeromq-dev
mailing list