Skip to content

Commit

Permalink
Merge pull request #78 from PipeRift/feature/cpp-binding
Browse files Browse the repository at this point in the history
C/Cpp module generation
  • Loading branch information
muit authored Aug 31, 2022
2 parents 44486c4 + 989f58e commit f32952b
Show file tree
Hide file tree
Showing 33 changed files with 171 additions and 736 deletions.
1 change: 0 additions & 1 deletion Apps/CLI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ set_target_properties (RiftCLIExe PROPERTIES FOLDER Rift/Executables)
target_link_libraries(RiftCLIExe PUBLIC
rift::Rift
rift::Backend::LLVM
rift::Backend::Cpp
rift::View::Graph
CLI11
)
Expand Down
2 changes: 0 additions & 2 deletions Apps/CLI/Src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <AST/Utils/ModuleUtils.h>
#include <Compiler/Compiler.h>
#include <Compiler/Utils/BackendUtils.h>
#include <CppBackend.h>
#include <GraphView.h>
#include <LLVMBackend.h>
#include <Pipe/Core/Profiler.h>
Expand Down Expand Up @@ -64,7 +63,6 @@ int main(int argc, char** argv)
p::Log::Init("Saved/Logs");
TOwnPtr<Rift> rift = MakeOwned<Rift>();
rift->AddPlugin<LLVMBackendPlugin>();
rift->AddPlugin<CPPBackendPlugin>();

rift->AddPlugin<GraphViewPlugin>();

Expand Down
1 change: 0 additions & 1 deletion Apps/Editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ set_target_properties (RiftEditorExe PROPERTIES FOLDER Rift/Executables)
target_link_libraries(RiftEditorExe PUBLIC
rift::Editor
rift::Backend::LLVM
rift::Backend::Cpp
rift::View::Graph
)
pipe_target_define_platform(RiftEditorExe)
Expand Down
2 changes: 0 additions & 2 deletions Apps/Editor/Src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2015-2022 Piperift - All rights reserved

#include <CppBackend.h>
#include <Editor.h>
#include <GraphView.h>
#include <LLVMBackend.h>
Expand All @@ -20,7 +19,6 @@ int RunEditor(StringView projectPath)
p::Log::Init("Saved/Logs");
TOwnPtr<rift::Rift> rift = MakeOwned<rift::Rift>();
rift->AddPlugin<LLVMBackendPlugin>();
rift->AddPlugin<CPPBackendPlugin>();

rift->AddPlugin<GraphViewPlugin>();

Expand Down
4 changes: 1 addition & 3 deletions Examples/Project/TestClass.rf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
],
"components": {
"CNamespace": {
"0": {
"name": "TestClass"
}
"0": "TestClass"
}
}
}
4 changes: 1 addition & 3 deletions Examples/Project/TestStruct.rf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"0": -1
},
"CNamespace": {
"0": {
"name": "TestStruct"
}
"0": "TestStruct"
}
}
}
16 changes: 4 additions & 12 deletions Examples/Project/Welcome.rf
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,10 @@
}
},
"CNamespace": {
"0": {
"name": "Welcome"
},
"1": {
"name": "Print"
},
"10": {
"name": "class"
},
"11": {
"name": "struct"
}
"0": "Welcome",
"1": "Print",
"10": "class",
"11": "struct"
},
"CParent": {
"0": [
Expand Down
22 changes: 0 additions & 22 deletions Libs/Backends/Cpp/CMakeLists.txt

This file was deleted.

36 changes: 0 additions & 36 deletions Libs/Backends/Cpp/Include/CppBackend.h

This file was deleted.

13 changes: 0 additions & 13 deletions Libs/Backends/Cpp/Include/CppBackend/CMakeGen.h

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions Libs/Backends/Cpp/Include/CppBackend/Components/CCppNativeName.h

This file was deleted.

16 changes: 0 additions & 16 deletions Libs/Backends/Cpp/Include/CppBackend/CppGeneration.h

This file was deleted.

128 changes: 0 additions & 128 deletions Libs/Backends/Cpp/Src/CppBackend.cpp

This file was deleted.

Loading

0 comments on commit f32952b

Please sign in to comment.