diff options
author | Stuart Webster <sw_webster@hotmail.com> | 2011-12-15 14:03:43 +0100 |
---|---|---|
committer | unknown <sustrik@turist.(none)> | 2011-12-15 14:03:43 +0100 |
commit | 3fb5c11b03119a157db8dc024809943f88f87320 (patch) | |
tree | e3463dbfd8961f6ce9432b801fc6577cec4d500b /src | |
parent | a9e03336b020d2e6a83338b111092e65aa812f95 (diff) |
Added MSVC10 solution and project files for Windows
These include configurations for both Win32 and x64 platforms. All project
settings have been normalised in property sheets (the ".props" files under
builds/msvc/properties) to simplify maintenance. Build artefacts are all
generated in platform-specific subfolders of bin, lib and obj directories.
Also enables the use of precompiled headers with MSVC10.
This significantly reduces the time required to compile libzmq with Visual
Studio on Windows. It should have no impact on other platforms.
Signed-off-by: Stuart Webster <sw_webster@hotmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/precompiled.cpp | 21 | ||||
-rw-r--r-- | src/precompiled.hpp | 47 | ||||
-rw-r--r-- | src/windows.hpp | 3 |
3 files changed, 71 insertions, 0 deletions
diff --git a/src/precompiled.cpp b/src/precompiled.cpp new file mode 100644 index 0000000..3b2e52d --- /dev/null +++ b/src/precompiled.cpp @@ -0,0 +1,21 @@ +/* + Copyright (c) 2011 250bpm s.r.o. + Copyright (c) 2011 Other contributors as noted in the AUTHORS file + + This file is part of 0MQ. + + 0MQ is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + 0MQ is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "precompiled.hpp" diff --git a/src/precompiled.hpp b/src/precompiled.hpp new file mode 100644 index 0000000..aeea3cd --- /dev/null +++ b/src/precompiled.hpp @@ -0,0 +1,47 @@ +/* + Copyright (c) 2011 250bpm s.r.o. + Copyright (c) 2011 Other contributors as noted in the AUTHORS file + + This file is part of 0MQ. + + 0MQ is free software; you can redistribute it and/or modify it under + the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + 0MQ is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__ +#define __ZMQ_PRECOMPILED_HPP_INCLUDED__ + +#ifdef _MSC_VER + +// Windows headers +#include "platform.hpp" +#include "windows.hpp" +#include <fcntl.h> +#include <intrin.h> +#include <io.h> +#include <rpc.h> +#include <sys/stat.h> + +// standard C++ headers +#include <algorithm> +#include <map> +#include <set> +#include <string> +#include <vector> + +// 0MQ definitions and exported functions +#include "../include/zmq.h" + +#endif // _MSC_VER + +#endif diff --git a/src/windows.hpp b/src/windows.hpp index da69b47..f5f946c 100644 --- a/src/windows.hpp +++ b/src/windows.hpp @@ -25,6 +25,9 @@ // The purpose of this header file is to turn on only the items actually // needed on the windows platform. +#ifndef _CRT_SECURE_NO_WARNINGS +#define _CRT_SECURE_NO_WARNINGS +#endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif |