Prechádzať zdrojové kódy

cmake: Update main CMakeLists to new build system

PatTheMav 2 rokov pred
rodič
commit
b77a072a0d

+ 27 - 80
CMakeLists.txt

@@ -1,92 +1,39 @@
-cmake_minimum_required(VERSION 3.16...3.21)
+cmake_minimum_required(VERSION 3.16...3.26)
 
-# Change obs-plugintemplate to your plugin's name in a machine-readable format (e.g.:
-# obs-myawesomeplugin) and set
-project(obs-plugintemplate VERSION 1.0.0)
-add_library(${CMAKE_PROJECT_NAME} MODULE)
-
-# Replace `Your Name Here` with the name (yours or your organization's) you want to see as the
-# author of the plugin (in the plugin's metadata itself and in the installers)
-set(PLUGIN_AUTHOR "Your Name Here")
+include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake" NO_POLICY_SCOPE)
 
-# Replace 'https://www.example.com` with a link to the website of your plugin or repository
-set(PLUGIN_WEBSITE "https://www.example.com")
+project(${_name} VERSION ${_version})
 
-# Replace `com.example.obs-plugin-template` with a unique Bundle ID for macOS releases (used both in
-# the installer and when submitting the installer for notarization)
-set(MACOS_BUNDLEID "com.example.${CMAKE_PROJECT_NAME}")
+option(ENABLE_FRONTEND_API "Use obs-frontend-api for UI functionality" OFF)
+option(ENABLE_QT "Use Qt functionality" OFF)
 
-# Replace `me@contoso.com` with the maintainer email address you want to put in Linux packages
-set(LINUX_MAINTAINER_EMAIL "me@mymailhost.com")
+include(compilerconfig)
+include(defaults)
+include(helpers)
 
-# Add your custom source files here - header files are optional and only required for visibility
-# e.g. in Xcode or Visual Studio
-target_sources(${CMAKE_PROJECT_NAME} PRIVATE src/plugin-main.c)
+add_library(${CMAKE_PROJECT_NAME} MODULE)
 
-# Import libobs as main plugin dependency
 find_package(libobs REQUIRED)
-include(cmake/ObsPluginHelpers.cmake)
-
-# Uncomment these lines if you want to use the OBS Frontend API in your plugin
-#[[
-find_package(obs-frontend-api REQUIRED)
-target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE OBS::obs-frontend-api)
-#]]
-
-# Uncomment those lines if you want to use Qt in your plugin
-#[[
-find_qt(COMPONENTS Widgets Core)
-target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE Qt::Core Qt::Widgets)
-set_target_properties(
-  ${CMAKE_PROJECT_NAME}
-  PROPERTIES AUTOMOC ON
-             AUTOUIC ON
-             AUTORCC ON)
-#]]
-
-configure_file(src/plugin-macros.h.in ${CMAKE_SOURCE_DIR}/src/plugin-macros.generated.h)
-
-target_sources(${CMAKE_PROJECT_NAME} PRIVATE src/plugin-macros.generated.h)
-
-# /!\ TAKE NOTE: No need to edit things past this point /!\
-
-# --- Platform-independent build settings ---
-
-target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/src)
-
 target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE OBS::libobs)
 
-# --- End of section ---
-
-# --- Windows-specific build settings and tasks ---
-if(OS_WINDOWS)
-  configure_file(cmake/bundle/windows/installer-Windows.iss.in
-                 ${CMAKE_BINARY_DIR}/installer-Windows.generated.iss)
-
-  configure_file(cmake/bundle/windows/resource.rc.in ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.rc)
-  target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.rc)
-
-  if(MSVC)
-    target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE /W4)
-  endif()
-  # --- End of section ---
-
-  # -- macOS specific build settings and tasks --
-elseif(OS_MACOS)
-  configure_file(cmake/bundle/macos/installer-macos.pkgproj.in
-                 ${CMAKE_BINARY_DIR}/installer-macos.generated.pkgproj)
-
-  set(MACOSX_PLUGIN_GUI_IDENTIFIER "${MACOS_BUNDLEID}")
-  set(MACOSX_PLUGIN_BUNDLE_VERSION "${CMAKE_PROJECT_VERSION}")
-  set(MACOSX_PLUGIN_SHORT_VERSION_STRING "1")
-
-  target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wall)
-  # --- End of section ---
+if(ENABLE_FRONTEND_API)
+  find_package(obs-frontend-api REQUIRED)
+  target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE OBS::obs-frontend-api)
+endif()
 
-  # --- Linux-specific build settings and tasks ---
-else()
-  target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wall)
+if(ENABLE_QT)
+  find_qt(COMPONENTS Widgets Core)
+  target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE Qt::Core Qt::Widgets)
+  target_compile_options(
+    ${CMAKE_PROJECT_NAME} PRIVATE $<$<C_COMPILER_ID:Clang,AppleClang>:-Wno-quoted-include-in-framework-header
+                                  -Wno-comma>)
+  set_target_properties(
+    ${CMAKE_PROJECT_NAME}
+    PROPERTIES AUTOMOC ON
+               AUTOUIC ON
+               AUTORCC ON)
 endif()
-# --- End of section ---
 
-setup_plugin_target(${CMAKE_PROJECT_NAME})
+target_sources(${CMAKE_PROJECT_NAME} PRIVATE src/plugin-main.c)
+
+set_target_properties_plugin(${CMAKE_PROJECT_NAME} PROPERTIES OUTPUT_NAME ${_name})

+ 0 - 699
cmake/ObsPluginHelpers.cmake

