initial project stubs

This commit is contained in:
Jack Andersen 2015-05-15 12:39:43 -10:00
commit 230913d401
80 changed files with 256 additions and 0 deletions

4
hecl/driver/CDriver.hpp Normal file
View File

@ -0,0 +1,4 @@
#ifndef CDRIVER_HPP
#define CDRIVER_HPP
#endif // CDRIVER_HPP

View File

@ -0,0 +1,4 @@
#ifndef COPTIONSPARSER_HPP
#define COPTIONSPARSER_HPP
#endif // COPTIONSPARSER_HPP

4
hecl/driver/driver.pri Normal file
View File

@ -0,0 +1,4 @@
SOURCES += \
$$PWD/CDriver.cpp \
$$PWD/COptionsParser.cpp \
$$PWD/main.cpp

17
hecl/driver/driver.pro Normal file
View File

@ -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

7
hecl/driver/main.cpp Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char** argv)
{
printf("Hello World!\n");
return 0;
}

22
hecl/hecl.pro Normal file
View File

@ -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

View File

@ -0,0 +1,4 @@
#ifndef HECLBACKEND_HPP
#define HECLBACKEND_HPP
#endif // HECLBACKEND_HPP

View File

@ -0,0 +1,4 @@
#ifndef HECLDATABASE_HPP
#define HECLDATABASE_HPP
#endif // HECLDATABASE_HPP

View File

@ -0,0 +1,4 @@
#ifndef HECLFRONTEND_HPP
#define HECLFRONTEND_HPP
#endif // HECLFRONTEND_HPP

View File

@ -0,0 +1,4 @@
#ifndef HECLRUNTIME_HPP
#define HECLRUNTIME_HPP
#endif // HECLRUNTIME_HPP

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -0,0 +1,4 @@
#ifndef IBACKENDFRAGEMITTER_HPP
#define IBACKENDFRAGEMITTER_HPP
#endif // IBACKENDFRAGEMITTER_HPP

View File

@ -0,0 +1,4 @@
#ifndef IBACKENDOBJECT_HPP
#define IBACKENDOBJECT_HPP
#endif // IBACKENDOBJECT_HPP

View File

@ -0,0 +1,4 @@
#ifndef IBACKENDSPEC_HPP
#define IBACKENDSPEC_HPP
#endif // IBACKENDSPEC_HPP

View File

@ -0,0 +1,4 @@
#ifndef IBACKENDVERTEMITTER_HPP
#define IBACKENDVERTEMITTER_HPP
#endif // IBACKENDVERTEMITTER_HPP

View File

View File

View File

@ -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
}

View File

View File

View File

View File

View File

@ -0,0 +1,4 @@
#ifndef IOBJECTSTORE_HPP
#define IOBJECTSTORE_HPP
#endif // IOBJECTSTORE_HPP

View File

@ -0,0 +1,8 @@
HEADERS += \
$$PWD/IObjectStore.hpp
SOURCES += \
$$PWD/CDataObject.cpp \
$$PWD/CObjectStoreDir.cpp \
$$PWD/CObjectStorePacked.cpp \
$$PWD/HECLDatabase.cpp

View File

View File

View File

@ -0,0 +1,4 @@
#ifndef CEXPRADD_HPP
#define CEXPRADD_HPP
#endif // CEXPRADD_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRBASE_HPP
#define CEXPRBASE_HPP
#endif // CEXPRBASE_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRCALL_HPP
#define CEXPRCALL_HPP
#endif // CEXPRCALL_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRGROUP_HPP
#define CEXPRGROUP_HPP
#endif // CEXPRGROUP_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRLIGHTING_HPP
#define CEXPRLIGHTING_HPP
#endif // CEXPRLIGHTING_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRMUL_HPP
#define CEXPRMUL_HPP
#endif // CEXPRMUL_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRROOT_HPP
#define CEXPRROOT_HPP
#endif // CEXPRROOT_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRSUB_HPP
#define CEXPRSUB_HPP
#endif // CEXPRSUB_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRTEXTURE_HPP
#define CEXPRTEXTURE_HPP
#endif // CEXPRTEXTURE_HPP

View File

@ -0,0 +1,4 @@
#ifndef CEXPRTEXTUREGATHER_HPP
#define CEXPRTEXTUREGATHER_HPP
#endif // CEXPRTEXTUREGATHER_HPP

View File

@ -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

View File

@ -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

13
hecl/lib/lib.pro Normal file
View File

@ -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)

View File

View File

View File

View File

View File

View File

@ -0,0 +1,4 @@
#ifndef IRUNTIMECACHE_HPP
#define IRUNTIMECACHE_HPP
#endif // IRUNTIMECACHE_HPP

View File

@ -0,0 +1,4 @@
#ifndef IRUNTIMEOBJECT_HPP
#define IRUNTIMEOBJECT_HPP
#endif // IRUNTIMEOBJECT_HPP

View File

@ -0,0 +1,4 @@
#ifndef IRUNTIMESPEC_HPP
#define IRUNTIMESPEC_HPP
#endif // IRUNTIMESPEC_HPP

View File

@ -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