mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-25 02:33:51 +08:00
Rename cmake helper functions.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function(plugin_helper_no_install PLUGIN_NAME SRCLIST INCLIST LINKLIST)
|
||||
function(add_mosquitto_plugin_no_install PLUGIN_NAME SRCLIST INCLIST LINKLIST)
|
||||
add_library(${PLUGIN_NAME} MODULE ${SRCLIST})
|
||||
target_include_directories(${PLUGIN_NAME} PRIVATE
|
||||
${INCLIST}
|
||||
@@ -22,8 +22,8 @@ function(plugin_helper_no_install PLUGIN_NAME SRCLIST INCLIST LINKLIST)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
function(plugin_helper PLUGIN_NAME SRCLIST INCLIST LINKLIST)
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
function(add_mosquitto_plugin PLUGIN_NAME SRCLIST INCLIST LINKLIST)
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
|
||||
if(WIN32)
|
||||
install(TARGETS ${PLUGIN_NAME}
|
||||
|
||||
@@ -35,5 +35,5 @@ if(WITH_TLS)
|
||||
OpenSSL::SSL
|
||||
)
|
||||
|
||||
plugin_helper("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
add_mosquitto_plugin("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
endif()
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_add_properties)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_auth_by_env)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_auth_by_ip)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_client_lifetime_stats)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_client_properties)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_connection_state)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_delayed_auth)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_deny_protocol_version)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_force_retain)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_limit_subscription_qos)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_message_timestamp)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_payload_ban)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_payload_modification)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_payload_size_stats)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_plugin_event_stats)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_print_ip_on_publish)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_topic_jail)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_topic_modification)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
set (PLUGIN_NAME mosquitto_wildcard_temp)
|
||||
|
||||
plugin_helper_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
add_mosquitto_plugin_no_install("${PLUGIN_NAME}" "${PLUGIN_NAME}.c" "" "")
|
||||
|
||||
@@ -22,5 +22,5 @@ if(SQLITE3_FOUND)
|
||||
SQLite::SQLite3
|
||||
)
|
||||
|
||||
plugin_helper("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
add_mosquitto_plugin("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
endif()
|
||||
|
||||
@@ -8,4 +8,4 @@ set(SRCLIST
|
||||
set(INCLIST )
|
||||
set(LINKLIST )
|
||||
|
||||
plugin_helper("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
add_mosquitto_plugin("${PLUGIN_NAME}" "${SRCLIST}" "${INCLIST}" "${LINKLIST}")
|
||||
|
||||
Reference in New Issue
Block a user