mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Merge pull request #2931 from leancz/leancz-patch-1-pcre2-windows
Adding PCRE2 support for windows build in Makefile.win
This commit is contained in:
commit
d686d1344d
@ -1,21 +1,29 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
#
|
||||||
# Usage: NMAKE -f Makefile.win APACHE={httpd installion dir} PCRE={pcre dir} LIBXML2={LibXML2 dir} [ LUA={Lua dir} ]
|
# Usage: NMAKE -f Makefile.win APACHE={httpd installion dir} PCRE|PCRE2={pcre dir} LIBXML2={LibXML2 dir} [ LUA={Lua dir} ]
|
||||||
#
|
#
|
||||||
|
!IF "$(PCRE2)" != ""
|
||||||
|
PCRE = $(PCRE2)
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
!IF "$(APACHE)" == "" || "$(PCRE)" == "" || "$(LIBXML2)" == "" || "$(CURL)" == ""
|
!IF "$(APACHE)" == "" || "$(PCRE)" == "" || "$(LIBXML2)" == "" || "$(CURL)" == ""
|
||||||
!ERROR NMAKE arguments: APACHE=dir PCRE=dir LIBXML2=dir CURL=dir are required to build mod_security2 for Windows
|
!ERROR NMAKE arguments: APACHE=dir PCRE|PCRE2=dir LIBXML2=dir CURL=dir are required to build mod_security2 for Windows
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
# Linking libraries
|
# Linking libraries
|
||||||
LIBS = $(APACHE)\lib\libhttpd.lib \
|
LIBS = $(APACHE)\lib\libhttpd.lib \
|
||||||
$(APACHE)\lib\libapr-1.lib \
|
$(APACHE)\lib\libapr-1.lib \
|
||||||
$(APACHE)\lib\libaprutil-1.lib \
|
$(APACHE)\lib\libaprutil-1.lib \
|
||||||
$(PCRE)\pcre.lib \
|
|
||||||
$(CURL)\libcurl.lib \
|
$(CURL)\libcurl.lib \
|
||||||
$(LIBXML2)\win32\bin.msvc\libxml2.lib \
|
$(LIBXML2)\win32\bin.msvc\libxml2.lib \
|
||||||
Ws2_32.lib \
|
Ws2_32.lib \
|
||||||
"iphlpapi.lib"
|
"iphlpapi.lib"
|
||||||
|
|
||||||
|
!IF "$(PCRE2)" != ""
|
||||||
|
LIBS =$(LIBS) $(PCRE2)\lib\pcre2-8.lib
|
||||||
|
!ELSE
|
||||||
|
LIBS =$(LIBS) $(PCRE)\lib\pcre.lib
|
||||||
|
!ENDIF
|
||||||
###########################################################################
|
###########################################################################
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
@ -41,6 +49,11 @@ INCLUDES = -I. -I.. \
|
|||||||
# Enables support for SecRemoteRules and external resources.
|
# Enables support for SecRemoteRules and external resources.
|
||||||
DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES
|
DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES
|
||||||
|
|
||||||
|
# Enable PCRE2
|
||||||
|
!IF "$(PCRE2)" != ""
|
||||||
|
DEFS =$(DEFS) -DWITH_PCRE2
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
# Lua is optional
|
# Lua is optional
|
||||||
!IF "$(LUA)" != ""
|
!IF "$(LUA)" != ""
|
||||||
LIBS = $(LIBS) $(LUA)\lua5.1.lib
|
LIBS = $(LIBS) $(LUA)\lua5.1.lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user