|
25 | 25 |
|
26 | 26 |
|
27 | 27 | 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)} |
31 | 29 | assert hdrs, f"path {path} contained no headers" |
32 | 30 | return hdrs |
33 | 31 |
|
34 | 32 |
|
35 | 33 | 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)] |
39 | 35 | srcs = [f for f in srcs if f not in except_for] |
40 | 36 | assert srcs, f"path {path} contained no sources" |
41 | 37 | return srcs |
@@ -201,9 +197,7 @@ def sources_from(path, except_for=[]): |
201 | 197 | operator.ior, |
202 | 198 | [headers_from(f"dep/libwolv/libs/{d}/include") for d in wolv_modules], |
203 | 199 | ) |
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"}, |
207 | 201 | deps=[".+libwolv-io-fs"], |
208 | 202 | cflags=cflags, |
209 | 203 | ) |
@@ -232,9 +226,7 @@ def sources_from(path, except_for=[]): |
232 | 226 | ], |
233 | 227 | ) |
234 | 228 |
|
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"}) |
238 | 230 |
|
239 | 231 | clibrary( |
240 | 232 | name="libmicrotar", |
@@ -269,9 +261,7 @@ def sources_from(path, except_for=[]): |
269 | 261 | sources_from("dep/imhex/lib/libimhex/source/ui") |
270 | 262 | + sources_from( |
271 | 263 | "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"], |
275 | 265 | ) |
276 | 266 | + sources_from("dep/imhex/lib/libimhex/source/data_processor") |
277 | 267 | + sources_from("dep/imhex/lib/libimhex/source/providers") |
@@ -424,9 +414,7 @@ def plugin(name, id, srcs, hdrs, romfsdir, deps): |
424 | 414 | "dep/imhex/plugins/builtin/source/content/views/view_tutorials.cpp", |
425 | 415 | "dep/imhex/plugins/builtin/source/content/data_processor_nodes.cpp", |
426 | 416 | ] |
427 | | - + glob( |
428 | | - "dep/imhex/plugins/builtin/source/content/data_processor_nodes/*" |
429 | | - ) |
| 417 | + + glob("dep/imhex/plugins/builtin/source/content/data_processor_nodes/*") |
430 | 418 | + glob("dep/imhex/plugins/builtin/source/content/tutorials/*"), |
431 | 419 | ) |
432 | 420 | + [ |
|
0 commit comments