summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-08-25 20:45:28 -0400
committerGitHub <noreply@github.com>2025-08-25 17:45:28 -0700
commitee6c527735cc771a0c884fceb64f767a7893957c (patch)
treef0fdca7748beb89b0bfffd173c08e56ceb47ad17 /tools
parent22573bf7a6bdfaaeef3777fee7879c3eeddf62b2 (diff)
Add PAL, JPN, and Shield versions to CI, update dtk-template (#2605)
* Add ShieldD to GitHub CI build * Update dtk-template, add support for CI caching * Fix PAL and JPN not building on Linux due to case sensitive file paths * Add PAL and JPN to GitHub CI build * Fix bad copy paste
Diffstat (limited to 'tools')
-rwxr-xr-xtools/download_tool.py15
-rw-r--r--tools/project.py9
2 files changed, 19 insertions, 5 deletions
diff --git a/tools/download_tool.py b/tools/download_tool.py
index 7adbf0d70e..381b170a60 100755
--- a/tools/download_tool.py
+++ b/tools/download_tool.py
@@ -91,6 +91,7 @@ TOOLS: Dict[str, Callable[[str], str]] = {
"wibo": wibo_url,
}
+
def download(url, response, output) -> None:
if url.endswith(".zip"):
data = io.BytesIO(response.read())
@@ -107,6 +108,7 @@ def download(url, response, output) -> None:
st = os.stat(output)
os.chmod(output, st.st_mode | stat.S_IEXEC)
+
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("tool", help="Tool name")
@@ -128,12 +130,17 @@ def main() -> None:
try:
import certifi
import ssl
- except:
- print("\"certifi\" module not found. Please install it using \"python -m pip install certifi\".")
+ except ImportError:
+ print(
+ '"certifi" module not found. Please install it using "python -m pip install certifi".'
+ )
return
-
- with urllib.request.urlopen(req, context=ssl.create_default_context(cafile=certifi.where())) as response:
+
+ with urllib.request.urlopen(
+ req, context=ssl.create_default_context(cafile=certifi.where())
+ ) as response:
download(url, response, output)
+
if __name__ == "__main__":
main()
diff --git a/tools/project.py b/tools/project.py
index 2d00df4633..00d414ed2f 100644
--- a/tools/project.py
+++ b/tools/project.py
@@ -1545,13 +1545,20 @@ def generate_objdiff_config(
"build_target": False,
"watch_patterns": [
"*.c",
+ "*.cc",
"*.cp",
"*.cpp",
+ "*.cxx",
+ "*.c++",
"*.h",
+ "*.hh",
+ "*.hp",
"*.hpp",
- "*.inc",
+ "*.hxx",
+ "*.h++",
"*.pch",
"*.pch++",
+ "*.inc",
"*.py",
"*.yml",
"*.txt",