Commit Graph

67 Commits

Author SHA1 Message Date
OatmealDome
cbbffce79a MacUpdater: Switch to mac-codesign script for code signing 2024-08-01 22:06:51 -04:00
OatmealDome
4883889e23 Tools: Add script to codesign a macOS bundle or executable
With our current setup, we use the --deep option, which should be avoided.
This tool signs bundles in the "correct" way as recommended by Apple (each Mach-O individually, from the inside-out).
2024-08-01 14:56:56 -04:00
OatmealDome
4550fc3ab5 Tools: Remove check-includes.py
Include sorting has been enforced by clang-format and lint since ~2015.
2024-07-11 15:01:15 -04:00
OatmealDome
8bd2cb40e5 Tools: Remove CleanFiles.py
This tool doesn't seem to work properly anymore, even after fixing the path in main().
2024-07-11 15:01:10 -04:00
OatmealDome
3db641ab4c Tools: Remove buildbot-try.sh
try support was removed from the buildbot master in dolphin-emu/sadm@336d0e6064.
2024-07-11 15:01:05 -04:00
OatmealDome
22aed354f5 Tools: Remove gameini-ratings-from-wiki.sh
We haven't been storing ratings in GameINIs since #6569.
2024-07-11 14:49:29 -04:00
Frajo Haider
210347ae15 Tools: fix perf-disassemble.sh.
perf now passes the proper no-show-raw-insn option instead of no-show-raw.

Keep no-show-raw as a fallback for older kernels/perf-toolings.

See also: c5baf90892
2023-09-04 12:29:07 +03:00
shuffle2
2c1e2c88ca
Update test-updater.py
🐬
2023-03-22 15:39:28 -07:00
Shawn Hoffman
fdc1626308 test-updater.py: include space and unicode in paths to test 2023-03-22 11:08:58 -07:00
Shawn Hoffman
0a8725e4a9 updater: add test for update flow
currently windows-only
2023-03-11 12:58:33 -08:00
Scott Mansell
e38c0a1bbd lint: replace egrep with grep -E
Starting with grep 3.8, egrep throws the following warning
   egrep: warning: egrep is obsolescent; using grep -E

Whch is annoying... so we will use grep -E
2023-02-02 17:23:40 +13:00
Pierre Bourdon
c92de420ef
lint: update to clang-format-13 2023-02-02 04:56:08 +01:00
OatmealDome
a25c835d00 lint: Don't check for WSL2 host path on non-Linux OSes 2022-08-15 16:13:18 -04:00
Shawn Hoffman
a93babb1b3 lint: use git.exe if the source resides on v9fs
speedup for running script under wsl2 when sources are mounted from host
2022-06-08 21:10:31 -07:00
dreamsyntax
d99664a4cb add IDA save/load dolphin map scripts for 7.x 2021-10-09 12:59:14 -07:00
Léo Lam
815b590dfe
Update clang-format to version 12
12 is the latest release and various editors (VS, VSCode and CLion)
ship with clang-format 12 by default.
2021-08-30 00:20:18 +02:00
Sepalani
2c4585a506 Tools: Dolphin symbol map ghidra scripts added 2021-03-02 13:54:52 +04:00
Shawn Hoffman
9399e8b2bc require clang-format 10.0 2021-01-28 09:56:31 -08:00
JosJuice
838abd6536 Add script for running unit tests on Android device
Maybe a little wonky, but I needed a way to run unit tests
on AArch64, and this was the best way of running unit tests
on Android that I could come up with.
2021-01-26 19:08:22 +01:00
Léo Lam
150c832532 Tools: Add a small Python tool to print FSTs 2020-01-25 17:54:58 +01:00
Léo Lam
4cc2d97294 Require clang-format 9 and reformat source code
This updates the lint script to require clang-format 9 and reformats
existing source code. Since VS2019 ships with clang-format 9 this
should make auto reformats less painful.

This also updates the clang-format configuration to set
BraceWrapping.AfterCaseLabel to true to ensure consistent brace
style; otherwise clang-format 9+ defaults to putting braces on
the same line as switch case labels.
2020-01-08 22:18:15 +01:00
Techjar
a72f56f558 Update lint.sh to clang-format 7.0 2019-05-05 19:25:42 -04:00
spycrab
f43c6d68f2 Tools/lint.sh: Look for specific versions of clang-format first 2019-03-09 15:08:22 +01:00
Steven M. Vascellaro
f2b17312b0 Use HTTPS urls when updating from GameTDB 2018-12-04 15:16:18 -05:00
booto
712f44edd9 lint: remove superfluous logging
Make lint script be silent unless there's a problem. This line doesn't
work anyway, trying to redirect to fd 0.
2018-10-05 19:35:46 -04:00
riking
c5ecb718ac Add Android code style enforcement to lint.sh
This requires buildbot changes: the path to the Android Studio
installation must be supplied in an environment variable.

