2022-03-15 13:29:32 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
|
|
|
module_env = env.Clone()
|
|
|
|
|
|
|
|
if os.path.isdir('../texture_packer'):
|
|
|
|
module_env.Append(CPPDEFINES=['TEXTURE_PACKER_PRESENT'])
|
|
|
|
|
|
|
|
if os.path.isdir('../props'):
|
|
|
|
module_env.Append(CPPDEFINES=['PROPS_PRESENT'])
|
|
|
|
|
|
|
|
if os.path.isdir('../props_2d'):
|
|
|
|
module_env.Append(CPPDEFINES=['PROPS_2D_PRESENT'])
|
|
|
|
|
|
|
|
if os.path.isdir('../mesh_utils'):
|
|
|
|
module_env.Append(CPPDEFINES=['MESH_UTILS_PRESENT'])
|
|
|
|
|
|
|
|
module_env.add_source_files(env.modules_sources,"register_types.cpp")
|
|
|
|
|
|
|
|
module_env.add_source_files(env.modules_sources,"mesh_data_resource.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"mesh_data_resource_collection.cpp")
|
|
|
|
|
|
|
|
module_env.add_source_files(env.modules_sources,"plugin/mdr_import_plugin_base.cpp")
|
|
|
|
|
|
|
|
if 'TOOLS_ENABLED' in env["CPPDEFINES"]:
|
|
|
|
module_env.add_source_files(env.modules_sources,"plugin_gltf/editor_import_gltf_mdr.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"plugin_gltf/editor_plugin_gltf_mdr.cpp")
|
|
|
|
|
2022-04-11 15:06:09 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/utilities/mdr_ed_mesh_decompose.cpp")
|
2022-04-11 20:56:59 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/utilities/mdr_ed_mesh_outline.cpp")
|
2022-04-12 13:04:53 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/utilities/mdr_ed_mesh_utils.cpp")
|
2022-04-11 15:06:09 +02:00
|
|
|
|
2022-04-13 20:39:17 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/uv_editor/mdr_ed_uv_previewer.cpp")
|
2022-04-12 21:46:03 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/uv_editor/mdr_uv_rect_editor.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"editor/uv_editor/mdr_uv_rect_view_node.cpp")
|
2022-04-13 17:42:33 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/uv_editor/mdr_uv_rect_editor_popup.cpp")
|
2022-04-12 21:46:03 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/uv_editor/mdr_uv_rect_view.cpp")
|
|
|
|
|
2022-04-13 14:59:40 +02:00
|
|
|
module_env.add_source_files(env.modules_sources,"editor/mdi_ed_plugin.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"editor/mdi_ed.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"editor/mdi_gizmo_plugin.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"editor/mdi_gizmo.cpp")
|
2022-04-13 02:08:30 +02:00
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
module_env.add_source_files(env.modules_sources,"nodes/mesh_data_instance.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"nodes/mesh_data_instance_2d.cpp")
|
|
|
|
|
|
|
|
if os.path.isdir('../props'):
|
|
|
|
module_env.add_source_files(env.modules_sources,"props/prop_data_mesh_data.cpp")
|
|
|
|
|
|
|
|
if os.path.isdir('../props_2d'):
|
2022-03-16 09:02:48 +01:00
|
|
|
module_env.add_source_files(env.modules_sources,"props_2d/prop_2d_data_mesh_data.cpp")
|