2025-10-05 09:04:53 +08:00
# Tools
2026-05-23 03:15:31 +08:00
Tools for Eden and other subprojects. When adding new scripts please use `#!/bin/sh -e` or `#!/usr/bin/env <interpreter>` (for `.py` , `.rb` , or `.perl` ). Keep scripts POSIX compliant (i.e not require hard `bash` to run, just plain old `sh` ).
2025-10-05 09:04:53 +08:00
## Third-Party
- [CPMUtil Scripts ](./cpm )
## Eden
2025-11-08 00:00:53 +08:00
- `generate_converters.py` : Generates converters for given formats of textures (C++ helper).
- `svc_generator.py` : Generates the files `src/core/hle/kernel/svc.cpp` and `src/core/hle/kernel/svc.h` based off prototypes.
2025-10-05 09:04:53 +08:00
- `shellcheck.sh` : Ensure POSIX compliance (and syntax sanity) for all tools in this directory and subdirectories.
- `llvmpipe-run.sh` : Sets environment variables needed to run any command (or Eden) with llvmpipe.
2025-10-20 20:25:03 +08:00
- `optimize-assets.sh` : Optimizes PNG assets with OptiPng.
2025-10-05 09:04:53 +08:00
- `update-cpm.sh` : Updates CPM.cmake to the latest version.
- `update-icons.sh` : Rebuild all icons (macOS, Windows, bitmaps) based on the master SVG file (`dist/dev.eden_emu.eden.svg`)
* Also optimizes the master SVG
* Requires: `png2icns` (libicns), ImageMagick, [`svgo` ](https://github.com/svg/svgo )
- `dtrace-tool.sh`
2025-10-20 20:25:03 +08:00
- `lanczos-gen.pl` : Generates constants for the Lanczos filter.
2025-10-05 09:04:53 +08:00
- `clang-format.sh` : Runs `clang-format` on the entire codebase.
* Requires: clang
2025-10-20 20:25:03 +08:00
- `find-unused-strings.sh` : Find any unused strings in the Android app (XML -> Kotlin).
2025-10-19 01:29:19 +08:00
2025-10-19 10:57:47 +08:00
## Android
It's recommended to run these scritps after almost any Android change, as they are relatively fast and important both for APK bloat and CI.
- `unused-strings.sh` : Finds unused strings in `strings.xml` files.
- `stale-translations.sh` : Finds translated strings that aren't present in the source `strings.xml` file.
2025-10-19 01:29:19 +08:00
## Translations
2025-10-20 20:25:03 +08:00
- [Translation Scripts ](./translations )