From 707fe1a76cfd621bef0e760b9674278835a540a7 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Fri, 30 May 2025 17:49:12 -0400 Subject: [PATCH 1/8] Update build-project.yaml --- .github/workflows/build-project.yaml | 206 +-------------------------- 1 file changed, 3 insertions(+), 203 deletions(-) diff --git a/.github/workflows/build-project.yaml b/.github/workflows/build-project.yaml index f4328ab84c8801..aa22ea4bc71085 100644 --- a/.github/workflows/build-project.yaml +++ b/.github/workflows/build-project.yaml @@ -59,7 +59,7 @@ jobs: macos-build: name: macOS ๐Ÿ - runs-on: macos-15 + runs-on: macos-14 needs: check-event strategy: fail-fast: false @@ -80,8 +80,8 @@ jobs: : Set Up Environment ๐Ÿ”ง if (( ${+RUNNER_DEBUG} )) setopt XTRACE - print '::group::Enable Xcode 16.1' - sudo xcode-select --switch /Applications/Xcode_16.1.0.app/Contents/Developer + print '::group::Enable Xcode 15.4' + sudo xcode-select --switch /Applications/Xcode_15.4.app/Contents/Developer print '::endgroup::' print '::group::Clean Homebrew Environment' @@ -167,203 +167,3 @@ jobs: with: path: ${{ github.workspace }}/.ccache key: ${{ runner.os }}-ccache-${{ matrix.target }}-${{ needs.check-event.outputs.config }} - - ubuntu-build: - name: Ubuntu ๐Ÿง - strategy: - matrix: - os: [ubuntu-24.04] - runs-on: ${{ matrix.os }} - needs: check-event - defaults: - run: - shell: bash - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - - uses: actions/cache/restore@v4 - id: ccache-cache - with: - path: ${{ github.workspace }}/.ccache - key: ${{ runner.os }}-${{ matrix.os }}-ccache-x86_64-${{ needs.check-event.outputs.config }} - restore-keys: | - ${{ runner.os }}-${{ matrix.os }}-ccache-x86_64- - - - name: Build OBS Studio ๐Ÿงฑ - uses: ./.github/actions/build-obs - env: - TWITCH_CLIENTID: ${{ secrets.TWITCH_CLIENT_ID }} - TWITCH_HASH: ${{ secrets.TWITCH_HASH }} - RESTREAM_CLIENTID: ${{ secrets.RESTREAM_CLIENTID }} - RESTREAM_HASH: ${{ secrets.RESTREAM_HASH }} - YOUTUBE_CLIENTID: ${{ secrets.YOUTUBE_CLIENTID }} - YOUTUBE_CLIENTID_HASH: ${{ secrets.YOUTUBE_CLIENTID_HASH }} - YOUTUBE_SECRET: ${{ secrets.YOUTUBE_SECRET }} - YOUTUBE_SECRET_HASH: ${{ secrets.YOUTUBE_SECRET_HASH }} - with: - target: x86_64 - config: ${{ needs.check-event.outputs.config }} - - - name: Package OBS Studio ๐Ÿ“€ - uses: ./.github/actions/package-obs - with: - target: x86_64 - config: ${{ needs.check-event.outputs.config }} - package: ${{ fromJSON(needs.check-event.outputs.package) }} - - - name: Upload Source Tarball ๐Ÿ—œ๏ธ - uses: actions/upload-artifact@v4 - with: - name: obs-studio-${{ matrix.os }}-sources-${{ needs.check-event.outputs.commitHash }} - path: ${{ github.workspace }}/build_ubuntu/obs-studio-*-sources.* - - - name: Upload Artifacts ๐Ÿ“ก - uses: actions/upload-artifact@v4 - with: - name: obs-studio-${{ matrix.os }}-x86_64-${{ needs.check-event.outputs.commitHash }} - path: ${{ github.workspace }}/build_ubuntu/obs-studio-*-x86_64-ubuntu-gnu.* - - - name: Upload Debug Symbol Artifacts ๐Ÿชฒ - uses: actions/upload-artifact@v4 - if: ${{ fromJSON(needs.check-event.outputs.package) }} - with: - name: obs-studio-${{ matrix.os }}-x86_64-${{ needs.check-event.outputs.commitHash }}-dbgsym - path: ${{ github.workspace }}/build_ubuntu/obs-studio-*-x86_64-ubuntu-gnu-dbgsym.ddeb - - - uses: actions/cache/save@v4 - if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true' - with: - path: ${{ github.workspace }}/.ccache - key: ${{ runner.os }}-${{ matrix.os }}-ccache-x86_64-${{ needs.check-event.outputs.config }} - - flatpak-build: - name: Flatpak ๐Ÿ“ฆ - runs-on: ubuntu-24.04 - needs: check-event - defaults: - run: - shell: bash - env: - FLATPAK_BUILD_SHARE_PATH: flatpak_app/files/share - container: - image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8 - options: --privileged - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - set-safe-directory: ${{ env.GITHUB_WORKSPACE }} - - - name: Set Up Environment ๐Ÿ”ง - id: setup - env: - GH_TOKEN: ${{ github.token }} - run: | - : Set Up Environment ๐Ÿ”ง - if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi - - git config --global --add safe.directory "${GITHUB_WORKSPACE}" - - cache_key='flatpak-builder-${{ hashFiles('build-aux/**/*.json') }}' - cache_ref='master' - read -r id key size unit created accessed <<< \ - "$(gh cache list --ref "refs/heads/${cache_ref}" --key "${cache_key}-x86_64" | head -1)" - - if [[ "${key}" ]]; then - echo "cacheHit=true" >> $GITHUB_OUTPUT - else - echo "cacheHit=false" >> $GITHUB_OUTPUT - fi - - echo "cacheKey=${cache_key}" >> $GITHUB_OUTPUT - - - name: Validate Flatpak manifest - uses: ./.github/actions/flatpak-builder-lint - with: - artifact: manifest - path: build-aux/com.obsproject.Studio.json - - - name: Build Flatpak Manifest ๐Ÿงพ - uses: flatpak/flatpak-github-actions/flatpak-builder@10a3c29f0162516f0f68006be14c92f34bd4fa6c - with: - build-bundle: ${{ fromJSON(needs.check-event.outputs.package) }} - bundle: obs-studio-flatpak-${{ needs.check-event.outputs.commitHash }}.flatpak - manifest-path: ${{ github.workspace }}/build-aux/com.obsproject.Studio.json - cache: ${{ fromJSON(steps.setup.outputs.cacheHit) || (github.event_name == 'push' && github.ref_name == 'master')}} - restore-cache: ${{ fromJSON(steps.setup.outputs.cacheHit) }} - cache-key: ${{ steps.setup.outputs.cacheKey }} - mirror-screenshots-url: https://dl.flathub.org/media - - - name: Validate AppStream - uses: ./.github/actions/flatpak-builder-lint - with: - artifact: appstream - path: ${{ env.FLATPAK_BUILD_SHARE_PATH }}/metainfo/com.obsproject.Studio.metainfo.xml - - - name: Verify Icon and Metadata in app-info - working-directory: ${{ env.FLATPAK_BUILD_SHARE_PATH }} - run: | - : Verify Icon and Metadata in app-info - test -f app-info/icons/flatpak/128x128/com.obsproject.Studio.png || { echo "::error::Missing 128x128 icon in app-info"; exit 1; } - test -f app-info/xmls/com.obsproject.Studio.xml.gz || { echo "::error::Missing com.obsproject.Studio.xml.gz in app-info"; exit 1; } - - - name: Validate build directory - uses: ./.github/actions/flatpak-builder-lint - with: - artifact: builddir - path: flatpak_app - - - name: Validate repository - uses: ./.github/actions/flatpak-builder-lint - with: - artifact: repo - path: repo - - windows-build: - name: Windows ๐ŸชŸ - strategy: - matrix: - architecture: [x64, arm64] - runs-on: windows-2022 - needs: check-event - defaults: - run: - shell: pwsh - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 - - - name: Build OBS Studio ๐Ÿงฑ - uses: ./.github/actions/build-obs - env: - TWITCH_CLIENTID: ${{ secrets.TWITCH_CLIENT_ID }} - TWITCH_HASH: ${{ secrets.TWITCH_HASH }} - RESTREAM_CLIENTID: ${{ secrets.RESTREAM_CLIENTID }} - RESTREAM_HASH: ${{ secrets.RESTREAM_HASH }} - YOUTUBE_CLIENTID: ${{ secrets.YOUTUBE_CLIENTID }} - YOUTUBE_CLIENTID_HASH: ${{ secrets.YOUTUBE_CLIENTID_HASH }} - YOUTUBE_SECRET: ${{ secrets.YOUTUBE_SECRET }} - YOUTUBE_SECRET_HASH: ${{ secrets.YOUTUBE_SECRET_HASH }} - GPU_PRIORITY_VAL: ${{ secrets.GPU_PRIORITY_VAL }} - with: - target: ${{ matrix.architecture }} - config: ${{ needs.check-event.outputs.config }} - - - name: Package OBS Studio ๐Ÿ“€ - uses: ./.github/actions/package-obs - with: - target: ${{ matrix.architecture }} - config: ${{ needs.check-event.outputs.config }} - package: ${{ fromJSON(needs.check-event.outputs.package) }} - - - name: Upload Artifacts ๐Ÿ“ก - uses: actions/upload-artifact@v4 - with: - name: obs-studio-windows-${{ matrix.architecture }}-${{ needs.check-event.outputs.commitHash }} - path: ${{ github.workspace }}/build_${{ matrix.architecture }}/obs-studio-*-windows-${{ matrix.architecture }}.zip From bd68e78c13986768a70503a30506588df1277c76 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Fri, 30 May 2025 17:52:49 -0400 Subject: [PATCH 2/8] Update compilerconfig.cmake --- cmake/macos/compilerconfig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/macos/compilerconfig.cmake b/cmake/macos/compilerconfig.cmake index 5c6ebdb8bb6318..3d58be54a5cf5b 100644 --- a/cmake/macos/compilerconfig.cmake +++ b/cmake/macos/compilerconfig.cmake @@ -22,8 +22,8 @@ set_property(CACHE CMAKE_OSX_ARCHITECTURES PROPERTY STRINGS arm64 x86_64) # Ensure recent enough Xcode and platform SDK function(check_sdk_requirements) - set(obs_macos_minimum_sdk 15.0) # Keep in sync with Xcode - set(obs_macos_minimum_xcode 16.0) # Keep in sync with SDK + set(obs_macos_minimum_sdk 14.2) # Keep in sync with Xcode + set(obs_macos_minimum_xcode 15.1) # Keep in sync with SDK execute_process( COMMAND xcrun --sdk macosx --show-sdk-platform-version OUTPUT_VARIABLE obs_macos_current_sdk From 5318202d74a030641f07088eb768a14bd613789c Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Fri, 30 May 2025 17:59:16 -0400 Subject: [PATCH 3/8] Update encoder.c --- plugins/mac-videotoolbox/encoder.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/mac-videotoolbox/encoder.c b/plugins/mac-videotoolbox/encoder.c index 5d9d9e4ca4ca60..d80ef42a5eb393 100644 --- a/plugins/mac-videotoolbox/encoder.c +++ b/plugins/mac-videotoolbox/encoder.c @@ -576,19 +576,19 @@ static OSStatus create_encoder(struct vt_encoder *enc) return code; } - if (__builtin_available(macOS 15.0, *)) { - int spatial_aq = enc->spatial_aq ? kVTQPModulationLevel_Default : kVTQPModulationLevel_Disable; - CFNumberRef spatialAQ = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &spatial_aq); - - code = VTSessionSetProperty(s, kVTCompressionPropertyKey_SpatialAdaptiveQPLevel, spatialAQ); - - if (code != noErr) { - log_osstatus(LOG_WARNING, enc, - "setting kVTCompressionPropertyKey_SpatialAdaptiveQPLevel failed", code); - } - - CFRelease(spatialAQ); - } +// if (__builtin_available(macOS 15.0, *)) { +// int spatial_aq = enc->spatial_aq ? kVTQPModulationLevel_Default : kVTQPModulationLevel_Disable; +// CFNumberRef spatialAQ = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &spatial_aq); +// +// code = VTSessionSetProperty(s, kVTCompressionPropertyKey_SpatialAdaptiveQPLevel, spatialAQ); +// +// if (code != noErr) { +// log_osstatus(LOG_WARNING, enc, +// "setting kVTCompressionPropertyKey_SpatialAdaptiveQPLevel failed", code); +// } +// +// CFRelease(spatialAQ); +// } } // This can fail depending on hardware configuration From 05c9782668f0d02db27ad708a7eb7ebcae245a96 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Sun, 1 Jun 2025 12:25:26 -0400 Subject: [PATCH 4/8] 106 --- cmake/macos/helpers.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/macos/helpers.cmake b/cmake/macos/helpers.cmake index 2f203cd580fd6e..5da549226872a1 100644 --- a/cmake/macos/helpers.cmake +++ b/cmake/macos/helpers.cmake @@ -86,12 +86,17 @@ function(set_target_properties_obs target) endif() get_property(obs_executables GLOBAL PROPERTY _OBS_EXECUTABLES) + + message(STATUS "Add dependencies (${target}) (${obs_executables})") add_dependencies(${target} ${obs_executables}) + foreach(executable IN LISTS obs_executables) + message(STATUS "Set target xcode properties (${executable}) ($(LOCAL_APPS_DIR)/$/Contents/MacOS)") set_target_xcode_properties(${executable} PROPERTIES INSTALL_PATH "$(LOCAL_APPS_DIR)/$/Contents/MacOS" ) + message(STATUS "Add custom command (${target}) (${CMAKE_COMMAND}" -E copy_if_different "$) ($/MacOS/)") add_custom_command( TARGET ${target} POST_BUILD From 8891dc083871585f5485cb796a8ca4ef2ffd0483 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Sun, 1 Jun 2025 12:37:51 -0400 Subject: [PATCH 5/8] 123 --- cmake/macos/helpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macos/helpers.cmake b/cmake/macos/helpers.cmake index 5da549226872a1..bc4af1fbe17d1c 100644 --- a/cmake/macos/helpers.cmake +++ b/cmake/macos/helpers.cmake @@ -26,7 +26,7 @@ function(set_target_properties_obs target) set(multiValueArgs PROPERTIES) cmake_parse_arguments(PARSE_ARGV 0 _STPO "${options}" "${oneValueArgs}" "${multiValueArgs}") - message(DEBUG "Setting additional properties for target ${target}...") + message(STATUS "Setting additional properties for target ${target}...") while(_STPO_PROPERTIES) list(POP_FRONT _STPO_PROPERTIES key value) From b4ea93139f9761fb94cd8fe3996eb2d3d61dae93 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Sun, 1 Jun 2025 13:42:15 -0400 Subject: [PATCH 6/8] 123 --- cmake/macos/helpers.cmake | 42 +++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/cmake/macos/helpers.cmake b/cmake/macos/helpers.cmake index bc4af1fbe17d1c..f8375d181e8c62 100644 --- a/cmake/macos/helpers.cmake +++ b/cmake/macos/helpers.cmake @@ -86,26 +86,30 @@ function(set_target_properties_obs target) endif() get_property(obs_executables GLOBAL PROPERTY _OBS_EXECUTABLES) + + if ("${obs_executables}") + message(STATUS "Add dependencies (${target}) (${obs_executables})") + add_dependencies(${target} ${obs_executables}) + + foreach(executable IN LISTS obs_executables) + message(STATUS "Set target xcode properties (${executable}) ($(LOCAL_APPS_DIR)/$/Contents/MacOS)") + set_target_xcode_properties(${executable} PROPERTIES INSTALL_PATH + "$(LOCAL_APPS_DIR)/$/Contents/MacOS" + ) - message(STATUS "Add dependencies (${target}) (${obs_executables})") - add_dependencies(${target} ${obs_executables}) - - foreach(executable IN LISTS obs_executables) - message(STATUS "Set target xcode properties (${executable}) ($(LOCAL_APPS_DIR)/$/Contents/MacOS)") - set_target_xcode_properties(${executable} PROPERTIES INSTALL_PATH - "$(LOCAL_APPS_DIR)/$/Contents/MacOS" - ) - - message(STATUS "Add custom command (${target}) (${CMAKE_COMMAND}" -E copy_if_different "$) ($/MacOS/)") - add_custom_command( - TARGET ${target} - POST_BUILD - COMMAND - "${CMAKE_COMMAND}" -E copy_if_different "$" - "$/MacOS/" - COMMENT "Copy ${executable} to application bundle" - ) - endforeach() + message(STATUS "Add custom command (${target}) (${CMAKE_COMMAND}" -E copy_if_different "$) ($/MacOS/)") + add_custom_command( + TARGET ${target} + POST_BUILD + COMMAND + "${CMAKE_COMMAND}" -E copy_if_different "$" + "$/MacOS/" + COMMENT "Copy ${executable} to application bundle" + ) + endforeach() + else() + message(STATUS "No dependencies (${target})") + endif() if(VIRTUALCAM_DEVICE_UUID AND VIRTUALCAM_SOURCE_UUID AND VIRTUALCAM_SINK_UUID) set(has_virtualcam_uuids TRUE) From 5149d2272c8007eccf116eddf71563f45b0a05f0 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Wed, 4 Jun 2025 17:15:30 -0400 Subject: [PATCH 7/8] Try windows build --- .github/workflows/build-project.yaml | 116 +++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/.github/workflows/build-project.yaml b/.github/workflows/build-project.yaml index aa22ea4bc71085..68e2addf344ba8 100644 --- a/.github/workflows/build-project.yaml +++ b/.github/workflows/build-project.yaml @@ -167,3 +167,119 @@ jobs: with: path: ${{ github.workspace }}/.ccache key: ${{ runner.os }}-ccache-${{ matrix.target }}-${{ needs.check-event.outputs.config }} + + + ubuntu-build: + name: Ubuntu ๐Ÿง + strategy: + matrix: + os: [ubuntu-24.04] + runs-on: ${{ matrix.os }} + needs: check-event + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - uses: actions/cache/restore@v4 + id: ccache-cache + with: + path: ${{ github.workspace }}/.ccache + key: ${{ runner.os }}-${{ matrix.os }}-ccache-x86_64-${{ needs.check-event.outputs.config }} + restore-keys: | + ${{ runner.os }}-${{ matrix.os }}-ccache-x86_64- + - name: Build OBS Studio ๐Ÿงฑ + uses: ./.github/actions/build-obs + env: + TWITCH_CLIENTID: ${{ secrets.TWITCH_CLIENT_ID }} + TWITCH_HASH: ${{ secrets.TWITCH_HASH }} + RESTREAM_CLIENTID: ${{ secrets.RESTREAM_CLIENTID }} + RESTREAM_HASH: ${{ secrets.RESTREAM_HASH }} + YOUTUBE_CLIENTID: ${{ secrets.YOUTUBE_CLIENTID }} + YOUTUBE_CLIENTID_HASH: ${{ secrets.YOUTUBE_CLIENTID_HASH }} + YOUTUBE_SECRET: ${{ secrets.YOUTUBE_SECRET }} + YOUTUBE_SECRET_HASH: ${{ secrets.YOUTUBE_SECRET_HASH }} + with: + target: x86_64 + config: ${{ needs.check-event.outputs.config }} + + - name: Package OBS Studio ๐Ÿ“€ + uses: ./.github/actions/package-obs + with: + target: x86_64 + config: ${{ needs.check-event.outputs.config }} + package: ${{ fromJSON(needs.check-event.outputs.package) }} + + - name: Upload Source Tarball ๐Ÿ—œ๏ธ + uses: actions/upload-artifact@v4 + with: + name: obs-studio-${{ matrix.os }}-sources-${{ needs.check-event.outputs.commitHash }} + path: ${{ github.workspace }}/build_ubuntu/obs-studio-*-sources.* + + - name: Upload Artifacts ๐Ÿ“ก + uses: actions/upload-artifact@v4 + with: + name: obs-studio-${{ matrix.os }}-x86_64-${{ needs.check-event.outputs.commitHash }} + path: ${{ github.workspace }}/build_ubuntu/obs-studio-*-x86_64-ubuntu-gnu.* + + - name: Upload Debug Symbol Artifacts ๐Ÿชฒ + uses: actions/upload-artifact@v4 + if: ${{ fromJSON(needs.check-event.outputs.package) }} + with: + name: obs-studio-${{ matrix.os }}-x86_64-${{ needs.check-event.outputs.commitHash }}-dbgsym + path: ${{ github.workspace }}/build_ubuntu/obs-studio-*-x86_64-ubuntu-gnu-dbgsym.ddeb + + - uses: actions/cache/save@v4 + if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true' + with: + path: ${{ github.workspace }}/.ccache + key: ${{ runner.os }}-${{ matrix.os }}-ccache-x86_64-${{ needs.check-event.outputs.config }} + + windows-build: + name: Windows ๐ŸชŸ + strategy: + matrix: + architecture: [x64, arm64] + runs-on: windows-2022 + needs: check-event + defaults: + run: + shell: pwsh + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - name: Build OBS Studio ๐Ÿงฑ + uses: ./.github/actions/build-obs + env: + TWITCH_CLIENTID: ${{ secrets.TWITCH_CLIENT_ID }} + TWITCH_HASH: ${{ secrets.TWITCH_HASH }} + RESTREAM_CLIENTID: ${{ secrets.RESTREAM_CLIENTID }} + RESTREAM_HASH: ${{ secrets.RESTREAM_HASH }} + YOUTUBE_CLIENTID: ${{ secrets.YOUTUBE_CLIENTID }} + YOUTUBE_CLIENTID_HASH: ${{ secrets.YOUTUBE_CLIENTID_HASH }} + YOUTUBE_SECRET: ${{ secrets.YOUTUBE_SECRET }} + YOUTUBE_SECRET_HASH: ${{ secrets.YOUTUBE_SECRET_HASH }} + GPU_PRIORITY_VAL: ${{ secrets.GPU_PRIORITY_VAL }} + with: + target: ${{ matrix.architecture }} + config: ${{ needs.check-event.outputs.config }} + + - name: Package OBS Studio ๐Ÿ“€ + uses: ./.github/actions/package-obs + with: + target: ${{ matrix.architecture }} + config: ${{ needs.check-event.outputs.config }} + package: ${{ fromJSON(needs.check-event.outputs.package) }} + + - name: Upload Artifacts ๐Ÿ“ก + uses: actions/upload-artifact@v4 + with: + name: obs-studio-windows-${{ matrix.architecture }}-${{ needs.check-event.outputs.commitHash }} + path: ${{ github.workspace }}/build_${{ matrix.architecture }}/obs-studio-*-windows-${{ matrix.architecture }}.zip From 8f375b3338c3dea7d15f00a1a52342ca408ffe08 Mon Sep 17 00:00:00 2001 From: Oleksandr Kosenko Date: Wed, 4 Jun 2025 20:02:33 -0400 Subject: [PATCH 8/8] 123 --- cmake/windows/helpers.cmake | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cmake/windows/helpers.cmake b/cmake/windows/helpers.cmake index b4d0bf4ddd5658..3fe76f8d4509c5 100644 --- a/cmake/windows/helpers.cmake +++ b/cmake/windows/helpers.cmake @@ -11,7 +11,7 @@ function(set_target_properties_obs target) set(multiValueArgs PROPERTIES) cmake_parse_arguments(PARSE_ARGV 0 _STPO "${options}" "${oneValueArgs}" "${multiValueArgs}") - message(DEBUG "Setting additional properties for target ${target}...") + message(STATUS "Setting additional properties for target ${target}...") while(_STPO_PROPERTIES) list(POP_FRONT _STPO_PROPERTIES key value) @@ -20,6 +20,8 @@ function(set_target_properties_obs target) get_target_property(target_type ${target} TYPE) + message(STATUS "Windows target_type: ${target_type}") + if(target_type STREQUAL EXECUTABLE) if(target STREQUAL obs-browser-helper) set(OBS_EXECUTABLE_DESTINATION "${OBS_PLUGIN_DESTINATION}") @@ -107,7 +109,7 @@ function(set_target_properties_obs target) COMPONENT Runtime ) elseif(${target} STREQUAL obs-browser) - message(DEBUG "Add Chromium Embedded Framework to project for obs-browser plugin...") + message(STATUS "Add Chromium Embedded Framework to project for obs-browser plugin...") if(TARGET CEF::Library) get_target_property(imported_location CEF::Library IMPORTED_LOCATION_RELEASE) @@ -300,7 +302,7 @@ endfunction() # Helper function to add resources into bundle function(target_install_resources target) - message(DEBUG "Installing resources for target ${target}...") + message(STATUS "Installing resources for target ${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) @@ -358,7 +360,7 @@ function(target_add_resource target resource) set(target_destination "${OBS_DATA_DESTINATION}/${target}") endif() - message(DEBUG "Add resource '${resource}' to target ${target} at destination '${target_destination}'...") + message(STATUS "Add resource '${resource}' to target ${target} at destination '${target_destination}'...") install(FILES "${resource}" DESTINATION "${target_destination}" COMPONENT Runtime) @@ -377,7 +379,7 @@ endfunction() # _bundle_dependencies: Resolve third party dependencies and add them to Windows binary directory function(_bundle_dependencies target) - message(DEBUG "Discover dependencies of target ${target}...") + message(STATUS "Discover dependencies of target ${target}...") set(found_dependencies) find_dependencies(TARGET ${target} FOUND_VAR found_dependencies)