summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.ci/scripts/format/script.sh35
-rw-r--r--.ci/scripts/linux/exec.sh2
-rw-r--r--LICENSES/BSD-2-Clause.txt2
-rw-r--r--LICENSES/BSD-3-Clause.txt2
-rw-r--r--LICENSES/MPL-2.0.txt2
-rw-r--r--externals/ffmpeg/CMakeLists.txt2
6 files changed, 20 insertions, 25 deletions
diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.sh
index 25b0718f0..c9c5e4fac 100755
--- a/.ci/scripts/format/script.sh
+++ b/.ci/scripts/format/script.sh
@@ -3,38 +3,33 @@
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project 3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later 4# SPDX-License-Identifier: GPL-2.0-or-later
5 5
6if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \ 6shopt -s nullglob globstar
7
8if grep -nrI '\s$' src **/*.yml **/*.txt **/*.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \
7 dist/*.svg dist/*.xml; then 9 dist/*.svg dist/*.xml; then
8 echo Trailing whitespace found, aborting 10 echo Trailing whitespace found, aborting
9 exit 1 11 exit 1
10fi 12fi
11 13
12# Default clang-format points to default 3.5 version one 14# Default clang-format points to default 3.5 version one
13CLANG_FORMAT=${CLANG_FORMAT:-clang-format-15} 15CLANG_FORMAT="${CLANG_FORMAT:-clang-format-15}"
14$CLANG_FORMAT --version 16"$CLANG_FORMAT" --version
15
16if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
17 # Get list of every file modified in this pull request
18 files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^src/[^.]*[.]\(cpp\|h\)$' || true)"
19else
20 # Check everything for branch pushes
21 files_to_lint="$(find src/ -name '*.cpp' -or -name '*.h')"
22fi
23 17
24# Turn off tracing for this because it's too verbose 18# Turn off tracing for this because it's too verbose
25set +x 19set +x
26 20
27for f in $files_to_lint; do 21# Check everything for branch pushes
28 d=$(diff -u "$f" <($CLANG_FORMAT "$f") || true) 22FILES_TO_LINT="$(find src/ -name '*.cpp' -or -name '*.h')"
29 if ! [ -z "$d" ]; then 23
30 echo "!!! $f not compliant to coding style, here is the fix:" 24for f in $FILES_TO_LINT; do
31 echo "$d" 25 echo "$f"
32 fail=1 26 "$CLANG_FORMAT" -i "$f"
33 fi
34done 27done
35 28
36set -x 29DIFF=$(git diff)
37 30
38if [ "$fail" = 1 ]; then 31if [ ! -z "$DIFF" ]; then
32 echo "!!! Not compliant to coding style, here is the fix:"
33 echo "$DIFF"
39 exit 1 34 exit 1
40fi 35fi
diff --git a/.ci/scripts/linux/exec.sh b/.ci/scripts/linux/exec.sh
index fa3d78cc2..04e2486a1 100644
--- a/.ci/scripts/linux/exec.sh
+++ b/.ci/scripts/linux/exec.sh
@@ -9,7 +9,7 @@ chmod a+x ./.ci/scripts/linux/docker.sh
9sudo chown -R 1027 ./ 9sudo chown -R 1027 ./
10 10
11# The environment variables listed below: 11# The environment variables listed below:
12# AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION 12# AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION
13# are requested in src/common/CMakeLists.txt and appear to be provided somewhere in Azure DevOps 13# are requested in src/common/CMakeLists.txt and appear to be provided somewhere in Azure DevOps
14 14
15docker run -e AZURECIREPO -e TITLEBARFORMATIDLE -e TITLEBARFORMATRUNNING -e DISPLAYVERSION -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1" 15docker run -e AZURECIREPO -e TITLEBARFORMATIDLE -e TITLEBARFORMATRUNNING -e DISPLAYVERSION -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1"
diff --git a/LICENSES/BSD-2-Clause.txt b/LICENSES/BSD-2-Clause.txt
index 5f662b354..eb3c575b8 100644
--- a/LICENSES/BSD-2-Clause.txt
+++ b/LICENSES/BSD-2-Clause.txt
@@ -1,4 +1,4 @@
1Copyright (c) <year> <owner> 1Copyright (c) <year> <owner>
2 2
3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4 4
diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt
index ea890afbc..086d3992c 100644
--- a/LICENSES/BSD-3-Clause.txt
+++ b/LICENSES/BSD-3-Clause.txt
@@ -1,4 +1,4 @@
1Copyright (c) <year> <owner>. 1Copyright (c) <year> <owner>.
2 2
3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 3Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4 4
diff --git a/LICENSES/MPL-2.0.txt b/LICENSES/MPL-2.0.txt
index 14e2f777f..a612ad981 100644
--- a/LICENSES/MPL-2.0.txt
+++ b/LICENSES/MPL-2.0.txt
@@ -35,7 +35,7 @@ Mozilla Public License Version 2.0
35 means any form of the work other than Source Code Form. 35 means any form of the work other than Source Code Form.
36 36
371.7. "Larger Work" 371.7. "Larger Work"
38 means a work that combines Covered Software with other material, in 38 means a work that combines Covered Software with other material, in
39 a separate file or files, that is not Covered Software. 39 a separate file or files, that is not Covered Software.
40 40
411.8. "License" 411.8. "License"
diff --git a/externals/ffmpeg/CMakeLists.txt b/externals/ffmpeg/CMakeLists.txt
index f2886eb6c..543585d4f 100644
--- a/externals/ffmpeg/CMakeLists.txt
+++ b/externals/ffmpeg/CMakeLists.txt
@@ -138,7 +138,7 @@ if (NOT WIN32 AND NOT ANDROID)
138 --cross-prefix=${TOOLCHAIN}/bin/aarch64-linux-android- 138 --cross-prefix=${TOOLCHAIN}/bin/aarch64-linux-android-
139 --sysroot=${SYSROOT} 139 --sysroot=${SYSROOT}
140 --target-os=android 140 --target-os=android
141 --extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld" 141 --extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld"
142 --extra-ldflags="-nostdlib" 142 --extra-ldflags="-nostdlib"
143 ) 143 )
144 endif() 144 endif()