From 3fb5c11b03119a157db8dc024809943f88f87320 Mon Sep 17 00:00:00 2001 From: Stuart Webster Date: Thu, 15 Dec 2011 14:03:43 +0100 Subject: 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 --- src/precompiled.cpp | 21 +++++++++++++++++++++ src/precompiled.hpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ src/windows.hpp | 3 +++ 3 files changed, 71 insertions(+) create mode 100644 src/precompiled.cpp create mode 100644 src/precompiled.hpp (limited to 'src') 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 . +*/ + +#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 . +*/ + +#ifndef __ZMQ_PRECOMPILED_HPP_INCLUDED__ +#define __ZMQ_PRECOMPILED_HPP_INCLUDED__ + +#ifdef _MSC_VER + +// Windows headers +#include "platform.hpp" +#include "windows.hpp" +#include +#include +#include +#include +#include + +// standard C++ headers +#include +#include +#include +#include +#include + +// 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 -- cgit v1.2.3