mirror of https://github.com/AxioDL/metaforce.git
DataSpecRegistry now generated by CMake
This commit is contained in:
parent
ac4d139030
commit
d28734f4df
|
@ -0,0 +1,2 @@
|
||||||
|
DataSpecRegistry.hpp
|
||||||
|
|
|
@ -9,6 +9,8 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
configure_file(DataSpecRegistry.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/DataSpecRegistry.hpp @ONLY)
|
||||||
|
|
||||||
list(APPEND HECL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/blender)
|
list(APPEND HECL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/blender)
|
||||||
set(HECL_INCLUDE_DIR ${HECL_INCLUDE_DIR} PARENT_SCOPE)
|
set(HECL_INCLUDE_DIR ${HECL_INCLUDE_DIR} PARENT_SCOPE)
|
||||||
set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/Athena/include)
|
set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/Athena/include)
|
||||||
|
|
|
@ -17,18 +17,10 @@ std::vector<const struct DataSpecEntry*> DATA_SPEC_REGISTRY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* RetroCommon specs */
|
@HECL_DATASPEC_DECLS@
|
||||||
namespace Retro
|
|
||||||
{
|
|
||||||
extern HECL::Database::DataSpecEntry SpecEntMP1;
|
|
||||||
extern HECL::Database::DataSpecEntry SpecEntMP2;
|
|
||||||
extern HECL::Database::DataSpecEntry SpecEntMP3;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Please Call Me! */
|
/* Please Call Me! */
|
||||||
void HECLRegisterDataSpecs()
|
void HECLRegisterDataSpecs()
|
||||||
{
|
{
|
||||||
HECL::Database::DATA_SPEC_REGISTRY.push_back(&Retro::SpecEntMP1);
|
@HECL_DATASPEC_PUSHES@
|
||||||
HECL::Database::DATA_SPEC_REGISTRY.push_back(&Retro::SpecEntMP2);
|
|
||||||
HECL::Database::DATA_SPEC_REGISTRY.push_back(&Retro::SpecEntMP3);
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue