cmake: Uncomment still working code

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-09-03 14:50:33 +02:00 committed by Xaymar
parent 98403126ad
commit 0ce977b9dd

View file

@ -2186,132 +2186,132 @@ if(_DEPENDS)
endforeach() endforeach()
endif() endif()
# ################################################################################ ################################################################################
# # Installation # Installation
# ################################################################################ ################################################################################
if(STANDALONE) if(STANDALONE)
# if(STRUCTURE_UNIFIED) if(STRUCTURE_UNIFIED)
# install( install(
# DIRECTORY "data/" DIRECTORY "data/"
# DESTINATION "data/" DESTINATION "data/"
# FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# if(D_PLATFORM_WINDOWS) if(D_PLATFORM_WINDOWS)
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "bin/windows-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX RUNTIME DESTINATION "bin/windows-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX
# LIBRARY DESTINATION "bin/windows-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX LIBRARY DESTINATION "bin/windows-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# if(MSVC) if(MSVC)
# install( install(
# FILES $<TARGET_PDB_FILE:StreamFX> FILES $<TARGET_PDB_FILE:StreamFX>
# DESTINATION "bin/windows-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" DESTINATION "bin/windows-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/"
# COMPONENT StreamFX COMPONENT StreamFX
# OPTIONAL OPTIONAL
# ) )
# endif() endif()
# elseif(D_PLATFORM_LINUX) elseif(D_PLATFORM_LINUX)
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "bin/linux-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX RUNTIME DESTINATION "bin/linux-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX
# LIBRARY DESTINATION "bin/linux-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX LIBRARY DESTINATION "bin/linux-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# elseif(D_PLATFORM_MAC) elseif(D_PLATFORM_MAC)
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "bin/mac-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX RUNTIME DESTINATION "bin/mac-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX
# LIBRARY DESTINATION "bin/mac-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX LIBRARY DESTINATION "bin/mac-${D_PLATFORM_INSTR}-${D_PLATFORM_BITS}/" COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# endif() endif()
# install( install(
# FILES LICENSE FILES LICENSE
# DESTINATION "LICENSE" DESTINATION "LICENSE"
# COMPONENT StreamFX COMPONENT StreamFX
# ) )
# install( install(
# FILES icon.png FILES icon.png
# DESTINATION "icon.png" DESTINATION "icon.png"
# COMPONENT StreamFX COMPONENT StreamFX
# ) )
# elseif(D_PLATFORM_WINDOWS) elseif(D_PLATFORM_WINDOWS)
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "obs-plugins/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX RUNTIME DESTINATION "obs-plugins/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX
# LIBRARY DESTINATION "obs-plugins/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX LIBRARY DESTINATION "obs-plugins/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX
# ) )
# install( install(
# DIRECTORY "data/" DIRECTORY "data/"
# DESTINATION "data/obs-plugins/StreamFX/" DESTINATION "data/obs-plugins/StreamFX/"
# ) )
# if(MSVC) if(MSVC)
# install( install(
# FILES $<TARGET_PDB_FILE:StreamFX> FILES $<TARGET_PDB_FILE:StreamFX>
# DESTINATION "obs-plugins/${D_PLATFORM_BITS}bit/" DESTINATION "obs-plugins/${D_PLATFORM_BITS}bit/"
# OPTIONAL OPTIONAL
# ) )
# endif() endif()
# elseif(D_PLATFORM_LINUX) elseif(D_PLATFORM_LINUX)
# if(STRUCTURE_PACKAGEMANAGER) if(STRUCTURE_PACKAGEMANAGER)
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "lib/obs-plugins/" COMPONENT StreamFX RUNTIME DESTINATION "lib/obs-plugins/" COMPONENT StreamFX
# LIBRARY DESTINATION "lib/obs-plugins/" COMPONENT StreamFX LIBRARY DESTINATION "lib/obs-plugins/" COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# install( install(
# DIRECTORY "data/" DIRECTORY "data/"
# DESTINATION "share/obs/obs-plugins/StreamFX" DESTINATION "share/obs/obs-plugins/StreamFX"
# COMPONENT StreamFX COMPONENT StreamFX
# FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# else() else()
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "plugins/StreamFX/bin/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX RUNTIME DESTINATION "plugins/StreamFX/bin/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX
# LIBRARY DESTINATION "plugins/StreamFX/bin/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX LIBRARY DESTINATION "plugins/StreamFX/bin/${D_PLATFORM_BITS}bit/" COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# install( install(
# DIRECTORY "data/" DIRECTORY "data/"
# DESTINATION "plugins/StreamFX/data/" DESTINATION "plugins/StreamFX/data/"
# COMPONENT StreamFX COMPONENT StreamFX
# FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# endif() endif()
# elseif(D_PLATFORM_MAC) elseif(D_PLATFORM_MAC)
# if(STRUCTURE_BUNDLE) if(STRUCTURE_BUNDLE)
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "." COMPONENT StreamFX RUNTIME DESTINATION "." COMPONENT StreamFX
# LIBRARY DESTINATION "." COMPONENT StreamFX LIBRARY DESTINATION "." COMPONENT StreamFX
# BUNDLE DESTINATION "." COMPONENT StreamFX BUNDLE DESTINATION "." COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# else() else()
# install( install(
# TARGETS StreamFX TARGETS StreamFX
# RUNTIME DESTINATION "StreamFX/bin/" COMPONENT StreamFX RUNTIME DESTINATION "StreamFX/bin/" COMPONENT StreamFX
# LIBRARY DESTINATION "StreamFX/bin/" COMPONENT StreamFX LIBRARY DESTINATION "StreamFX/bin/" COMPONENT StreamFX
# PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# install( install(
# DIRECTORY "data/" DIRECTORY "data/"
# DESTINATION "StreamFX/data/" DESTINATION "StreamFX/data/"
# COMPONENT StreamFX COMPONENT StreamFX
# FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE FILE_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE DIRECTORY_PERMISSIONS WORLD_EXECUTE;WORLD_READ;OWNER_EXECUTE;OWNER_READ;OWNER_WRITE;GROUP_EXECUTE;GROUP_READ;GROUP_WRITE
# ) )
# endif() endif()
# endif() endif()
else() else()
if(COMMAND setup_plugin_target) if(COMMAND setup_plugin_target)
setup_plugin_target(StreamFX) setup_plugin_target(StreamFX)
@ -2321,72 +2321,72 @@ else()
endif() endif()
endif() endif()
# ################################################################################ ################################################################################
# # Packaging # Packaging
# ################################################################################ ################################################################################
# if(STANDALONE) if(STANDALONE)
# # Packaging # Packaging
# if(NOT PACKAGE_SUFFIX) if(NOT PACKAGE_SUFFIX)
# set(_PACKAGE_SUFFIX_OVERRIDE "${_VERSION_THIN}") set(_PACKAGE_SUFFIX_OVERRIDE "${_VERSION_THIN}")
# else() else()
# set(_PACKAGE_SUFFIX_OVERRIDE "${PACKAGE_SUFFIX}") set(_PACKAGE_SUFFIX_OVERRIDE "${PACKAGE_SUFFIX}")
# endif() endif()
# set(_PACKAGE_FULL_NAME "${PACKAGE_PREFIX}/${PACKAGE_NAME}-${_PACKAGE_SUFFIX_OVERRIDE}") set(_PACKAGE_FULL_NAME "${PACKAGE_PREFIX}/${PACKAGE_NAME}-${_PACKAGE_SUFFIX_OVERRIDE}")
# if(STRUCTURE_UNIFIED) if(STRUCTURE_UNIFIED)
# add_custom_target( add_custom_target(
# PACKAGE_ZIP PACKAGE_ZIP
# ${CMAKE_COMMAND} -E tar cfv "${_PACKAGE_FULL_NAME}.obs" --format=zip -- ${CMAKE_COMMAND} -E tar cfv "${_PACKAGE_FULL_NAME}.obs" --format=zip --
# "." "."
# WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}" WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
# ) )
# else() else()
# add_custom_target( add_custom_target(
# PACKAGE_7Z PACKAGE_7Z
# ${CMAKE_COMMAND} -E tar cfv "${_PACKAGE_FULL_NAME}.7z" --format=7zip -- ${CMAKE_COMMAND} -E tar cfv "${_PACKAGE_FULL_NAME}.7z" --format=7zip --
# "." "."
# WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}" WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
# ) )
# add_custom_target( add_custom_target(
# PACKAGE_ZIP PACKAGE_ZIP
# ${CMAKE_COMMAND} -E tar cfv "${_PACKAGE_FULL_NAME}.zip" --format=zip -- ${CMAKE_COMMAND} -E tar cfv "${_PACKAGE_FULL_NAME}.zip" --format=zip --
# "." "."
# WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}" WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
# ) )
# # Windows # Windows
# if(D_PLATFORM_WINDOWS) if(D_PLATFORM_WINDOWS)
# ## Installer (InnoSetup) ## Installer (InnoSetup)
# get_filename_component(ISS_FILES_DIR "${CMAKE_INSTALL_PREFIX}" ABSOLUTE) get_filename_component(ISS_FILES_DIR "${CMAKE_INSTALL_PREFIX}" ABSOLUTE)
# file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR) file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR)
# get_filename_component(ISS_PACKAGE_DIR "${PACKAGE_PREFIX}" ABSOLUTE) get_filename_component(ISS_PACKAGE_DIR "${PACKAGE_PREFIX}" ABSOLUTE)
# file(TO_NATIVE_PATH "${ISS_PACKAGE_DIR}" ISS_PACKAGE_DIR) file(TO_NATIVE_PATH "${ISS_PACKAGE_DIR}" ISS_PACKAGE_DIR)
# get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE) get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE)
# file(TO_NATIVE_PATH "${ISS_SOURCE_DIR}" ISS_SOURCE_DIR) file(TO_NATIVE_PATH "${ISS_SOURCE_DIR}" ISS_SOURCE_DIR)
# get_filename_component(ISS_MSVCHELPER_PATH "${msvc-redist-helper_BUILD_DIR}" ABSOLUTE) get_filename_component(ISS_MSVCHELPER_PATH "${msvc-redist-helper_BUILD_DIR}" ABSOLUTE)
# file(TO_NATIVE_PATH "${ISS_MSVCHELPER_PATH}" ISS_MSVCHELPER_PATH) file(TO_NATIVE_PATH "${ISS_MSVCHELPER_PATH}" ISS_MSVCHELPER_PATH)
# configure_file( configure_file(
# "templates/windows/installer.iss.in" "templates/windows/installer.iss.in"
# "installer.iss" "installer.iss"
# ) )
# endif() endif()
# # Apple MacOS # Apple MacOS
# if(D_PLATFORM_MAC) if(D_PLATFORM_MAC)
# # .pkg Installer # .pkg Installer
# set(PACKAGES_PATH_NAME "StreamFX") set(PACKAGES_PATH_NAME "StreamFX")
# if(STRUCTURE_BUNDLE) if(STRUCTURE_BUNDLE)
# set(PACKAGES_PATH_NAME "${PACKAGES_PATH_NAME}.plugin") set(PACKAGES_PATH_NAME "${PACKAGES_PATH_NAME}.plugin")
# endif() endif()
# configure_file( configure_file(
# "templates/macos/installer.pkgproj.in" "templates/macos/installer.pkgproj.in"
# "installer.pkgproj" "installer.pkgproj"
# ) )
# endif() endif()
# endif() endif()
# endif() endif()