Skip to content

Commit

Permalink
Current version of Psi+ is 1.5.2039
Browse files Browse the repository at this point in the history
It is based on:
* psi: 449720c1
* plugins: 347230b
* psimedia: 478567e
* resources: e32ef4b
  • Loading branch information
tehnick committed Jul 11, 2024
1 parent a21ab43 commit 4bf5e78
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 30 deletions.
3 changes: 1 addition & 2 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ set_directory_properties(PROPERTIES
COMPILE_DEFINITIONS ""
)

set( CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
list(APPEND CMAKE_MODULE_PATH
${PROJECT_SOURCE_DIR}/cmake/modules
${CMAKE_CURRENT_LIST_DIR}/cmake/modules
)
Expand Down
31 changes: 17 additions & 14 deletions plugins/dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ set( plugins_list
message(STATUS "Plugins from dev subdirectory")
# If BUILD_PLUGINS variable was set as "-plugin1;-plugin2"
# We proceed all plugins with plugin1 and plugin2 excluded
string(REGEX MATCH ".*[-]*" DISABLED_PLUGINS "${BUILD_PLUGINS}")
string(REGEX MATCHALL "[-][^;]+" DISABLED_PLUGINS "${BUILD_PLUGINS}")
if(NOT "${DISABLED_PLUGINS}" STREQUAL "")
string(REPLACE "-" "" DISABLED_LIST "${DISABLED_PLUGINS}")
set(plugins ${plugins_list})
foreach(mp ${BUILD_PLUGINS})
string(SUBSTRING "${mp}" 0 1 FIRST_LETTER)
string(SUBSTRING ${mp} 1 -1 PLUGIN_BODY)
if(${FIRST_LETTER} STREQUAL "-")
message(STATUS "Exclude subdirectory: ${PLUGIN_BODY}")
list(REMOVE_ITEM plugins "${PLUGIN_BODY}")
foreach(dp ${DISABLED_LIST})
list(FIND plugins "${dp}" _IS_FOUND)
if(${_IS_FOUND} GREATER_EQUAL 0)
message(STATUS "Exclude subdirectory: ${dp}")
list(REMOVE_ITEM plugins "${dp}")
endif()
unset(_IS_FOUND)
endforeach()
else()
if( "${BUILD_PLUGINS}" STREQUAL "ALL" )
Expand All @@ -27,11 +28,13 @@ else()
endif()
endif()

foreach( plugin ${plugins_list} )
foreach( subdir ${plugins} )
if( ${plugin} STREQUAL ${subdir} )
message(STATUS "Add subdirectory: ${plugin}")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/${plugin}")
endif()
endforeach()
foreach(plugin ${plugins})
list(FIND plugins_list "${plugin}" _IS_FOUND)
if(${_IS_FOUND} GREATER_EQUAL 0)
message(STATUS "Add subdirectory: ${plugin}")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/${plugin}")
else()
message(WARNING "Plugin ${plugin} set by BUILD_PLUGINS variable not found")
endif()
unset(_IS_FOUND)
endforeach()
31 changes: 17 additions & 14 deletions plugins/generic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ endif()
message(STATUS "Plugins from generic subdirectory")
# If BUILD_PLUGINS variable was set as "-plugin1;-plugin2"
# We proceed all plugins with plugin1 and plugin2 excluded
string(REGEX MATCH ".*[-]+" DISABLED_PLUGINS "${BUILD_PLUGINS}")
string(REGEX MATCHALL "[-][^;]+" DISABLED_PLUGINS "${BUILD_PLUGINS}")
if(NOT "${DISABLED_PLUGINS}" STREQUAL "")
string(REPLACE "-" "" DISABLED_LIST "${DISABLED_PLUGINS}")
set(plugins ${plugins_list})
foreach(mp ${BUILD_PLUGINS})
string(SUBSTRING "${mp}" 0 1 FIRST_LETTER)
string(SUBSTRING ${mp} 1 -1 PLUGIN_BODY)
if(${FIRST_LETTER} STREQUAL "-")
message(STATUS "Exclude subdirectory: ${PLUGIN_BODY}")
list(REMOVE_ITEM plugins "${PLUGIN_BODY}")
foreach(dp ${DISABLED_LIST})
list(FIND plugins "${dp}" _IS_FOUND)
if(${_IS_FOUND} GREATER_EQUAL 0)
message(STATUS "Exclude subdirectory: ${dp}")
list(REMOVE_ITEM plugins "${dp}")
endif()
unset(_IS_FOUND)
endforeach()
else()
if( "${BUILD_PLUGINS}" STREQUAL "ALL" )
Expand All @@ -65,11 +66,13 @@ else()
endif()
endif()

foreach(plugin ${plugins_list})
foreach(subdir ${plugins})
if( ${plugin} STREQUAL ${subdir} )
message(STATUS "Add subdirectory: ${plugin}")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/${plugin}")
endif()
endforeach()
foreach(plugin ${plugins})
list(FIND plugins_list "${plugin}" _IS_FOUND)
if(${_IS_FOUND} GREATER_EQUAL 0)
message(STATUS "Add subdirectory: ${plugin}")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/${plugin}")
else()
message(WARNING "Plugin ${plugin} set by BUILD_PLUGINS variable not found")
endif()
unset(_IS_FOUND)
endforeach()

0 comments on commit 4bf5e78

Please sign in to comment.