mirror of
https://github.com/Relintai/mesh_data_resource.git
synced 2024-11-22 10:57:56 +01:00
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
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('../mesh_utils'):
|
|
module_env.Append(CPPDEFINES=['MESH_UTILS_PRESENT'])
|
|
|
|
if env["module_xatlas_unwrap_enabled"]:
|
|
module_env.Append(CPPDEFINES=['XATLAS_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_collada/editor_import_collada_mdr.cpp")
|
|
module_env.add_source_files(env.modules_sources,"plugin_collada/editor_plugin_collada_mdr.cpp")
|
|
|
|
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")
|
|
|
|
module_env.add_source_files(env.modules_sources,"nodes/mesh_data_instance.cpp")
|
|
|
|
module_env.add_source_files(env.modules_sources,"props/prop_data_mesh_data.cpp")
|