mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-10 22:02:37 +02:00
Added a new editor_docs setting to the build. Disabling it can help when quick iteration times are desired. Setting it to false saves about 4 seconds of compile time for me (in the current stripped slim build that I'm working on).
This commit is contained in:
parent
ab3e6f0014
commit
afc171a4a4
@ -166,6 +166,7 @@ opts.Add(
|
|||||||
("pointers", "handles", "tracked_handles"),
|
("pointers", "handles", "tracked_handles"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
opts.Add(BoolVariable("editor_docs", "Whether to add docs to an editor build or not. Disabling this can significantly reduce incremental compile times. Only relevant for editor builds!", True))
|
||||||
|
|
||||||
# Thirdparty libraries
|
# Thirdparty libraries
|
||||||
opts.Add(BoolVariable("builtin_certs", "Use the built-in SSL certificates bundles", True))
|
opts.Add(BoolVariable("builtin_certs", "Use the built-in SSL certificates bundles", True))
|
||||||
|
29
editor/SCsub
29
editor/SCsub
@ -46,23 +46,26 @@ if env["tools"]:
|
|||||||
|
|
||||||
# Core API documentation.
|
# Core API documentation.
|
||||||
docs = []
|
docs = []
|
||||||
docs += Glob("#doc/classes/*.xml")
|
|
||||||
|
|
||||||
# Module API documentation.
|
if env["editor_docs"]:
|
||||||
module_dirs = []
|
docs += Glob("#doc/classes/*.xml")
|
||||||
for d in env.doc_class_path.values():
|
|
||||||
if d not in module_dirs:
|
|
||||||
module_dirs.append(d)
|
|
||||||
|
|
||||||
for d in module_dirs:
|
# Module API documentation.
|
||||||
if not os.path.isabs(d):
|
module_dirs = []
|
||||||
docs += Glob("#" + d + "/*.xml") # Built-in.
|
for d in env.doc_class_path.values():
|
||||||
else:
|
if d not in module_dirs:
|
||||||
docs += Glob(d + "/*.xml") # Custom.
|
module_dirs.append(d)
|
||||||
|
|
||||||
_make_doc_data_class_path(env.Dir("#editor/doc").abspath)
|
for d in module_dirs:
|
||||||
|
if not os.path.isabs(d):
|
||||||
|
docs += Glob("#" + d + "/*.xml") # Built-in.
|
||||||
|
else:
|
||||||
|
docs += Glob(d + "/*.xml") # Custom.
|
||||||
|
|
||||||
|
_make_doc_data_class_path(env.Dir("#editor/doc").abspath)
|
||||||
|
|
||||||
|
docs = sorted(docs)
|
||||||
|
|
||||||
docs = sorted(docs)
|
|
||||||
env.Depends("#editor/doc_data_compressed.gen.h", docs)
|
env.Depends("#editor/doc_data_compressed.gen.h", docs)
|
||||||
env.CommandNoCache("#editor/doc_data_compressed.gen.h", docs, run_in_subprocess(editor_builders.make_doc_header))
|
env.CommandNoCache("#editor/doc_data_compressed.gen.h", docs, run_in_subprocess(editor_builders.make_doc_header))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user