mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
14 lines
485 B
Python
14 lines
485 B
Python
|
|
"""Functions used to generate source files during build time"""
|
||
|
|
|
||
|
|
import methods
|
||
|
|
|
||
|
|
|
||
|
|
def profiler_gen_builder(target, source, env):
|
||
|
|
with methods.generated_wrapper(str(target[0])) as file:
|
||
|
|
if env["profiler"] == "tracy":
|
||
|
|
file.write("#define GODOT_USE_TRACY\n")
|
||
|
|
if env["profiler_sample_callstack"]:
|
||
|
|
file.write("#define TRACY_CALLSTACK 62\n")
|
||
|
|
if env["profiler"] == "perfetto":
|
||
|
|
file.write("#define GODOT_USE_PERFETTO\n")
|