Modified files are copied out to a temporary directory, Android Studio
is asked to format the files, and a git diff is performed.
2018-08-26 19:18:31 -07:00
Sepalani
a83858cac0 Tools: Dolphin symbol map IDA scripts added
Old ReadDolphinMap script removed
2018-05-30 09:13:12 +04:00
spycrab
d27e85e9d7 Tools: Bump lint.sh version 2018-04-12 10:49:55 +02:00
N.E.C
f9b8365190 Tools: Check for git and clang-format version 3.8.* in lint.sh 2017-08-16 22:28:02 -07:00
Michael M
4c92d8c81e Tools/lint.sh: lint all of Source, not just Core 2017-08-13 19:04:56 -07:00
Michael Maltese
6939590598 Tools/lint.sh: turn on Bash 'strict mode'
Now fails if any commands fail. I noticed that on the buildbot, the
arguments to this script can be incorrect (somehow?) which can result in
no lint checks happening but the buildbot still passing.
2017-07-18 15:36:15 -07:00
Tillmann Karras
2adaeae87c Tools: update perf-disassemble.sh
The -P command line option doesn't exist anymore.
2017-06-18 06:59:53 +01:00
Léo Lam
9c63544445 Tools: Allow diffing against arbitrary revisions
Instead of applying PRs as patches and leaving them as staged changes,
the lint builder now checks out the PR branch, so the lint script
must be able to call git diff with more than just --cached.
(The buildbot will call it with "master...".)
2017-06-05 02:19:08 +02:00
Léo Lam
baac0d78bf Tools: Simplify update-wiitdb.sh
After getting in touch with the GameTDB maintainer about using their
databases, they have decided to implement a UNIQUE parameter so we
don't need to deduplicate ourselves. This simplifies the script a bit.

Thanks to lustar for their help.
2017-05-26 10:05:18 +02:00
Léo Lam
89b5549fe0 Include the latest WiiTDB
This allows us to print user friendly names for titles out of the box,
without requiring the user to manually download a title database and
place it in the correct location.

No auto-update mechanism is implemented as it would be substantially
more complicated and overkill (imo), since titles are not updated
that often. I have however added a script to make updating them easier.

The database can be freely used without any restriction. I have
contacted the author.
2017-05-21 18:57:55 +02:00
Sepalani
83489e2766 lint: Check for newline at EOF 2017-05-08 19:20:42 +01:00
Michael Maltese
38816bf51d CMake: use BundleUtilities to fix up Dolphin.app 2017-02-03 22:27:19 -08:00
Vicki Pfau
17989028b0 Tools: Fix recurring multiple times over the same library in deploy-mac.py 2017-02-03 09:46:28 -08:00
Florent Castelli
df91ebe513 macOS: Make deploy-mac.py script idempotent
Running the same script twice would update the imports, copy them
in the bundle on the first run, and remove them on the second run,
resulting in a broken package.
2017-02-02 03:51:31 +01:00
Florent Castelli
4f4b2f15d3 macOS: Fix deploy-mac.py which fails when no dylib path has to be changed 2017-01-26 00:58:43 +01:00
Léo Lam
1fe31f6f19 Tools: Fix the lint script
It turns out that last fix was only partial, and it didn't fix the
issue completely as paths were fixed, but staged changes were not
in the list. This should fix it for real, this time. Sorry about that…

(git diff needs --cached to include staged changes, unlike git status.)
2016-08-11 21:11:17 +02:00
Léo Lam
cbb77532c6 Tools: Fix lint by removing unneeded awk
git diff --name-only already took care of only returning the name, so
the awk is unneeded and makes it return only empty file names.

Facepalm, I know. Sorry for this oversight.

(Also fixes something that lint didn't catch because of this)
2016-08-02 22:00:41 +02:00
Léo Lam
671c0bc06f Tools: Don't run lint on deleted files
Generates a harmless "No such file or directory" otherwise when a file
is removed in a commit.
2016-07-26 00:51:10 +02:00
Pierre Bourdon
8a1bbaa563 lint: bash is hard, actually return errors 2016-06-24 14:27:35 +02:00
Pierre Bourdon
3af8f71472 linter: run clang-format and fail on diffs 2016-06-24 13:23:10 +02:00
Pierre Bourdon
e1c65406dc linter: Stop checking for include ordering (inconsistent with clang-format) 2016-06-24 13:14:41 +02:00
Pierre Bourdon
15ad14a9dc Add linter script which will replace the ad-hoc commands ran by the linter Buildbot. 2015-10-31 18:43:37 +01:00
Gabriel Corona
cd3a61a2a3 Tool to transform JIT_PPC_${address} to JIT_PPC_${symbol} 2015-07-24 00:11:56 +02:00
Jeffrey Pfau
a96759d9e9 Tools: Collapse install_name_tool calls in deploy-mac 2015-06-06 12:51:47 -07:00
Jeffrey Pfau
14dbe7e6db Tools: Clean up deploy-mac script symlink resolution 2015-06-06 12:45:40 -07:00