Recommended Project Settings (#6591)

* Recommended Project Settings

* adding script inputs and outputs

* fix path to evconfig-private.h

* disabling sandboxing for retrieving the git commit hash

* Also Enable Parallelization in Command Line Builds Using '-target'.

* remove superfluous "per-target" settings

* fix settings.h explicit file type.

* fix path to miniupnp

* ensuring objectVersion = 51 in code_style.
This commit is contained in:
Cœur
2024-05-26 00:42:15 +02:00
committed by GitHub
parent 17c6ec755c
commit bf0119dd3f
2 changed files with 34 additions and 85 deletions

View File

@@ -65,6 +65,16 @@ if ! find_cfiles -exec "${clang_format_exe}" $clang_format_args '{}' '+'; then
exitcode=1
fi
# format Xcodeproj
if ! grep -q 'objectVersion = 51' Transmission.xcodeproj/project.pbxproj; then
echo 'project.pbxproj needs objectVersion = 51 for compatibility with Xcode 11'
exitcode=1
fi
if ! grep -q 'BuildIndependentTargetsInParallel = YES' Transmission.xcodeproj/project.pbxproj; then
echo 'please keep BuildIndependentTargetsInParallel in project.pbxproj'
exitcode=1
fi
# format JS
# but only if js has changed
git diff --cached --quiet -- "web/**" && exit $exitcode