mirror of https://github.com/AxioDL/metaforce.git
removed qt files; updated for atdna
This commit is contained in:
parent
74b970c347
commit
7835de639d
|
@ -1,6 +1,17 @@
|
|||
include_directories(${HECL_INCLUDE_DIR} ${NOD_LIB_INCLUDE_DIR})
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
|
||||
# Magic ingredient
|
||||
find_package(atdna REQUIRED)
|
||||
|
||||
# Assembles a source/header pair list for use in a DNA library
|
||||
macro(make_dnalist outlist inlist)
|
||||
foreach(type ${inlist})
|
||||
atdna(${type}.cpp ${type}.hpp)
|
||||
list(APPEND ${outlist} ${type}.cpp ${type}.hpp)
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
add_subdirectory(DNACommon)
|
||||
add_subdirectory(DNAMP1)
|
||||
add_subdirectory(DNAMP2)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
add_library(DNACommon
|
||||
DNACommon.hpp
|
||||
DNACommon.cpp)
|
|
@ -1,2 +0,0 @@
|
|||
HEADERS += \
|
||||
$$PWD/DNACommon.hpp
|
|
@ -1,2 +1,6 @@
|
|||
add_library(DNAMP1
|
||||
PAK.cpp)
|
||||
list(APPEND types
|
||||
PAK
|
||||
MLVL)
|
||||
|
||||
make_dnalist(liblist ${types})
|
||||
add_library(DNAMP1 ${liblist})
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
HEADERS += \
|
||||
$$PWD/MLVL.hpp \
|
||||
$$PWD/PAK.hpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/PAK.cpp
|
|
@ -8,11 +8,11 @@ namespace DNAMP1
|
|||
struct MLVL : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
DNAFourCC magic;
|
||||
HECL::FourCC magic;
|
||||
Value<atUint32> version;
|
||||
DNAUniqueID32 worldNameId;
|
||||
DNAUniqueID32 saveWorldId;
|
||||
DNAUniqueID32 worldSkyboxId;
|
||||
UniqueID32 worldNameId;
|
||||
UniqueID32 saveWorldId;
|
||||
UniqueID32 worldSkyboxId;
|
||||
|
||||
Value<atUint32> memRelayLinkCount;
|
||||
struct MemRelayLink : BigDNA
|
||||
|
@ -30,10 +30,10 @@ struct MLVL : BigDNA
|
|||
struct Area : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
DNAUniqueID32 areaNameId;
|
||||
UniqueID32 areaNameId;
|
||||
Value<atVec4f> transformMtx[3];
|
||||
Value<atVec3f> aabb[2];
|
||||
DNAUniqueID32 areaMREAId;
|
||||
UniqueID32 areaMREAId;
|
||||
Value<atUint32> areaId;
|
||||
|
||||
Value<atUint32> attachedAreaCount;
|
||||
|
@ -44,8 +44,8 @@ struct MLVL : BigDNA
|
|||
struct Dependency : BigDNA
|
||||
{
|
||||
DECL_DNA
|
||||
DNAUniqueID32 id;
|
||||
DNAFourCC type;
|
||||
UniqueID32 id;
|
||||
HECL::FourCC type;
|
||||
};
|
||||
Vector<Dependency, DNA_COUNT(depCount)> deps;
|
||||
|
||||
|
@ -63,7 +63,7 @@ struct MLVL : BigDNA
|
|||
Value<atUint32> areaIdx;
|
||||
Value<atUint32> dockIdx;
|
||||
};
|
||||
DNAFourCC type;
|
||||
HECL::FourCC type;
|
||||
Vector<Endpoint, DNA_COUNT(endpointCount)> endpoints;
|
||||
|
||||
Value<atUint32> planeVertCount;
|
||||
|
@ -72,7 +72,7 @@ struct MLVL : BigDNA
|
|||
Vector<Dock, DNA_COUNT(dockCount)> docks;
|
||||
};
|
||||
|
||||
DNAUniqueID32 worldMap;
|
||||
UniqueID32 worldMap;
|
||||
Value<atUint8> unknown2;
|
||||
Value<atUint32> unknown3;
|
||||
|
||||
|
@ -81,7 +81,7 @@ struct MLVL : BigDNA
|
|||
{
|
||||
DECL_DNA
|
||||
Value<atUint32> unknown;
|
||||
DNAUniqueID32 agscId;
|
||||
UniqueID32 agscId;
|
||||
};
|
||||
Vector<AudioGroup, DNA_COUNT(audioGroupCount)> audioGroups;
|
||||
String<-1> unkString;
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
HEADERS += \
|
||||
$$PWD/PAK.hpp
|
|
@ -1,2 +1,5 @@
|
|||
add_library(DNAMP3
|
||||
PAK.cpp)
|
||||
list(APPEND types
|
||||
PAK)
|
||||
|
||||
make_dnalist(liblist ${types})
|
||||
add_library(DNAMP3 ${liblist})
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
HEADERS += \
|
||||
$$PWD/PAK.hpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/PAK.cpp
|
|
@ -1,26 +0,0 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += staticlib c++11
|
||||
TARGET = RetroDataSpec
|
||||
CONFIG -= Qt
|
||||
QT =
|
||||
|
||||
# Get hecl's headers (when built as submodule in hecl's extern)
|
||||
INCLUDEPATH += ../../../include \
|
||||
../../Athena/include \
|
||||
../../LogVisor/include \
|
||||
../NODLib/include
|
||||
|
||||
include(DNACommon/DNACommon.pri)
|
||||
include(DNAMP1/DNAMP1.pri)
|
||||
include(DNAMP2/DNAMP2.pri)
|
||||
include(DNAMP3/DNAMP3.pri)
|
||||
|
||||
HEADERS += \
|
||||
Logging.hpp \
|
||||
SpecBase.hpp
|
||||
|
||||
SOURCES += \
|
||||
SpecMP1.cpp \
|
||||
SpecMP2.cpp \
|
||||
SpecMP3.cpp \
|
||||
SpecBase.cpp
|
2
NODLib
2
NODLib
|
@ -1 +1 @@
|
|||
Subproject commit fea6b496a6d64c1b75b6b48af00e4e8c2bd8cdfe
|
||||
Subproject commit 6b5cf5b1b56fdd3bff070de2b47f8cfc115f05f5
|
|
@ -1,6 +0,0 @@
|
|||
TEMPLATE = subdirs
|
||||
CONFIG -= Qt
|
||||
QT =
|
||||
|
||||
SUBDIRS += DataSpec NODLib/lib
|
||||
|
Loading…
Reference in New Issue