Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Update CMake files for build system 3.0 update #434

Merged
merged 2 commits into from Mar 26, 2023

Conversation

PatTheMav
Copy link
Member

@PatTheMav PatTheMav commented Feb 10, 2023

Description

This PR updates the CMake build files to be compatible with the build system 3.0 update on the main repository.

Motivation and Context

  • The current build script is retained as the "legacy" script (which will still be used to generate build projects on Linux and macOS)
  • The new build script is used for macOS builds by default at first

More information shall be available in the pull request on the main repository.

Note: This PR needs to be merged first, then the associated commit hash updated for the obs-amd-encoder submodule at obs-studio.

How Has This Been Tested?

  • New build scripts were tested as part of the overall update on macOS 13, Ubuntu 22.10, and Windows 11.

Types of changes

  • Code cleanup (non-breaking change which makes code smaller or more readable)

Checklist:

  • I have read the Contributing Guidelines.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • My code is not on master or a release/* branch.
  • The code has been tested.
  • I have included updates to all appropriate documentation.

.cmake-format.json Outdated Show resolved Hide resolved
Copy link
Member

@RytoEX RytoEX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Pat or I will handle the merge order of this and the related PRs.

This cmake-format configuration will supersede the current configuration
in an upcoming update on obs-studio and will be in sync then.
This also simplifies the CMake script tremendously as it assumes the
project being built as a core obs-studio plugin.

Minimum required CMake version is 3.24, specifying `OBS_CMAKE_VERSION`
as a cache variable with a version lower than 3.0.0 switches back to the
original CMake script.

NOTE: This requires CMake build framework 3.0 on obs-studio.
@RytoEX RytoEX merged commit 5d4744e into obsproject:master Mar 26, 2023
@PatTheMav PatTheMav deleted the obs-cmake-update branch March 28, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants