mirror of https://github.com/AxioDL/metaforce.git
initial project stubs
This commit is contained in:
commit
230913d401
|
@ -0,0 +1,4 @@
|
|||
#ifndef CDRIVER_HPP
|
||||
#define CDRIVER_HPP
|
||||
|
||||
#endif // CDRIVER_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef COPTIONSPARSER_HPP
|
||||
#define COPTIONSPARSER_HPP
|
||||
|
||||
#endif // COPTIONSPARSER_HPP
|
|
@ -0,0 +1,4 @@
|
|||
SOURCES += \
|
||||
$$PWD/CDriver.cpp \
|
||||
$$PWD/COptionsParser.cpp \
|
||||
$$PWD/main.cpp
|
|
@ -0,0 +1,17 @@
|
|||
TARGET = hecl
|
||||
CONFIG -= Qt
|
||||
QT =
|
||||
LIBS -= -lQtGui -lQtCore
|
||||
unix:QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++
|
||||
unix:!macx:LIBS += -std=c++11 -stdlib=libc++ -lc++abi
|
||||
|
||||
LIBPATH += $$OUT_PWD/../lib
|
||||
LIBS += -lhecl
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/main.cpp
|
||||
|
||||
HEADERS += \
|
||||
COptionsParser.hpp \
|
||||
CDriver.hpp
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
printf("Hello World!\n");
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
# Enable building with LLVM dependencies
|
||||
exists ($$PWD/llvm) {
|
||||
LLVMROOT = $$PWD/llvm
|
||||
}
|
||||
!isEmpty(LLVMROOT) {
|
||||
message("Configuring for LLVM backends using '$$LLVMROOT'")
|
||||
DEFINES += HECL_LLVM=1
|
||||
}
|
||||
|
||||
HEADERS += \
|
||||
include/HECLBackend.hpp \
|
||||
include/HECLDatabase.hpp \
|
||||
include/HECLFrontend.hpp \
|
||||
include/HECLRuntime.hpp
|
||||
|
||||
SUBDIRS += \
|
||||
lib \
|
||||
driver
|
||||
|
||||
driver.depends = lib
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef HECLBACKEND_HPP
|
||||
#define HECLBACKEND_HPP
|
||||
|
||||
#endif // HECLBACKEND_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef HECLDATABASE_HPP
|
||||
#define HECLDATABASE_HPP
|
||||
|
||||
#endif // HECLDATABASE_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef HECLFRONTEND_HPP
|
||||
#define HECLFRONTEND_HPP
|
||||
|
||||
#endif // HECLFRONTEND_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef HECLRUNTIME_HPP
|
||||
#define HECLRUNTIME_HPP
|
||||
|
||||
#endif // HECLRUNTIME_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IBACKENDFRAGEMITTER_HPP
|
||||
#define IBACKENDFRAGEMITTER_HPP
|
||||
|
||||
#endif // IBACKENDFRAGEMITTER_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IBACKENDOBJECT_HPP
|
||||
#define IBACKENDOBJECT_HPP
|
||||
|
||||
#endif // IBACKENDOBJECT_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IBACKENDSPEC_HPP
|
||||
#define IBACKENDSPEC_HPP
|
||||
|
||||
#endif // IBACKENDSPEC_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IBACKENDVERTEMITTER_HPP
|
||||
#define IBACKENDVERTEMITTER_HPP
|
||||
|
||||
#endif // IBACKENDVERTEMITTER_HPP
|
|
@ -0,0 +1,33 @@
|
|||
HEADERS += \
|
||||
$$PWD/IBackendFragEmitter.hpp \
|
||||
$$PWD/IBackendObject.hpp \
|
||||
$$PWD/IBackendSpec.hpp \
|
||||
$$PWD/IBackendVertEmitter.hpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/GLSL/CGLSLFragEmitter.cpp \
|
||||
$$PWD/GLSL/CGLSLObject.cpp \
|
||||
$$PWD/GLSL/CGLSLSpec.cpp \
|
||||
$$PWD/GLSL/CGLSLVertEmitter.cpp \
|
||||
$$PWD/GX/CGXFragEmitter.cpp \
|
||||
$$PWD/GX/CGXObject.cpp \
|
||||
$$PWD/GX/CGXSpec.cpp \
|
||||
$$PWD/GX/CGXVertEmitter.cpp \
|
||||
$$PWD/HLSL/CHLSLFragEmitter.cpp \
|
||||
$$PWD/HLSL/CHLSLObject.cpp \
|
||||
$$PWD/HLSL/CHLSLSpec.cpp \
|
||||
$$PWD/HLSL/CHLSLVertEmitter.cpp \
|
||||
$$PWD/VSPIR/CVSPIRFragEmitter.cpp \
|
||||
$$PWD/VSPIR/CVSPIRObject.cpp \
|
||||
$$PWD/VSPIR/CVSPIRSpec.cpp \
|
||||
$$PWD/VSPIR/CVSPIRVertEmitter.cpp \
|
||||
$$PWD/HECLBackend.cpp
|
||||
|
||||
!isEmpty(LLVMROOT) {
|
||||
message("Added GX2 Backend")
|
||||
SOURCES += \
|
||||
$$PWD/GX2LLVM/CGX2LLVMFragEmitter.cpp \
|
||||
$$PWD/GX2LLVM/CGX2LLVMObject.cpp \
|
||||
$$PWD/GX2LLVM/CGX2LLVMSpec.cpp \
|
||||
$$PWD/GX2LLVM/CGX2LLVMVertEmitter.cpp
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IOBJECTSTORE_HPP
|
||||
#define IOBJECTSTORE_HPP
|
||||
|
||||
#endif // IOBJECTSTORE_HPP
|
|
@ -0,0 +1,8 @@
|
|||
HEADERS += \
|
||||
$$PWD/IObjectStore.hpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/CDataObject.cpp \
|
||||
$$PWD/CObjectStoreDir.cpp \
|
||||
$$PWD/CObjectStorePacked.cpp \
|
||||
$$PWD/HECLDatabase.cpp
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRADD_HPP
|
||||
#define CEXPRADD_HPP
|
||||
|
||||
#endif // CEXPRADD_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRBASE_HPP
|
||||
#define CEXPRBASE_HPP
|
||||
|
||||
#endif // CEXPRBASE_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRCALL_HPP
|
||||
#define CEXPRCALL_HPP
|
||||
|
||||
#endif // CEXPRCALL_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRGROUP_HPP
|
||||
#define CEXPRGROUP_HPP
|
||||
|
||||
#endif // CEXPRGROUP_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRLIGHTING_HPP
|
||||
#define CEXPRLIGHTING_HPP
|
||||
|
||||
#endif // CEXPRLIGHTING_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRMUL_HPP
|
||||
#define CEXPRMUL_HPP
|
||||
|
||||
#endif // CEXPRMUL_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRROOT_HPP
|
||||
#define CEXPRROOT_HPP
|
||||
|
||||
#endif // CEXPRROOT_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRSUB_HPP
|
||||
#define CEXPRSUB_HPP
|
||||
|
||||
#endif // CEXPRSUB_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRTEXTURE_HPP
|
||||
#define CEXPRTEXTURE_HPP
|
||||
|
||||
#endif // CEXPRTEXTURE_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef CEXPRTEXTUREGATHER_HPP
|
||||
#define CEXPRTEXTUREGATHER_HPP
|
||||
|
||||
#endif // CEXPRTEXTUREGATHER_HPP
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef EXPR_HPP
|
||||
#define EXPR_HPP
|
||||
|
||||
#include "CExprBase.hpp"
|
||||
#include "CExprRoot.hpp"
|
||||
#include "CExprCall.hpp"
|
||||
#include "CExprGroup.hpp"
|
||||
#include "CExprMul.hpp"
|
||||
#include "CExprAdd.hpp"
|
||||
#include "CExprSub.hpp"
|
||||
#include "CExprTexture.hpp"
|
||||
#include "CExprTextureGather.hpp"
|
||||
#include "CExprLighting.hpp"
|
||||
|
||||
#endif // EXPR_HPP
|
|
@ -0,0 +1,16 @@
|
|||
HEADERS += \
|
||||
$$PWD/expr/CExprAdd.hpp \
|
||||
$$PWD/expr/CExprBase.hpp \
|
||||
$$PWD/expr/CExprCall.hpp \
|
||||
$$PWD/expr/CExprGroup.hpp \
|
||||
$$PWD/expr/CExprLighting.hpp \
|
||||
$$PWD/expr/CExprMul.hpp \
|
||||
$$PWD/expr/CExprRoot.hpp \
|
||||
$$PWD/expr/CExprSub.hpp \
|
||||
$$PWD/expr/CExprTexture.hpp \
|
||||
$$PWD/expr/CExprTextureGather.hpp \
|
||||
$$PWD/expr/expr.hpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/CHECLIR.cpp \
|
||||
$$PWD/CHECLLexer.cpp
|
|
@ -0,0 +1,13 @@
|
|||
TEMPLATE = lib
|
||||
CONFIG += staticlib
|
||||
TARGET = hecl
|
||||
CONFIG -= Qt
|
||||
QT =
|
||||
unix:QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
include (frontend/frontend.pri)
|
||||
include (backend/backend.pri)
|
||||
include (database/database.pri)
|
||||
include (runtime/runtime.pri)
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IRUNTIMECACHE_HPP
|
||||
#define IRUNTIMECACHE_HPP
|
||||
|
||||
#endif // IRUNTIMECACHE_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IRUNTIMEOBJECT_HPP
|
||||
#define IRUNTIMEOBJECT_HPP
|
||||
|
||||
#endif // IRUNTIMEOBJECT_HPP
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef IRUNTIMESPEC_HPP
|
||||
#define IRUNTIMESPEC_HPP
|
||||
|
||||
#endif // IRUNTIMESPEC_HPP
|
|
@ -0,0 +1,25 @@
|
|||
HEADERS += \
|
||||
$$PWD/IRuntimeCache.hpp \
|
||||
$$PWD/IRuntimeObject.hpp \
|
||||
$$PWD/IRuntimeSpec.hpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/D3D11/CD3D11RuntimeCache.cpp \
|
||||
$$PWD/D3D11/CD3D11RuntimeObject.cpp \
|
||||
$$PWD/D3D11/CD3D11RuntimeSpec.cpp \
|
||||
$$PWD/GX/CGXRuntimeCache.cpp \
|
||||
$$PWD/GX/CGXRuntimeObject.cpp \
|
||||
$$PWD/GX/CGXRuntimeSpec.cpp \
|
||||
$$PWD/GX2/CGX2RuntimeCache.cpp \
|
||||
$$PWD/GX2/CGX2RuntimeObject.cpp \
|
||||
$$PWD/GX2/CGX2RuntimeSpec.cpp \
|
||||
$$PWD/Metal/CMetalRuntimeCache.cpp \
|
||||
$$PWD/Metal/CMetalRuntimeObject.cpp \
|
||||
$$PWD/Metal/CMetalRuntimeSpec.cpp \
|
||||
$$PWD/OGL3/COGL3RuntimeCache.cpp \
|
||||
$$PWD/OGL3/COGL3RuntimeObject.cpp \
|
||||
$$PWD/OGL3/COGL3RuntimeSpec.cpp \
|
||||
$$PWD/Vulkan/CMetalRuntimeCache.cpp \
|
||||
$$PWD/Vulkan/CMetalRuntimeObject.cpp \
|
||||
$$PWD/Vulkan/CMetalRuntimeSpec.cpp \
|
||||
$$PWD/HECLRuntime.cpp
|
Loading…
Reference in New Issue