2019-12-20 16:13:33 +01:00
|
|
|
import os
|
|
|
|
|
2019-04-20 14:02:55 +02:00
|
|
|
Import('env')
|
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
module_env = env.Clone()
|
|
|
|
|
2019-12-20 16:13:33 +01:00
|
|
|
if os.path.isdir('../mesh_data_resource'):
|
2020-01-03 15:52:26 +01:00
|
|
|
module_env.Append(CPPDEFINES=['MESH_DATA_RESOURCE_PRESENT'])
|
2019-12-20 16:13:33 +01:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
sources = [
|
|
|
|
"register_types.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entity_enums.cpp",
|
|
|
|
"spell_enums.cpp",
|
|
|
|
"item_enums.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-02-03 13:01:17 +01:00
|
|
|
"data/auras/aura.cpp",
|
|
|
|
"data/auras/aura_group.cpp",
|
|
|
|
|
|
|
|
"data/entities/xp_data.cpp",
|
|
|
|
|
|
|
|
"data/items/item_stat_modifier.cpp",
|
|
|
|
"data/items/item_template_stat_modifier.cpp",
|
|
|
|
"data/items/item_instance.cpp",
|
|
|
|
"data/items/item_template.cpp",
|
|
|
|
"data/items/equipment_data.cpp",
|
|
|
|
"data/items/equipment_data_entry.cpp",
|
|
|
|
"data/items/craft_recipe_helper.cpp",
|
|
|
|
"data/items/craft_recipe.cpp",
|
|
|
|
"data/items/item_visual.cpp",
|
|
|
|
"data/items/item_visual_entry.cpp",
|
|
|
|
"data/species/entity_species_data.cpp",
|
|
|
|
"data/species/species_model_data.cpp",
|
2020-02-03 16:13:42 +01:00
|
|
|
"data/species/species_instance.cpp",
|
2020-02-03 13:01:17 +01:00
|
|
|
|
|
|
|
"data/spells/spell_cooldown_manipulation_data.cpp",
|
|
|
|
"data/spells/spell.cpp",
|
|
|
|
"data/spells/spell_effect_visual.cpp",
|
|
|
|
"data/spells/spell_effect_visual_simple.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-02-03 13:03:33 +01:00
|
|
|
"data/atlases/character_atlas.cpp",
|
|
|
|
"data/atlases/character_atlas_entry.cpp",
|
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/data/entity_data.cpp",
|
|
|
|
"entities/data/entity_class_data.cpp",
|
2019-09-17 01:14:19 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/data/vendor_item_data.cpp",
|
|
|
|
"entities/data/vendor_item_data_entry.cpp",
|
2019-09-17 01:14:19 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/data/entity_data_container.cpp",
|
2019-09-09 14:26:18 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/data/item_container_data.cpp",
|
|
|
|
"entities/data/item_container_data_entry.cpp",
|
2019-09-17 01:14:19 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/skills/entity_skill.cpp",
|
|
|
|
"entities/skills/entity_skill_data.cpp",
|
2019-09-13 00:23:39 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/data/character_spec.cpp",
|
|
|
|
"entities/data/talent_row_data.cpp",
|
2019-09-09 14:26:18 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"skeleton/character_bones.cpp",
|
2019-08-24 21:27:42 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/stats/stat_data.cpp",
|
|
|
|
"entities/stats/level_stat_data.cpp",
|
|
|
|
"entities/stats/simple_level_stat_data.cpp",
|
|
|
|
"entities/stats/complex_level_stat_data.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"inventory/bag.cpp",
|
|
|
|
#"inventory/inventory.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"infos/aura_infos.cpp",
|
|
|
|
"infos/spell_cast_info.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"pipelines/spell_damage_info.cpp",
|
|
|
|
"pipelines/spell_heal_info.cpp",
|
|
|
|
"entities/auras/aura_data.cpp",
|
|
|
|
"entities/entity.cpp",
|
2019-11-30 21:04:35 +01:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/resources/entity_resource_data.cpp",
|
|
|
|
"entities/resources/entity_resource_cost_data.cpp",
|
2020-04-28 23:54:23 +02:00
|
|
|
"entities/resources/entity_resource_cost_data_health.cpp",
|
|
|
|
"entities/resources/entity_resource_cost_data_resource.cpp",
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/resources/entity_resource.cpp",
|
2020-04-28 23:54:23 +02:00
|
|
|
"entities/resources/entity_resource_health.cpp",
|
|
|
|
"entities/resources/entity_resource_speed.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"drag_and_drop/es_drag_and_drop.cpp",
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"skeleton/character_skeleton_2d.cpp",
|
|
|
|
"skeleton/character_skeleton_3d.cpp",
|
2019-05-01 02:49:06 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"skeleton/skeleton_model_entry.cpp",
|
2019-10-25 10:22:57 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"utility/entity_create_info.cpp",
|
2019-05-04 18:39:42 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"utility/cooldown.cpp",
|
|
|
|
"utility/category_cooldown.cpp",
|
2019-05-04 18:39:42 +02:00
|
|
|
|
2020-02-03 13:01:17 +01:00
|
|
|
"data/loot/loot_data_base.cpp",
|
2019-08-09 02:10:08 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"entities/ai/entity_ai.cpp",
|
2019-08-09 13:18:09 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
"formations/ai_formation.cpp",
|
2019-09-09 01:28:29 +02:00
|
|
|
|
2020-04-07 13:10:42 +02:00
|
|
|
"projectiles/3d/spell_follow_projectile_3d.cpp",
|
|
|
|
|
2020-02-03 11:56:52 +01:00
|
|
|
"profiles/input/input_profile_modifier.cpp",
|
|
|
|
"profiles/input/input_profile_modifier_entry.cpp",
|
|
|
|
"profiles/input/input_profile.cpp",
|
2019-10-14 15:16:59 +02:00
|
|
|
|
2020-02-03 11:56:52 +01:00
|
|
|
"profiles/actionbar/action_bar_button_entry.cpp",
|
|
|
|
"profiles/actionbar/action_bar_entry.cpp",
|
|
|
|
"profiles/actionbar/action_bar_profile.cpp",
|
2019-10-14 15:16:59 +02:00
|
|
|
|
2020-02-03 11:56:52 +01:00
|
|
|
"profiles/class_profile.cpp",
|
2019-10-14 15:16:59 +02:00
|
|
|
|
2020-03-19 20:29:36 +01:00
|
|
|
"profiles/player_profile.cpp",
|
|
|
|
|
2020-04-18 14:31:36 +02:00
|
|
|
"spawners/ess_entity_spawner.cpp",
|
|
|
|
|
2020-02-03 11:56:52 +01:00
|
|
|
"singletons/profile_manager.cpp",
|
2020-04-14 16:55:21 +02:00
|
|
|
"singletons/ess.cpp",
|
2020-04-13 19:15:07 +02:00
|
|
|
|
2020-04-14 16:46:24 +02:00
|
|
|
"database/ess_resource_db.cpp",
|
2020-04-15 00:24:12 +02:00
|
|
|
"database/ess_resource_db_static.cpp",
|
2020-04-18 22:47:20 +02:00
|
|
|
"database/ess_resource_db_map.cpp",
|
2020-04-15 00:24:12 +02:00
|
|
|
"database/ess_resource_db_folders.cpp",
|
2020-04-14 16:46:24 +02:00
|
|
|
|
2020-04-13 19:15:07 +02:00
|
|
|
"editor/ess_editor_plugin.cpp",
|
2020-01-03 15:52:26 +01:00
|
|
|
]
|
2019-10-19 13:21:21 +02:00
|
|
|
|
2020-01-03 15:52:26 +01:00
|
|
|
if ARGUMENTS.get('custom_modules_shared', 'no') == 'yes':
|
|
|
|
# Shared lib compilation
|
|
|
|
module_env.Append(CCFLAGS=['-fPIC'])
|
|
|
|
module_env['LIBS'] = []
|
|
|
|
shared_lib = module_env.SharedLibrary(target='#bin/ess', source=sources)
|
|
|
|
shared_lib_shim = shared_lib[0].name.rsplit('.', 1)[0]
|
|
|
|
env.Append(LIBS=[shared_lib_shim])
|
|
|
|
env.Append(LIBPATH=['#bin'])
|
|
|
|
else:
|
|
|
|
# Static compilation
|
|
|
|
module_env.add_source_files(env.modules_sources, sources)
|