mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Add cmake environment
This commit is contained in:
1 parent
237fa15e36
commit
2e534c7794
29 files changed
+908
-41
No files matched your search
@@ -0,0 +1,4 @@
|
||||
# FilePlugin
|
||||
add_3proxy_plugin(FilePlugin
|
||||
SOURCES FilePlugin.c
|
||||
)
|
||||
@@ -0,0 +1,20 @@
|
||||
# PCREPlugin - requires PCRE2
|
||||
|
||||
if(NOT PCRE2_FOUND)
|
||||
message(STATUS "PCREPlugin requires PCRE2, skipping")
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_3proxy_plugin(PCREPlugin
|
||||
SOURCES pcre_plugin.c
|
||||
COMPILE_DEFINITIONS PCRE2_CODE_UNIT_WIDTH=8
|
||||
)
|
||||
|
||||
if(TARGET PCRE2::PCRE2)
|
||||
target_link_libraries(PCREPlugin PRIVATE PCRE2::PCRE2)
|
||||
else()
|
||||
target_link_libraries(PCREPlugin PRIVATE ${PCRE2_LIBRARIES})
|
||||
if(PCRE2_INCLUDE_DIRS)
|
||||
target_include_directories(PCREPlugin PRIVATE ${PCRE2_INCLUDE_DIRS})
|
||||
endif()
|
||||
endif()
|
||||
@@ -0,0 +1,19 @@
|
||||
# PamAuth - requires PAM
|
||||
|
||||
if(NOT PAM_FOUND)
|
||||
message(STATUS "PamAuth requires PAM, skipping")
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_3proxy_plugin(PamAuth
|
||||
SOURCES pamauth.c
|
||||
)
|
||||
|
||||
if(TARGET PAM::PAM)
|
||||
target_link_libraries(PamAuth PRIVATE PAM::PAM)
|
||||
else()
|
||||
target_link_libraries(PamAuth PRIVATE ${PAM_LIBRARIES})
|
||||
if(PAM_INCLUDE_DIRS)
|
||||
target_include_directories(PamAuth PRIVATE ${PAM_INCLUDE_DIRS})
|
||||
endif()
|
||||
endif()
|
||||
@@ -0,0 +1,17 @@
|
||||
# SSLPlugin - requires OpenSSL
|
||||
|
||||
if(NOT TARGET OpenSSL::SSL)
|
||||
message(STATUS "SSLPlugin requires OpenSSL, skipping")
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_3proxy_plugin(SSLPlugin
|
||||
SOURCES
|
||||
ssl_plugin.c
|
||||
my_ssl.c
|
||||
LIBRARIES
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
COMPILE_DEFINITIONS
|
||||
WITH_SSL
|
||||
)
|
||||
@@ -0,0 +1,4 @@
|
||||
# StringsPlugin
|
||||
add_3proxy_plugin(StringsPlugin
|
||||
SOURCES StringsPlugin.c
|
||||
)
|
||||
@@ -0,0 +1,4 @@
|
||||
# TrafficPlugin
|
||||
add_3proxy_plugin(TrafficPlugin
|
||||
SOURCES TrafficPlugin.c
|
||||
)
|
||||
@@ -0,0 +1,6 @@
|
||||
# TransparentPlugin
|
||||
# Works on Linux (with netfilter), BSD and macOS (without netfilter support)
|
||||
|
||||
add_3proxy_plugin(TransparentPlugin
|
||||
SOURCES transparent_plugin.c
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
# WindowsAuthentication
|
||||
if(NOT WIN32)
|
||||
message(STATUS "WindowsAuthentication requires Windows, skipping")
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_3proxy_plugin(WindowsAuthentication
|
||||
SOURCES WindowsAuthentication.c
|
||||
LIBRARIES advapi32
|
||||
)
|
||||
@@ -0,0 +1,4 @@
|
||||
# utf8tocp1251
|
||||
add_3proxy_plugin(utf8tocp1251
|
||||
SOURCES utf8tocp1251.c
|
||||
)
|
||||
Reference in new issue
Block a user