tytan652 ef9ec6fcc3 build-aux,CI: Replace Flatpak KDE SDK with Freedesktop SDK 10 месяцев назад
..
.functions 1cfa06a2aa CI: Add zsh-based build framework files for macOS 2 лет назад
steam 4c5d3e77c9 build-aux: Add shader cache cleanup to steam uninstall script 2 лет назад
.run-format.zsh fbf08cc944 build-aux: Add test directory to clang-format file list 4 месяцев назад
README.md 081b684959 build-aux: Replace Flatpak modules with pre-compiled dependencies 6 дней назад
com.obsproject.Studio.json ef9ec6fcc3 build-aux,CI: Replace Flatpak KDE SDK with Freedesktop SDK 6 дней назад
format-manifest.py 081b684959 build-aux: Replace Flatpak modules with pre-compiled dependencies 6 дней назад
run-clang-format 1cfa06a2aa CI: Add zsh-based build framework files for macOS 2 лет назад
run-gersemi 19d3e30a3a CI: Replace cmake-format with gersemi for CMake file format checks 1 год назад
run-swift-format 1cfa06a2aa CI: Add zsh-based build framework files for macOS 2 лет назад

README.md

build-aux folder

This folder contains:

  • Various formatting scripts:
    • run-clang-format which formats C/C++/ObjC/ObjC++ files
    • run-gersemi which formats CMake files
    • run-swift-format which formats Swift files
    • format-manifest.py which formats Flatpak manifest JSON files
  • The Flatpak manifest used to build OBS Studio
  • Files used for Steam packaging

Formatting scripts

run-clang-format

This script allows to check the formatting and/or format of C/C++/ObjC/ObjC++ files and requires ZSH and a specific version of clang-format.

If the script does not find the latter it will return the required version, we provide clang-format Homebrew formulas in our homebrew-tools repo.

Example of use:

./build-aux/run-clang-format

run-gersemi

This script allows to check the formatting and/or format of the CMake files and requires ZSH and gersemi Python package.

Example of use:

./build-aux/run-gersemi

run-swift-format

This script allows to check the formatting and/or format of the Swift files and requires ZSH and swift-format.

Example of use:

./build-aux/run-swift-format

format-manifest.py

This script allows to check the formatting and/or format of the Flatpak manifest and its modules.

Example of use:

python3 ./build-aux/format-manifest.py com.obsproject.Studio.json