Skip to content

Commit

Permalink
Fix global.h<->config.h dependency in genctx.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JaceCear committed Dec 12, 2024
1 parent cf83fc3 commit 77b1713
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions genctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ def search_directories(*patterns):

if not header_name in depends_on:
depends_on[header_name] = set()
if not header_name.startswith("gba/") \
and header_name != "global.h" \
and header_name != "functions.h":
depends_on[header_name].add("global.h")

if header_name.startswith("gba/") \
and not header_name.endswith("types.h") \
and not header_name.endswith("defines.h"):
depends_on[header_name].add("gba/types.h")

if not header_name.startswith("gba/"):
if header_name != "global.h" \
and header_name != "config.h" \
and header_name != "functions.h":
depends_on[header_name].add("global.h")

if header_name.startswith("gba/") \
and not header_name.endswith("multiboot.h") \
and not header_name.endswith("types.h"):
depends_on[header_name].add("gba/multiboot.h")
else: # header_name.startswith("gba/")
if not header_name.endswith("types.h") \
and not header_name.endswith("defines.h"):
depends_on[header_name].add("gba/types.h")
elif not header_name.endswith("multiboot.h") \
and not header_name.endswith("types.h"):
depends_on[header_name].add("gba/multiboot.h")

data[header_name] = ""
for line in header.readlines():
Expand Down

0 comments on commit 77b1713

Please sign in to comment.