Skip to content

Commit e27ca5c

Browse files
committed
Reformat.
1 parent cc72ac6 commit e27ca5c

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/gui2/build.py

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@
2525

2626

2727
def headers_from(path):
28-
hdrs = {
29-
k: f"{path}/{k}" for k in glob("**/*.h*", root_dir=path, recursive=True)
30-
}
28+
hdrs = {k: f"{path}/{k}" for k in glob("**/*.h*", root_dir=path, recursive=True)}
3129
assert hdrs, f"path {path} contained no headers"
3230
return hdrs
3331

3432

3533
def sources_from(path, except_for=[]):
36-
srcs = [
37-
join(path, f) for f in glob("**/*.[ch]*", root_dir=path, recursive=True)
38-
]
34+
srcs = [join(path, f) for f in glob("**/*.[ch]*", root_dir=path, recursive=True)]
3935
srcs = [f for f in srcs if f not in except_for]
4036
assert srcs, f"path {path} contained no sources"
4137
return srcs
@@ -201,9 +197,7 @@ def sources_from(path, except_for=[]):
201197
operator.ior,
202198
[headers_from(f"dep/libwolv/libs/{d}/include") for d in wolv_modules],
203199
)
204-
| {
205-
"types/uintwide_t.h": "dep/libwolv/libs/types/include/wolv/types/uintwide_t.h"
206-
},
200+
| {"types/uintwide_t.h": "dep/libwolv/libs/types/include/wolv/types/uintwide_t.h"},
207201
deps=[".+libwolv-io-fs"],
208202
cflags=cflags,
209203
)
@@ -232,9 +226,7 @@ def sources_from(path, except_for=[]):
232226
],
233227
)
234228

235-
cxxlibrary(
236-
name="hacks", srcs=[], hdrs={"jthread.hpp": "./imhex_overrides/jthread.hpp"}
237-
)
229+
cxxlibrary(name="hacks", srcs=[], hdrs={"jthread.hpp": "./imhex_overrides/jthread.hpp"})
238230

239231
clibrary(
240232
name="libmicrotar",
@@ -269,9 +261,7 @@ def sources_from(path, except_for=[]):
269261
sources_from("dep/imhex/lib/libimhex/source/ui")
270262
+ sources_from(
271263
"dep/imhex/lib/libimhex/source/api",
272-
except_for=[
273-
"dep/imhex/lib/libimhex/source/api/achievement_manager.cpp"
274-
],
264+
except_for=["dep/imhex/lib/libimhex/source/api/achievement_manager.cpp"],
275265
)
276266
+ sources_from("dep/imhex/lib/libimhex/source/data_processor")
277267
+ sources_from("dep/imhex/lib/libimhex/source/providers")
@@ -424,9 +414,7 @@ def plugin(name, id, srcs, hdrs, romfsdir, deps):
424414
"dep/imhex/plugins/builtin/source/content/views/view_tutorials.cpp",
425415
"dep/imhex/plugins/builtin/source/content/data_processor_nodes.cpp",
426416
]
427-
+ glob(
428-
"dep/imhex/plugins/builtin/source/content/data_processor_nodes/*"
429-
)
417+
+ glob("dep/imhex/plugins/builtin/source/content/data_processor_nodes/*")
430418
+ glob("dep/imhex/plugins/builtin/source/content/tutorials/*"),
431419
)
432420
+ [

0 commit comments

Comments
 (0)