mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
7c4c4b9987
If the module is enabled (default), 2D physics works as it did before. If the module is disabled and no other 2D physics server is registered (via a module or GDExtension), then we fall back to a dummy implementation which effectively disables 2D physics functionality (and a warning is printed). The dummy 2D physics server can also be selected explicitly, in which case no warning is printed.
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
|
|
env.servers_sources = []
|
|
|
|
env.add_source_files(env.servers_sources, "audio_server.cpp")
|
|
env.add_source_files(env.servers_sources, "camera_server.cpp")
|
|
env.add_source_files(env.servers_sources, "display_server.cpp")
|
|
env.add_source_files(env.servers_sources, "navigation_server_2d.cpp")
|
|
env.add_source_files(env.servers_sources, "navigation_server_3d.cpp")
|
|
env.add_source_files(env.servers_sources, "physics_server_2d.cpp")
|
|
env.add_source_files(env.servers_sources, "physics_server_2d_wrap_mt.cpp")
|
|
env.add_source_files(env.servers_sources, "register_server_types.cpp")
|
|
env.add_source_files(env.servers_sources, "rendering_server.cpp")
|
|
env.add_source_files(env.servers_sources, "text_server.cpp")
|
|
|
|
SConscript("audio/SCsub")
|
|
SConscript("camera/SCsub")
|
|
SConscript("debugger/SCsub")
|
|
SConscript("display/SCsub")
|
|
SConscript("extensions/SCsub")
|
|
SConscript("movie_writer/SCsub")
|
|
SConscript("navigation/SCsub")
|
|
SConscript("rendering/SCsub")
|
|
SConscript("text/SCsub")
|
|
|
|
if not env["disable_3d"]:
|
|
env.add_source_files(env.servers_sources, "physics_server_3d.cpp")
|
|
env.add_source_files(env.servers_sources, "physics_server_3d_wrap_mt.cpp")
|
|
SConscript("xr/SCsub")
|
|
env.add_source_files(env.servers_sources, "xr_server.cpp")
|
|
|
|
lib = env.add_library("servers", env.servers_sources)
|
|
|
|
env.Prepend(LIBS=[lib])
|