mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-09 03:08:34 +01:00
30 lines
830 B
Batchfile
30 lines
830 B
Batchfile
|
@ECHO OFF
|
||
|
:- configure.bat creates platform.hpp and configures the build process
|
||
|
:- You MUST run this before building via msbuild or VisualStudio.
|
||
|
|
||
|
IF %1.==--help. (
|
||
|
ECHO Syntax: configure [ switch ]
|
||
|
ECHO --help show this help
|
||
|
GOTO END
|
||
|
)
|
||
|
ECHO Configuring libzmq...
|
||
|
|
||
|
ECHO // Generated by configure.bat> platform.hpp
|
||
|
ECHO. >> platform.hpp
|
||
|
ECHO #ifndef __PLATFORM_H_INCLUDED__>> platform.hpp
|
||
|
ECHO #define __PLATFORM_H_INCLUDED__>> platform.hpp
|
||
|
ECHO. >> platform.hpp
|
||
|
ECHO #define ZMQ_HAVE_WINDOWS 1>> platform.hpp
|
||
|
|
||
|
:- Check for dependencies
|
||
|
IF EXIST "..\..\..\libsodium" (
|
||
|
ECHO Building with libsodium
|
||
|
ECHO #define HAVE_LIBSODIUM 1>> platform.hpp
|
||
|
) ELSE (
|
||
|
ECHO Building without libsodium
|
||
|
ECHO #undef HAVE_LIBSODIUM>> platform.hpp
|
||
|
)
|
||
|
|
||
|
ECHO. >> platform.hpp
|
||
|
ECHO #endif>> platform.hpp
|