@@ -1,699 +0,0 @@
-if(POLICY CMP0087)
-  cmake_policy(SET CMP0087 NEW)
-endif()
-
-set(OBS_STANDALONE_PLUGIN_DIR ${CMAKE_SOURCE_DIR}/release)
-
-include(GNUInstallDirs)
-if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
-  set(OS_MACOS ON)
-  set(OS_POSIX ON)
-elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD")
-  set(OS_POSIX ON)
-  string(TOUPPER "${CMAKE_SYSTEM_NAME}" _SYSTEM_NAME_U)
-  set(OS_${_SYSTEM_NAME_U} ON)
-elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
-  set(OS_WINDOWS ON)
-  set(OS_POSIX OFF)
-endif()
-
-# Old-Style plugin detected, find "modern" libobs variant instead and set global include directories
-# to fix "bad" plugin behavior
-if(DEFINED LIBOBS_INCLUDE_DIR AND NOT TARGET OBS::libobs)
-  message(
-    DEPRECATION
-      "You are using an outdated method of adding 'libobs' to your project. Refer to the updated wiki on how to build and export 'libobs' and use it in your plugin projects."
-  )
-  find_package(libobs REQUIRED)
-  if(TARGET OBS::libobs)
-    set_target_properties(OBS::libobs PROPERTIES IMPORTED_GLOBAL TRUE)
-    message(STATUS "OBS: Using modern libobs target")
-
-    add_library(libobs ALIAS OBS::libobs)
-    if(OS_WINDOWS)
-      add_library(w32-pthreads ALIAS OBS::w32-pthreads)
-    endif()
-  endif()
-endif()
-
-# Set macOS and Windows specific if default value is used
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND (OS_WINDOWS OR OS_MACOS))
-  set(CMAKE_INSTALL_PREFIX
-      ${OBS_STANDALONE_PLUGIN_DIR}
-      CACHE STRING "Directory to install OBS plugin after building" FORCE)
-endif()
-
-# Set default build type to RelWithDebInfo and specify allowed alternative values
-if(NOT CMAKE_BUILD_TYPE)
-  set(CMAKE_BUILD_TYPE
-      "RelWithDebInfo"
-      CACHE STRING "OBS build type [Release, RelWithDebInfo, Debug, MinSizeRel]" FORCE)
-  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Release RelWithDebInfo Debug MinSizeRel)
-endif()
-
-# Set default Qt version to AUTO, preferring an available Qt6 with a fallback to Qt5
-if(NOT QT_VERSION)
-  set(QT_VERSION
-      AUTO
-      CACHE STRING "OBS Qt version [AUTO, 6, 5]" FORCE)
-  set_property(CACHE QT_VERSION PROPERTY STRINGS AUTO 6 5)
-endif()
-
-# Macro to find best possible Qt version for use with the project:
-#
-# * Use QT_VERSION value as a hint for desired Qt version
-# * If "AUTO" was specified, prefer Qt6 over Qt5
-# * Creates versionless targets of desired component if none had been created by Qt itself (Qt
-#   versions < 5.15)
-#
-macro(find_qt)
-  set(multiValueArgs COMPONENTS COMPONENTS_WIN COMPONENTS_MAC COMPONENTS_LINUX)
-  cmake_parse_arguments(FIND_QT "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
-
-  # Do not use versionless targets in the first step to avoid Qt::Core being clobbered by later
-  # opportunistic find_package runs
-  set(QT_NO_CREATE_VERSIONLESS_TARGETS ON)
-
-  # Loop until _QT_VERSION is set or FATAL_ERROR aborts script execution early
-  while(NOT _QT_VERSION)
-    if(QT_VERSION STREQUAL AUTO AND NOT _QT_TEST_VERSION)
-      set(_QT_TEST_VERSION 6)
-    elseif(NOT QT_VERSION STREQUAL AUTO)
-      set(_QT_TEST_VERSION ${QT_VERSION})
-    endif()
-
-    find_package(
-      Qt${_QT_TEST_VERSION}
-      COMPONENTS Core
-      QUIET)
-
-    if(TARGET Qt${_QT_TEST_VERSION}::Core)
-      set(_QT_VERSION
-          ${_QT_TEST_VERSION}
-          CACHE INTERNAL "")
-      message(STATUS "Qt version found: ${_QT_VERSION}")
-      unset(_QT_TEST_VERSION)
-      break()
-    elseif(QT_VERSION STREQUAL AUTO)
-      if(_QT_TEST_VERSION EQUAL 6)
-        message(WARNING "Qt6 was not found, falling back to Qt5")
-        set(_QT_TEST_VERSION 5)
-        continue()
-      endif()
-    endif()
-    message(FATAL_ERROR "Neither Qt6 nor Qt5 found.")
-  endwhile()
-
-  # Enable versionless targets for the remaining Qt components
-  set(QT_NO_CREATE_VERSIONLESS_TARGETS OFF)
-
-  set(_QT_COMPONENTS ${FIND_QT_COMPONENTS})
-  if(OS_WINDOWS)
-    list(APPEND _QT_COMPONENTS ${FIND_QT_COMPONENTS_WIN})
-  elseif(OS_MACOS)
-    list(APPEND _QT_COMPONENTS ${FIND_QT_COMPONENTS_MAC})
-  else()
-    list(APPEND _QT_COMPONENTS ${FIND_QT_COMPONENTS_LINUX})
-  endif()
-
-  find_package(
-    Qt${_QT_VERSION}
-    COMPONENTS ${_QT_COMPONENTS}
-    REQUIRED)
-
-  list(APPEND _QT_COMPONENTS Core)
-
-  if("Gui" IN_LIST FIND_QT_COMPONENTS_LINUX)
-    list(APPEND _QT_COMPONENTS "GuiPrivate")
-  endif()
-
-  # Check for versionless targets of each requested component and create if necessary
-  foreach(_COMPONENT IN LISTS _QT_COMPONENTS)
-    if(NOT TARGET Qt::${_COMPONENT} AND TARGET Qt${_QT_VERSION}::${_COMPONENT})
-      add_library(Qt::${_COMPONENT} INTERFACE IMPORTED)
-      set_target_properties(Qt::${_COMPONENT} PROPERTIES INTERFACE_LINK_LIBRARIES
-                                                         Qt${_QT_VERSION}::${_COMPONENT})
-    endif()
-  endforeach()
-endmacro()
-
-# Set relative path variables for file configurations
-file(RELATIVE_PATH RELATIVE_INSTALL_PATH ${CMAKE_SOURCE_DIR} ${CMAKE_INSTALL_PREFIX})
-file(RELATIVE_PATH RELATIVE_BUILD_PATH ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
-
-if(OS_POSIX)
-  # Set default GCC/clang compile options:
-  #
-  # * Treat warnings as errors
-  # * Enable extra warnings, https://clang.llvm.org/docs/DiagnosticsReference.html#wextra
-  # * Warning about usage of variable length array,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wvla
-  # * Warning about bad format specifiers,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wformat
-  # * Warning about non-strings used as format strings,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wformat-security
-  # * Warning about non-exhaustive switch blocks,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wswitch
-  # * Warning about unused parameters,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wunused-parameter
-  # * DISABLE warning about unused functions,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wunused-function
-  # * DISABLE warning about missing field initializers,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wmissing-field-initializers
-  # * DISABLE strict aliasing optimisations
-  # * C ONLY - treat implicit function declarations (use before declare) as errors,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wimplicit-function-declaration
-  # * C ONLY - DISABLE warning about missing braces around subobject initalizers,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wmissing-braces
-  # * C ONLY, Clang ONLY - Warning about implicit conversion of NULL to another type,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wnull-conversion
-  # * C & C++, Clang ONLY - Disable warning about integer conversion losing precision,
-  #   https://clang.llvm.org/docs/DiagnosticsReference.html#wshorten-64-to-32
-  # * C++, GCC ONLY - Warning about implicit conversion of NULL to another type
-  # * Enable color diagnostics on Clang (CMAKE_COLOR_DIAGNOSTICS available in CMake 3.24)
-  target_compile_options(
-    ${CMAKE_PROJECT_NAME}
-    PRIVATE
-      -Werror
-      -Wextra
-      -Wvla
-      -Wformat
-      -Wformat-security
-      -Wswitch
-      -Wunused-parameter
-      -Wno-unused-function
-      -Wno-missing-field-initializers
-      -fno-strict-aliasing
-      "$<$<COMPILE_LANGUAGE:C>:-Werror-implicit-function-declaration;-Wno-missing-braces>"
-      "$<$<COMPILE_LANG_AND_ID:C,AppleClang,Clang>:-Wnull-conversion;-Wno-error=shorten-64-to-32;-fcolor-diagnostics>"
-      "$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wnull-conversion;-Wno-error=shorten-64-to-32;-fcolor-diagnostics>"
-      "$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wconversion-null>"
-      "$<$<CONFIG:DEBUG>:-DDEBUG=1;-D_DEBUG=1>")
-
-  # GCC 12.1.0 has a regression bug which trigger maybe-uninitialized warnings where there is not.
-  # (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105562)
-  if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "12.1.0")
-    target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wno-error=maybe-uninitialized)
-  endif()
-
-  if(NOT CCACHE_SET)
-    # Try to find and enable ccache
-    find_program(CCACHE_PROGRAM "ccache")
-    set(CCACHE_SUPPORT
-        ON
-        CACHE BOOL "Enable ccache support")
-    mark_as_advanced(CCACHE_PROGRAM)
-    if(CCACHE_PROGRAM AND CCACHE_SUPPORT)
-      set(CMAKE_CXX_COMPILER_LAUNCHER
-          ${CCACHE_PROGRAM}
-          CACHE INTERNAL "")
-      set(CMAKE_C_COMPILER_LAUNCHER
-          ${CCACHE_PROGRAM}
-          CACHE INTERNAL "")
-      set(CMAKE_OBJC_COMPILER_LAUNCHER
-          ${CCACHE_PROGRAM}
-          CACHE INTERNAL "")
-      set(CMAKE_OBJCXX_COMPILER_LAUNCHER
-          ${CCACHE_PROGRAM}
-          CACHE INTERNAL "")
-      set(CMAKE_CUDA_COMPILER_LAUNCHER
-          ${CCACHE_PROGRAM}
-          CACHE INTERNAL "") # CMake 3.9+
-      set(CCACHE_SET
-          ON
-          CACHE INTERNAL "")
-    endif()
-  endif()
-endif()
-
-# Set required C++ standard to C++17
-set(CMAKE_CXX_STANDARD 17)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
-set(CMAKE_CXX_EXTENSIONS OFF)
-
-# Get lowercase host architecture for easier comparison
-if(MSVC_CXX_ARCHITECTURE_ID)
-  string(TOLOWER ${MSVC_CXX_ARCHITECTURE_ID} _HOST_ARCH)
-else()
-  string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} _HOST_ARCH)
-endif()
-
-if(_HOST_ARCH MATCHES "i[3-6]86|x86|x64|x86_64|amd64" AND NOT CMAKE_OSX_ARCHITECTURES STREQUAL
-                                                          "arm64")
-  # Enable MMX, SSE and SSE2 on compatible host systems (assuming no cross-compile)
-  set(ARCH_SIMD_FLAGS -mmmx -msse -msse2)
-elseif(_HOST_ARCH MATCHES "arm64|arm64e|aarch64")
-  # Enable available built-in SIMD support in Clang and GCC
-  if(CMAKE_C_COMPILER_ID MATCHES "^(Apple)?Clang|GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
-                                                         "^(Apple)?Clang|GNU")
-    include(CheckCCompilerFlag)
-    include(CheckCXXCompilerFlag)
-
-    check_c_compiler_flag("-fopenmp-simd" C_COMPILER_SUPPORTS_OPENMP_SIMD)
-    check_cxx_compiler_flag("-fopenmp-simd" CXX_COMPILER_SUPPORTS_OPENMP_SIMD)
-    target_compile_options(
-      ${CMAKE_PROJECT_NAME}
-      PRIVATE
-        -DSIMDE_ENABLE_OPENMP
-        "$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:C_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>"
-        "$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:CXX_COMPILER_SUPPORTS_OPENMP_SIMD>>:-fopenmp-simd>")
-  endif()
-endif()
-
-# macOS specific settings
-if(OS_MACOS)
-  # Set macOS-specific C++ standard library
-  target_compile_options(
-    ${CMAKE_PROJECT_NAME}
-    PRIVATE "$<$<COMPILE_LANG_AND_ID:OBJC,AppleClang,Clang>:-fcolor-diagnostics>" -stdlib=libc++)
-
-  # Set build architecture to host architecture by default
-  if(NOT CMAKE_OSX_ARCHITECTURES)
-    set(CMAKE_OSX_ARCHITECTURES
-        ${CMAKE_HOST_SYSTEM_PROCESSOR}
-        CACHE STRING "Build architecture for macOS" FORCE)
-  endif()
-  set_property(CACHE CMAKE_OSX_ARCHITECTURES PROPERTY STRINGS arm64 x86_64 "arm64;x86_64")
-
-  # Set deployment target to 11.0 for Apple Silicon or 10.15 for Intel and Universal builds
-  if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
-    set(CMAKE_XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET[arch=arm64] "11.0")
-    set(CMAKE_XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET[arch=x86_64] "10.15")
-
-    if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "arm64")
-      set(_MACOS_DEPLOYMENT_TARGET "11.0")
-    else()
-      set(_MACOS_DEPLOYMENT_TARGET "10.15")
-    endif()
-
-    set(CMAKE_OSX_DEPLOYMENT_TARGET
-        ${_MACOS_DEPLOYMENT_TARGET}
-        CACHE STRING
-              "Minimum macOS version to target for deployment (at runtime); newer APIs weak linked"
-              FORCE)
-    unset(_MACOS_DEPLOYMENT_TARGET)
-  endif()
-
-  set_property(CACHE CMAKE_OSX_DEPLOYMENT_TARGET PROPERTY STRINGS 13.0 12.0 11.0 10.15)
-
-  # Override macOS install directory
-  if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
-    set(CMAKE_INSTALL_PREFIX
-        ${CMAKE_BINARY_DIR}/install
-        CACHE STRING "Directory to install OBS to after building" FORCE)
-  endif()
-
-  # Set up codesigning for Xcode builds with team IDs or standalone builds with developer identity
-  if(NOT OBS_BUNDLE_CODESIGN_TEAM)
-    if(NOT OBS_BUNDLE_CODESIGN_IDENTITY)
-      set(OBS_BUNDLE_CODESIGN_IDENTITY
-          "-"
-          CACHE STRING "OBS code signing identity for macOS" FORCE)
-    endif()
-    set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY ${OBS_BUNDLE_CODESIGN_IDENTITY})
-  else()
-    # Team ID specified, warn if Xcode generator is not used and fall back to ad-hoc signing
-    if(NOT XCODE)
-      message(
-        WARNING
-          "Code signing with a team identifier is only supported with the Xcode generator. Using ad-hoc code signature instead."
-      )
-      if(NOT OBS_BUNDLE_CODESIGN_IDENTITY)
-        set(OBS_BUNDLE_CODESIGN_IDENTITY
-            "-"
-            CACHE STRING "OBS code signing identity for macOS" FORCE)
-      endif()
-    else()
-      unset(OBS_BUNDLE_CODESIGN_IDENTITY)
-      set_property(CACHE OBS_BUNDLE_CODESIGN_TEAM PROPERTY HELPSTRING
-                                                           "OBS code signing team for macOS")
-      set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_STYLE Automatic)
-      set(CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM ${OBS_BUNDLE_CODESIGN_TEAM})
-    endif()
-  endif()
-
-  # Set path to entitlements property list for codesigning. Entitlements should match the host
-  # binary, in this case OBS.app.
-  set(OBS_CODESIGN_ENTITLEMENTS
-      ${CMAKE_SOURCE_DIR}/cmake/bundle/macos/entitlements.plist
-      CACHE INTERNAL "Path to codesign entitlements plist")
-  # Enable linker codesigning by default. Building OBS or plugins on host systems older than macOS
-  # 10.15 is not supported
-  set(OBS_CODESIGN_LINKER
-      ON
-      CACHE BOOL "Enable linker codesigning on macOS (macOS 11+ required)")
-
-  # Tell Xcode to pretend the linker signed binaries so that editing with install_name_tool
-  # preserves ad-hoc signatures. This option is supported by codesign on macOS 11 or higher. See
-  # CMake Issue 21854: https://gitlab.kitware.com/cmake/cmake/-/issues/21854
-  if(OBS_CODESIGN_LINKER)
-    set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "-o linker-signed")
-  endif()
-
-  # Set default options for bundling on macOS
-  set(CMAKE_MACOSX_RPATH ON)
-  set(CMAKE_SKIP_BUILD_RPATH OFF)
-  set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
-  set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks/")
-  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH OFF)
-
-  # Helper function for plugin targets (macOS version)
-  function(setup_plugin_target target)
-    # Sanity check for required bundle information
-    #
-    # * Bundle identifier
-    # * Bundle version
-    # * Short version string
-    if(NOT DEFINED MACOSX_PLUGIN_GUI_IDENTIFIER)
-      message(
-        FATAL_ERROR
-          "No 'MACOSX_PLUGIN_GUI_IDENTIFIER' set, but is required to build plugin bundles on macOS - example: 'com.yourname.pluginname'"
-      )
-    endif()
-
-    if(NOT DEFINED MACOSX_PLUGIN_BUNDLE_VERSION)
-      message(
-        FATAL_ERROR
-          "No 'MACOSX_PLUGIN_BUNDLE_VERSION' set, but is required to build plugin bundles on macOS - example: '25'"
-      )
-    endif()
-
-    if(NOT DEFINED MACOSX_PLUGIN_SHORT_VERSION_STRING)
-      message(
-        FATAL_ERROR
-          "No 'MACOSX_PLUGIN_SHORT_VERSION_STRING' set, but is required to build plugin bundles on macOS - example: '1.0.2'"
-      )
-    endif()
-
-    # Set variables for automatic property list generation
-    set(MACOSX_PLUGIN_BUNDLE_NAME
-        "${target}"
-        PARENT_SCOPE)
-    set(MACOSX_PLUGIN_BUNDLE_VERSION
-        "${MACOSX_PLUGIN_BUNDLE_VERSION}"
-        PARENT_SCOPE)
-    set(MACOSX_PLUGIN_SHORT_VERSION_STRING
-        "${MACOSX_PLUGIN_SHORT_VERSION_STRING}"
-        PARENT_SCOPE)
-    set(MACOSX_PLUGIN_EXECUTABLE_NAME
-        "${target}"
-        PARENT_SCOPE)
-    set(MACOSX_PLUGIN_BUNDLE_TYPE
-        "BNDL"
-        PARENT_SCOPE)
-
-    # Set installation target to install prefix root (default for bundles)
-    install(
-      TARGETS ${target}
-      LIBRARY DESTINATION "."
-              COMPONENT obs_plugins
-              NAMELINK_COMPONENT ${target}_Development)
-
-    if(TARGET Qt::Core)
-      # Framework version has changed between Qt5 (uses wrong numerical version) and Qt6 (uses
-      # correct alphabetical version)
-      if(${_QT_VERSION} EQUAL 5)
-        set(_QT_FW_VERSION "${QT_VERSION}")
-      else()
-        set(_QT_FW_VERSION "A")
-      endif()
-
-      # Set up install-time command to fix Qt library references to point into OBS.app bundle
-      set(_COMMAND
-          "${CMAKE_INSTALL_NAME_TOOL} \\
-        -change ${CMAKE_PREFIX_PATH}/lib/QtWidgets.framework/Versions/${QT_VERSION}/QtWidgets @rpath/QtWidgets.framework/Versions/${_QT_FW_VERSION}/QtWidgets \\
-        -change ${CMAKE_PREFIX_PATH}/lib/QtCore.framework/Versions/${QT_VERSION}/QtCore @rpath/QtCore.framework/Versions/${_QT_FW_VERSION}/QtCore \\
-        -change ${CMAKE_PREFIX_PATH}/lib/QtGui.framework/Versions/${QT_VERSION}/QtGui @rpath/QtGui.framework/Versions/${_QT_FW_VERSION}/QtGui \\
-        \\\"\${CMAKE_INSTALL_PREFIX}/${target}.plugin/Contents/MacOS/${target}\\\"")
-      install(CODE "execute_process(COMMAND /bin/sh -c \"${_COMMAND}\")" COMPONENT obs_plugins)
-      unset(_QT_FW_VERSION)
-    endif()
-
-    # Set macOS bundle properties
-    set_target_properties(
-      ${target}
-      PROPERTIES PREFIX ""
-                 BUNDLE ON
-                 BUNDLE_EXTENSION "plugin"
-                 OUTPUT_NAME ${target}
-                 MACOSX_BUNDLE_INFO_PLIST
-                 "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/bundle/macOS/Plugin-Info.plist.in"
-                 XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "${MACOSX_PLUGIN_GUI_IDENTIFIER}"
-                 XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS
-                 "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/bundle/macOS/entitlements.plist")
-
-    # If not building with Xcode, manually code-sign the plugin
-    if(NOT XCODE)
-      set(_COMMAND
-          "/usr/bin/codesign --force \\
-          --sign \\\"${OBS_BUNDLE_CODESIGN_IDENTITY}\\\" \\
-          --options runtime \\
-          --entitlements \\\"${CMAKE_CURRENT_FUNCTION_LIST_DIR}/bundle/macOS/entitlements.plist\\\" \\
-          \\\"\${CMAKE_INSTALL_PREFIX}/${target}.plugin\\\"")
-      install(CODE "execute_process(COMMAND /bin/sh -c \"${_COMMAND}\")" COMPONENT obs_plugins)
-    endif()
-
-    install_bundle_resources(${target})
-  endfunction()
-
-  # Helper function to add resources from "data" directory as bundle resources
-  function(install_bundle_resources target)
-    if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/data")
-      file(GLOB_RECURSE _DATA_FILES "${CMAKE_CURRENT_SOURCE_DIR}/data/*")
-      foreach(_DATA_FILE IN LISTS _DATA_FILES)
-        file(RELATIVE_PATH _RELATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/data/ ${_DATA_FILE})
-        get_filename_component(_RELATIVE_PATH "${_RELATIVE_PATH}" PATH)
-        target_sources(${target} PRIVATE ${_DATA_FILE})
-        set_source_files_properties(${_DATA_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION
-                                                             "Resources/${_RELATIVE_PATH}")
-        string(REPLACE "\\" "\\\\" _GROUP_NAME "${_RELATIVE_PATH}")
-        source_group("Resources\\${_GROUP_NAME}" FILES ${_DATA_FILE})
-      endforeach()
-    endif()
-  endfunction()
-else()
-  # Check for target architecture (64bit vs 32bit)
-  if(CMAKE_SIZEOF_VOID_P EQUAL 8)
-    set(_ARCH_SUFFIX 64)
-  else()
-    set(_ARCH_SUFFIX 32)
-  endif()
-  set(OBS_OUTPUT_DIR ${CMAKE_BINARY_DIR}/rundir)
-
-  # Unix specific settings
-  if(OS_POSIX)
-    # Paths to binaries and plugins differ between portable and non-portable builds on Linux
-    option(LINUX_PORTABLE "Build portable version (Linux)" ON)
-    if(NOT LINUX_PORTABLE)
-      set(OBS_LIBRARY_DESTINATION ${CMAKE_INSTALL_LIBDIR})
-      set(OBS_PLUGIN_DESTINATION ${OBS_LIBRARY_DESTINATION}/obs-plugins)
-      set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
-      set(OBS_DATA_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/obs)
-    else()
-      set(OBS_LIBRARY_DESTINATION bin/${_ARCH_SUFFIX}bit)
-      set(OBS_PLUGIN_DESTINATION obs-plugins/${_ARCH_SUFFIX}bit)
-      set(CMAKE_INSTALL_RPATH "$ORIGIN/" "${CMAKE_INSTALL_PREFIX}/${OBS_LIBRARY_DESTINATION}")
-      set(OBS_DATA_DESTINATION "data")
-    endif()
-
-    # Setup Linux-specific CPack values for "deb" package generation
-    if(OS_LINUX)
-      set(CPACK_PACKAGE_NAME "${CMAKE_PROJECT_NAME}")
-      set(CPACK_DEBIAN_PACKAGE_MAINTAINER "${LINUX_MAINTAINER_EMAIL}")
-      set(CPACK_PACKAGE_VERSION "${CMAKE_PROJECT_VERSION}")
-      set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-linux-x86_64")
-
-      set(CPACK_GENERATOR "DEB")
-      set(CPACK_DEBIAN_PACKAGE_DEPENDS
-          "obs-studio (>= 27.0.0), libqt5core5a (>= 5.9.0~beta), libqt5gui5 (>= 5.3.0), libqt5widgets5 (>= 5.7.0)"
-      )
-
-      set(CPACK_OUTPUT_FILE_PREFIX ${CMAKE_SOURCE_DIR}/release)
-
-      if(NOT LINUX_PORTABLE)
-        set(CPACK_SET_DESTDIR ON)
-      endif()
-      include(CPack)
-    endif()
-    # Windows specific settings
-  else()
-    set(OBS_LIBRARY_DESTINATION "bin/${_ARCH_SUFFIX}bit")
-    set(OBS_LIBRARY32_DESTINATION "bin/32bit")
-    set(OBS_LIBRARY64_DESTINATION "bin/64bit")
-    set(OBS_PLUGIN_DESTINATION "obs-plugins/${_ARCH_SUFFIX}bit")
-    set(OBS_PLUGIN32_DESTINATION "obs-plugins/32bit")
-    set(OBS_PLUGIN64_DESTINATION "obs-plugins/64bit")
-
-    set(OBS_DATA_DESTINATION "data")
-
-    if(MSVC)
-      # Set default Visual Studio CL.exe compile options.
-      #
-      # * Enable building with multiple processes,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170
-      # * Enable lint-like warnings,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170
-      # * Enable treating all warnings as errors,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170
-      # * RelWithDebInfo ONLY - Enable expanding of all functions not explicitly marked for no
-      #   inlining,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion?view=msvc-170
-      # * Enable UNICODE support,
-      #   https://docs.microsoft.com/en-us/windows/win32/learnwin32/working-with-strings#unicode-and-ansi-functions
-      # * DISABLE warnings about using POSIX function names,
-      #   https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?view=msvc-170#posix-function-names
-      # * DISABLE warnings about unsafe CRT library functions,
-      #   https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?view=msvc-170#unsafe-crt-library-functions
-      # * DISABLE warnings about nonstandard nameless structs/unions,
-      #   https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4201?view=msvc-170
-      target_compile_options(
-        ${CMAKE_PROJECT_NAME}
-        PRIVATE /MP
-                /W3
-                /WX
-                /wd4201
-                "$<$<CONFIG:RELWITHDEBINFO>:/Ob2>"
-                "$<$<CONFIG:DEBUG>:/DDEBUG=1;/D_DEBUG=1>"
-                /DUNICODE
-                /D_UNICODE
-                /D_CRT_SECURE_NO_WARNINGS
-                /D_CRT_NONSTDC_NO_WARNINGS)
-
-      # Set default Visual Studio linker options.
-      #
-      # * Enable removal of functions and data that are never used,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/opt-optimizations?view=msvc-170
-      # * Enable treating all warnings as errors,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/wx-treat-linker-warnings-as-errors?view=msvc-170
-      # * x64 ONLY - DISABLE creation of table of safe exception handlers,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers?view=msvc-170
-      # * Debug ONLY - DISABLE incremental linking,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/incremental-link-incrementally?view=msvc-170
-      # * RelWithDebInfo ONLY - Disable incremental linking, but enable COMDAT folding,
-      #   https://docs.microsoft.com/en-us/cpp/build/reference/opt-optimizations?view=msvc-170
-      target_link_options(
-        ${CMAKE_PROJECT_NAME}
-        PRIVATE
-        "LINKER:/OPT:REF"
-        "LINKER:/WX"
-        "$<$<NOT:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>>:LINKER\:/SAFESEH\:NO>"
-        "$<$<CONFIG:DEBUG>:LINKER\:/INCREMENTAL\:NO>"
-        "$<$<CONFIG:RELWITHDEBINFO>:LINKER\:/INCREMENTAL\:NO;/OPT\:ICF>")
-    endif()
-  endif()
-
-  # Helper function for plugin targets (Windows and Linux version)
-  function(setup_plugin_target target)
-    # Set prefix to empty string to avoid automatic naming of generated library, i.e.
-    # "lib<YOUR_PLUGIN_NAME>"
-    set_target_properties(${target} PROPERTIES PREFIX "")
-
-    # Set install directories
-    install(
-      TARGETS ${target}
-      RUNTIME DESTINATION "${OBS_PLUGIN_DESTINATION}" COMPONENT ${target}_Runtime
-      LIBRARY DESTINATION "${OBS_PLUGIN_DESTINATION}"
-              COMPONENT ${target}_Runtime
-              NAMELINK_COMPONENT ${target}_Development)
-
-    # Set rundir install directory
-    install(
-      FILES $<TARGET_FILE:${target}>
-      DESTINATION $<CONFIG>/${OBS_PLUGIN_DESTINATION}
-      COMPONENT obs_rundir
-      EXCLUDE_FROM_ALL)
-
-    if(OS_WINDOWS)
-      # Set install directory for optional PDB symbol files
-      install(
-        FILES $<TARGET_PDB_FILE:${target}>
-        CONFIGURATIONS "RelWithDebInfo" "Debug"
-        DESTINATION ${OBS_PLUGIN_DESTINATION}
-        COMPONENT ${target}_Runtime
-        OPTIONAL)
-
-      # Set rundir install directory for optional PDB symbol files
-      install(
-        FILES $<TARGET_PDB_FILE:${target}>
-        CONFIGURATIONS "RelWithDebInfo" "Debug"
-        DESTINATION $<CONFIG>/${OBS_PLUGIN_DESTINATION}
-        COMPONENT obs_rundir
-        OPTIONAL EXCLUDE_FROM_ALL)
-    endif()
-
-    # Add resources from data directory
-    setup_target_resources(${target} obs-plugins/${target})
-
-    # Set up plugin for testing in available OBS build on Windows
-    if(OS_WINDOWS AND DEFINED OBS_BUILD_DIR)
-      setup_target_for_testing(${target} obs-plugins/${target})
-    endif()
-
-    # Custom command to install generated plugin into rundir
-    add_custom_command(
-      TARGET ${target}
-      POST_BUILD
-      COMMAND
-        "${CMAKE_COMMAND}" -DCMAKE_INSTALL_PREFIX=${OBS_OUTPUT_DIR}
-        -DCMAKE_INSTALL_COMPONENT=obs_rundir -DCMAKE_INSTALL_CONFIG_NAME=$<CONFIG> -P
-        ${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake
-      COMMENT "Installing to plugin rundir"
-      VERBATIM)
-  endfunction()
-
-  # Helper function to add resources from "data" directory
-  function(setup_target_resources target destination)
-    if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/data)
-      install(
-        DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/
-        DESTINATION ${OBS_DATA_DESTINATION}/${destination}
-        USE_SOURCE_PERMISSIONS
-        COMPONENT obs_plugins)
-
-      install(
-        DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data
-        DESTINATION $<CONFIG>/${OBS_DATA_DESTINATION}/${destination}
-        USE_SOURCE_PERMISSIONS
-        COMPONENT obs_rundir
-        EXCLUDE_FROM_ALL)
-    endif()
-  endfunction()
-
-  if(OS_WINDOWS)
-    # Additional Windows-only helper function to copy plugin to existing OBS development directory:
-    #
-    # Copies plugin with associated PDB symbol files as well as contents of data directory into the
-    # OBS rundir as specified by "OBS_BUILD_DIR".
-    function(setup_target_for_testing target destination)
-      install(
-        FILES $<TARGET_FILE:${target}>
-        DESTINATION $<CONFIG>/${OBS_PLUGIN_DESTINATION}
-        COMPONENT obs_testing
-        EXCLUDE_FROM_ALL)
-
-      install(
-        FILES $<TARGET_PDB_FILE:${target}>
-        CONFIGURATIONS "RelWithDebInfo" "Debug"
-        DESTINATION $<CONFIG>/${OBS_PLUGIN_DESTINATION}
-        COMPONENT obs_testing
-        OPTIONAL EXCLUDE_FROM_ALL)
-
-      install(
-        DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/
-        DESTINATION $<CONFIG>/${OBS_DATA_DESTINATION}/${destination}
-        USE_SOURCE_PERMISSIONS
-        COMPONENT obs_testing
-        EXCLUDE_FROM_ALL)
-
-      add_custom_command(
-        TARGET ${target}
-        POST_BUILD
-        COMMAND
-          "${CMAKE_COMMAND}" -DCMAKE_INSTALL_PREFIX=${OBS_BUILD_DIR}/rundir
-          -DCMAKE_INSTALL_COMPONENT=obs_testing -DCMAKE_INSTALL_CONFIG_NAME=$<CONFIG> -P
-          ${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake
-        COMMENT "Installing to OBS test directory"
-        VERBATIM)
-    endfunction()
-  endif()
-endif()

+ 0 - 26
cmake/bundle/macos/Plugin-Info.plist.in

@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleName</key>
-	<string>${MACOSX_PLUGIN_BUNDLE_NAME}</string>
-	<key>CFBundleIdentifier</key>
-	<string>${MACOSX_PLUGIN_GUI_IDENTIFIER}</string>
-	<key>CFBundleVersion</key>
-	<string>${MACOSX_PLUGIN_BUNDLE_VERSION}</string>
-	<key>CFBundleShortVersionString</key>
-	<string>${MACOSX_PLUGIN_SHORT_VERSION_STRING}</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleExecutable</key>
-	<string>${MACOSX_PLUGIN_EXECUTABLE_NAME}</string>
-	<key>CFBundlePackageType</key>
-	<string>${MACOSX_PLUGIN_BUNDLE_TYPE}</string>
-	<key>CFBundleSupportedPlatforms</key>
-	<array>
-		<string>MacOSX</string>
-	</array>
-	<key>LSMinimumSystemVersion</key>
-	<string>10.13</string>
-</dict>
-</plist>

+ 0 - 17
cmake/bundle/macos/entitlements.plist

@@ -1,17 +0,0 @@
-<!--?xml version="1.0" encoding="UTF-8"?-->
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-    <dict>
-        <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
-        <true/>
-        <key>com.apple.security.device.camera</key>
-        <true/>
-        <key>com.apple.security.device.audio-input</key>
-        <true/>
-        <key>com.apple.security.cs.disable-library-validation</key>
-        <true/>
-        <!-- Allows @executable_path to load libaries from within the .app bundle. -->
-        <key>com.apple.security.cs.allow-dyld-environment-variables</key>
-        <true/>
-    </dict>
-</plist>

+ 0 - 920
cmake/bundle/macos/installer-macos.pkgproj.in

@@ -1,920 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>PACKAGES</key>
-	<array>
-		<dict>
-			<key>MUST-CLOSE-APPLICATION-ITEMS</key>
-			<array/>
-			<key>MUST-CLOSE-APPLICATIONS</key>
-			<false/>
-			<key>PACKAGE_FILES</key>
-			<dict>
-				<key>DEFAULT_INSTALL_LOCATION</key>
-				<string>/</string>
-				<key>HIERARCHY</key>
-				<dict>
-					<key>CHILDREN</key>
-					<array>
-						<dict>
-							<key>CHILDREN</key>
-							<array/>
-							<key>GID</key>
-							<integer>80</integer>
-							<key>PATH</key>
-							<string>Applications</string>
-							<key>PATH_TYPE</key>
-							<integer>0</integer>
-							<key>PERMISSIONS</key>
-							<integer>509</integer>
-							<key>TYPE</key>
-							<integer>1</integer>
-							<key>UID</key>
-							<integer>0</integer>
-						</dict>
-						<dict>
-							<key>CHILDREN</key>
-							<array>
-								<dict>
-									<key>CHILDREN</key>
-									<array>
-										<dict>
-											<key>CHILDREN</key>
-											<array>
-												<dict>
-													<key>CHILDREN</key>
-													<array>
-														<dict>
-															<key>BUNDLE_CAN_DOWNGRADE</key>
-															<false/>
-															<key>BUNDLE_POSTINSTALL_PATH</key>
-															<dict>
-																<key>PATH_TYPE</key>
-																<integer>0</integer>
-															</dict>
-															<key>BUNDLE_PREINSTALL_PATH</key>
-															<dict>
-																<key>PATH_TYPE</key>
-																<integer>0</integer>
-															</dict>
-															<key>CHILDREN</key>
-															<array/>
-															<key>GID</key>
-															<integer>80</integer>
-															<key>PATH</key>
-															<string>../@RELATIVE_INSTALL_PATH@/@CMAKE_PROJECT_NAME@.plugin</string>
-															<key>PATH_TYPE</key>
-															<integer>1</integer>
-															<key>PERMISSIONS</key>
-															<integer>493</integer>
-															<key>TYPE</key>
-															<integer>3</integer>
-															<key>UID</key>
-															<integer>0</integer>
-														</dict>
-													</array>
-													<key>GID</key>
-													<integer>80</integer>
-													<key>PATH</key>
-													<string>plugins</string>
-													<key>PATH_TYPE</key>
-													<integer>2</integer>
-													<key>PERMISSIONS</key>
-													<integer>509</integer>
-													<key>TYPE</key>
-													<integer>2</integer>
-													<key>UID</key>
-													<integer>0</integer>
-												</dict>
-											</array>
-											<key>GID</key>
-											<integer>80</integer>
-											<key>PATH</key>
-											<string>obs-studio</string>
-											<key>PATH_TYPE</key>
-											<integer>2</integer>
-											<key>PERMISSIONS</key>
-											<integer>509</integer>
-											<key>TYPE</key>
-											<integer>2</integer>
-											<key>UID</key>
-											<integer>0</integer>
-										</dict>
-									</array>
-									<key>GID</key>
-									<integer>80</integer>
-									<key>PATH</key>
-									<string>Application Support</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Automator</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Documentation</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Extensions</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Filesystems</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Frameworks</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Input Methods</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Internet Plug-Ins</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>LaunchAgents</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>LaunchDaemons</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>PreferencePanes</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Preferences</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>80</integer>
-									<key>PATH</key>
-									<string>Printers</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>PrivilegedHelperTools</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>1005</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>QuickLook</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>QuickTime</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Screen Savers</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Scripts</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Services</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Widgets</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>493</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-							</array>
-							<key>GID</key>
-							<integer>0</integer>
-							<key>PATH</key>
-							<string>Library</string>
-							<key>PATH_TYPE</key>
-							<integer>0</integer>
-							<key>PERMISSIONS</key>
-							<integer>493</integer>
-							<key>TYPE</key>
-							<integer>1</integer>
-							<key>UID</key>
-							<integer>0</integer>
-						</dict>
-						<dict>
-							<key>CHILDREN</key>
-							<array>
-								<dict>
-									<key>CHILDREN</key>
-									<array/>
-									<key>GID</key>
-									<integer>0</integer>
-									<key>PATH</key>
-									<string>Shared</string>
-									<key>PATH_TYPE</key>
-									<integer>0</integer>
-									<key>PERMISSIONS</key>
-									<integer>1023</integer>
-									<key>TYPE</key>
-									<integer>1</integer>
-									<key>UID</key>
-									<integer>0</integer>
-								</dict>
-							</array>
-							<key>GID</key>
-							<integer>80</integer>
-							<key>PATH</key>
-							<string>Users</string>
-							<key>PATH_TYPE</key>
-							<integer>0</integer>
-							<key>PERMISSIONS</key>
-							<integer>493</integer>
-							<key>TYPE</key>
-							<integer>1</integer>
-							<key>UID</key>
-							<integer>0</integer>
-						</dict>
-					</array>
-					<key>GID</key>
-					<integer>0</integer>
-					<key>PATH</key>
-					<string>/</string>
-					<key>PATH_TYPE</key>
-					<integer>0</integer>
-					<key>PERMISSIONS</key>
-					<integer>493</integer>
-					<key>TYPE</key>
-					<integer>1</integer>
-					<key>UID</key>
-					<integer>0</integer>
-				</dict>
-				<key>PAYLOAD_TYPE</key>
-				<integer>0</integer>
-				<key>PRESERVE_EXTENDED_ATTRIBUTES</key>
-				<false/>
-				<key>SHOW_INVISIBLE</key>
-				<false/>
-				<key>SPLIT_FORKS</key>
-				<true/>
-				<key>TREAT_MISSING_FILES_AS_WARNING</key>
-				<false/>
-				<key>VERSION</key>
-				<integer>5</integer>
-			</dict>
-			<key>PACKAGE_SCRIPTS</key>
-			<dict>
-				<key>POSTINSTALL_PATH</key>
-				<dict>
-					<key>PATH_TYPE</key>
-					<integer>0</integer>
-				</dict>
-				<key>PREINSTALL_PATH</key>
-				<dict>
-					<key>PATH_TYPE</key>
-					<integer>0</integer>
-				</dict>
-				<key>RESOURCES</key>
-				<array/>
-			</dict>
-			<key>PACKAGE_SETTINGS</key>
-			<dict>
-				<key>AUTHENTICATION</key>
-				<integer>0</integer>
-				<key>CONCLUSION_ACTION</key>
-				<integer>0</integer>
-				<key>FOLLOW_SYMBOLIC_LINKS</key>
-				<false/>
-				<key>IDENTIFIER</key>
-				<string>@MACOS_BUNDLEID@</string>
-				<key>LOCATION</key>
-				<integer>0</integer>
-				<key>NAME</key>
-				<string>@CMAKE_PROJECT_NAME@</string>
-				<key>OVERWRITE_PERMISSIONS</key>
-				<false/>
-				<key>PAYLOAD_SIZE</key>
-				<integer>-1</integer>
-				<key>REFERENCE_PATH</key>
-				<string></string>
-				<key>RELOCATABLE</key>
-				<false/>
-				<key>USE_HFS+_COMPRESSION</key>
-				<false/>
-				<key>VERSION</key>
-				<string>@CMAKE_PROJECT_VERSION@</string>
-			</dict>
-			<key>TYPE</key>
-			<integer>0</integer>
-			<key>UUID</key>
-			<string>0B7A74BC-65CF-4FF1-AC34-5C743E8A48F5</string>
-		</dict>
-	</array>
-	<key>PROJECT</key>
-	<dict>
-		<key>PROJECT_COMMENTS</key>
-		<dict>
-			<key>NOTES</key>
-			<data>
-			</data>
-		</dict>
-		<key>PROJECT_PRESENTATION</key>
-		<dict>
-			<key>BACKGROUND</key>
-			<dict>
-				<key>APPAREANCES</key>
-				<dict>
-					<key>DARK_AQUA</key>
-					<dict/>
-					<key>LIGHT_AQUA</key>
-					<dict/>
-				</dict>
-				<key>SHARED_SETTINGS_FOR_ALL_APPAREANCES</key>
-				<true/>
-			</dict>
-			<key>INSTALLATION TYPE</key>
-			<dict>
-				<key>HIERARCHIES</key>
-				<dict>
-					<key>INSTALLER</key>
-					<dict>
-						<key>LIST</key>
-						<array>
-							<dict>
-								<key>CHILDREN</key>
-								<array/>
-								<key>DESCRIPTION</key>
-								<array/>
-								<key>OPTIONS</key>
-								<dict>
-									<key>HIDDEN</key>
-									<false/>
-									<key>STATE</key>
-									<integer>1</integer>
-								</dict>
-								<key>PACKAGE_UUID</key>
-								<string>0B7A74BC-65CF-4FF1-AC34-5C743E8A48F5</string>
-								<key>TITLE</key>
-								<array/>
-								<key>TYPE</key>
-								<integer>0</integer>
-								<key>UUID</key>
-								<string>52B6084A-F58D-45C3-BE37-76AD45F16072</string>
-							</dict>
-						</array>
-						<key>REMOVED</key>
-						<dict/>
-					</dict>
-				</dict>
-				<key>MODE</key>
-				<integer>0</integer>
-			</dict>
-			<key>INSTALLATION_STEPS</key>
-			<array>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewIntroductionController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>Introduction</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewReadMeController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>ReadMe</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewLicenseController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>License</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewDestinationSelectController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>TargetSelect</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewInstallationTypeController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>PackageSelection</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewInstallationController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>Install</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-				<dict>
-					<key>ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS</key>
-					<string>ICPresentationViewSummaryController</string>
-					<key>INSTALLER_PLUGIN</key>
-					<string>Summary</string>
-					<key>LIST_TITLE_KEY</key>
-					<string>InstallerSectionTitle</string>
-				</dict>
-			</array>
-			<key>INTRODUCTION</key>
-			<dict>
-				<key>LOCALIZATIONS</key>
-				<array/>
-			</dict>
-			<key>LICENSE</key>
-			<dict>
-				<key>LOCALIZATIONS</key>
-				<array/>
-				<key>MODE</key>
-				<integer>0</integer>
-			</dict>
-			<key>README</key>
-			<dict>
-				<key>LOCALIZATIONS</key>
-				<array/>
-			</dict>
-			<key>SUMMARY</key>
-			<dict>
-				<key>LOCALIZATIONS</key>
-				<array/>
-			</dict>
-			<key>TITLE</key>
-			<dict>
-				<key>LOCALIZATIONS</key>
-				<array/>
-			</dict>
-		</dict>
-		<key>PROJECT_REQUIREMENTS</key>
-		<dict>
-			<key>LIST</key>
-			<array>
-				<dict>
-					<key>BEHAVIOR</key>
-					<integer>3</integer>
-					<key>DICTIONARY</key>
-					<dict>
-						<key>IC_REQUIREMENT_OS_DISK_TYPE</key>
-						<integer>1</integer>
-						<key>IC_REQUIREMENT_OS_DISTRIBUTION_TYPE</key>
-						<integer>0</integer>
-						<key>IC_REQUIREMENT_OS_MINIMUM_VERSION</key>
-						<integer>101300</integer>
-					</dict>
-					<key>IC_REQUIREMENT_CHECK_TYPE</key>
-					<integer>0</integer>
-					<key>IDENTIFIER</key>
-					<string>fr.whitebox.Packages.requirement.os</string>
-					<key>MESSAGE</key>
-					<array/>
-					<key>NAME</key>
-					<string>Operating System</string>
-					<key>STATE</key>
-					<true/>
-				</dict>
-			</array>
-			<key>RESOURCES</key>
-			<array/>
-			<key>ROOT_VOLUME_ONLY</key>
-			<true/>
-		</dict>
-		<key>PROJECT_SETTINGS</key>
-		<dict>
-			<key>ADVANCED_OPTIONS</key>
-			<dict>
-				<key>installer-script.domains:enable_currentUserHome</key>
-				<integer>1</integer>
-			</dict>
-			<key>BUILD_FORMAT</key>
-			<integer>0</integer>
-			<key>BUILD_PATH</key>
-			<dict>
-				<key>PATH</key>
-				<string>../@RELATIVE_BUILD_PATH@</string>
-				<key>PATH_TYPE</key>
-				<integer>1</integer>
-			</dict>
-			<key>EXCLUDED_FILES</key>
-			<array>
-				<dict>
-					<key>PATTERNS_ARRAY</key>
-					<array>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.DS_Store</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-					</array>
-					<key>PROTECTED</key>
-					<true/>
-					<key>PROXY_NAME</key>
-					<string>Remove .DS_Store files</string>
-					<key>PROXY_TOOLTIP</key>
-					<string>Remove ".DS_Store" files created by the Finder.</string>
-					<key>STATE</key>
-					<true/>
-				</dict>
-				<dict>
-					<key>PATTERNS_ARRAY</key>
-					<array>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.pbdevelopment</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-					</array>
-					<key>PROTECTED</key>
-					<true/>
-					<key>PROXY_NAME</key>
-					<string>Remove .pbdevelopment files</string>
-					<key>PROXY_TOOLTIP</key>
-					<string>Remove ".pbdevelopment" files created by ProjectBuilder or Xcode.</string>
-					<key>STATE</key>
-					<true/>
-				</dict>
-				<dict>
-					<key>PATTERNS_ARRAY</key>
-					<array>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>CVS</string>
-							<key>TYPE</key>
-							<integer>1</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.cvsignore</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.cvspass</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.svn</string>
-							<key>TYPE</key>
-							<integer>1</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.git</string>
-							<key>TYPE</key>
-							<integer>1</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>.gitignore</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-					</array>
-					<key>PROTECTED</key>
-					<true/>
-					<key>PROXY_NAME</key>
-					<string>Remove SCM metadata</string>
-					<key>PROXY_TOOLTIP</key>
-					<string>Remove helper files and folders used by the CVS, SVN or Git Source Code Management systems.</string>
-					<key>STATE</key>
-					<true/>
-				</dict>
-				<dict>
-					<key>PATTERNS_ARRAY</key>
-					<array>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>classes.nib</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>designable.db</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>info.nib</string>
-							<key>TYPE</key>
-							<integer>0</integer>
-						</dict>
-					</array>
-					<key>PROTECTED</key>
-					<true/>
-					<key>PROXY_NAME</key>
-					<string>Optimize nib files</string>
-					<key>PROXY_TOOLTIP</key>
-					<string>Remove "classes.nib", "info.nib" and "designable.nib" files within .nib bundles.</string>
-					<key>STATE</key>
-					<true/>
-				</dict>
-				<dict>
-					<key>PATTERNS_ARRAY</key>
-					<array>
-						<dict>
-							<key>REGULAR_EXPRESSION</key>
-							<false/>
-							<key>STRING</key>
-							<string>Resources Disabled</string>
-							<key>TYPE</key>
-							<integer>1</integer>
-						</dict>
-					</array>
-					<key>PROTECTED</key>
-					<true/>
-					<key>PROXY_NAME</key>
-					<string>Remove Resources Disabled folders</string>
-					<key>PROXY_TOOLTIP</key>
-					<string>Remove "Resources Disabled" folders.</string>
-					<key>STATE</key>
-					<true/>
-				</dict>
-				<dict>
-					<key>SEPARATOR</key>
-					<true/>
-				</dict>
-			</array>
-			<key>NAME</key>
-			<string>@CMAKE_PROJECT_NAME@</string>
-			<key>PAYLOAD_ONLY</key>
-			<false/>
-			<key>TREAT_MISSING_PRESENTATION_DOCUMENTS_AS_WARNING</key>
-			<false/>
-		</dict>
-	</dict>
-	<key>TYPE</key>
-	<integer>0</integer>
-	<key>VERSION</key>
-	<integer>2</integer>
-</dict>
-</plist>

+ 0 - 64
cmake/bundle/windows/installer-Windows.iss.in

@@ -1,64 +0,0 @@
-#define MyAppName "@CMAKE_PROJECT_NAME@"
-#define MyAppVersion "@CMAKE_PROJECT_VERSION@"
-#define MyAppPublisher "@PLUGIN_AUTHOR@"
-#define MyAppURL "@PLUGIN_WEBSITE@"
-
-[Setup]
-; NOTE: The value of AppId uniquely identifies this application.
-; Do not use the same AppId value in installers for other applications.
-; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
-AppId={{CD703FE5-1F2C-4837-BD3D-DD840D83C3E3}
-AppName={#MyAppName}
-AppVersion={#MyAppVersion}
-AppPublisher={#MyAppPublisher}
-AppPublisherURL={#MyAppURL}
-AppSupportURL={#MyAppURL}
-AppUpdatesURL={#MyAppURL}
-DefaultDirName={code:GetDirName}
-DefaultGroupName={#MyAppName}
-OutputBaseFilename={#MyAppName}-{#MyAppVersion}-Windows-Installer
-Compression=lzma
-SolidCompression=yes
-DirExistsWarning=no
-
-[Languages]
-Name: "english"; MessagesFile: "compiler:Default.isl"
-
-[Files]
-Source: "..\release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
-Source: "..\LICENSE"; Flags: dontcopy
-; NOTE: Don't use "Flags: ignoreversion" on any shared system files
-
-[Icons]
-Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
-Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
-
-[Code]
-procedure InitializeWizard();
-var
-  GPLText: AnsiString;
-  Page: TOutputMsgMemoWizardPage;
-begin
-  ExtractTemporaryFile('LICENSE');
-  LoadStringFromFile(ExpandConstant('{tmp}\LICENSE'), GPLText);
-  Page := CreateOutputMsgMemoPage(wpWelcome,
-    'License Information', 'Please review the license terms before installing {#MyAppName}',
-    'Press Page Down to see the rest of the agreement. Once you are aware of your rights, click Next to continue.',
-    String(GPLText)
-  );
-end;
-
-// credit where it's due :
-// following function come from https://github.com/Xaymar/obs-studio_amf-encoder-plugin/blob/master/%23Resources/Installer.in.iss#L45
-function GetDirName(Value: string): string;
-var
-  InstallPath: string;
-begin
-  // initialize default path, which will be returned when the following registry
-  // key queries fail due to missing keys or for some different reason
-  Result := '{autopf}\obs-studio';
-  // query the first registry value; if this succeeds, return the obtained value
-  if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then
-    Result := InstallPath
-end;
-

+ 0 - 32
cmake/bundle/windows/resource.rc.in

@@ -1,32 +0,0 @@
-1 VERSIONINFO
- FILEVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0
- PRODUCTVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0
- FILEFLAGSMASK 0x0L
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x0L
- FILETYPE 0x2L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904b0"
-        BEGIN
-            VALUE "CompanyName", "${PLUGIN_AUTHOR}"
-            VALUE "FileDescription", "${PROJECT_NAME}"
-            VALUE "FileVersion", "${PROJECT_VERSION}"
-            VALUE "InternalName", "${PROJECT_NAME}"
-            VALUE "LegalCopyright", "(C) ${PLUGIN_AUTHOR}"
-            VALUE "OriginalFilename", "${PROJECT_NAME}"
-            VALUE "ProductName", "${PROJECT_NAME}"
-            VALUE "ProductVersion", "${PROJECT_VERSION}"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END