From fcc80d4ffbb2e9a59eab3803604355ae30e9cad3 Mon Sep 17 00:00:00 2001 From: Doron Somech Date: Tue, 3 May 2016 10:18:46 +0300 Subject: [PATCH] add draft option to windows configure --- builds/msvc/configure.bat | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/builds/msvc/configure.bat b/builds/msvc/configure.bat index 6e07ee6e..6f09473e 100644 --- a/builds/msvc/configure.bat +++ b/builds/msvc/configure.bat @@ -25,5 +25,18 @@ IF EXIST "..\..\..\libsodium" ( ECHO #undef HAVE_LIBSODIUM>> platform.hpp ) +:- Check if we want to build the draft API +if "%1" == "--enable-drafts" goto :with_draft +if "%1" == "--disable-drafts" goto :no_draft +IF NOT EXIST "..\..\.git" GOTO no_draft +:with_draft + ECHO Building with draft API (stable + legacy + draft API) + ECHO // Provide draft classes and methods>>platform.hpp + ECHO #define ZMQ_BUILD_DRAFT_API 1>>platform.hpp + GOTO end_draft +:no_draft + ECHO Building without draft API (stable + legacy API) + ECHO #undef ZMQ_BUILD_DRAFT_API 1>>platform.hpp +:end_draft ECHO. >> platform.hpp ECHO #endif>> platform.hpp