Skip to content

Commit f32952b

Browse files
authored
Merge pull request #78 from PipeRift/feature/cpp-binding
C/Cpp module generation
2 parents 44486c4 + 989f58e commit f32952b

33 files changed

Lines changed: 171 additions & 736 deletions

File tree

Apps/CLI/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ set_target_properties (RiftCLIExe PROPERTIES FOLDER Rift/Executables)
1111
target_link_libraries(RiftCLIExe PUBLIC
1212
rift::Rift
1313
rift::Backend::LLVM
14-
rift::Backend::Cpp
1514
rift::View::Graph
1615
CLI11
1716
)

Apps/CLI/Src/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <AST/Utils/ModuleUtils.h>
44
#include <Compiler/Compiler.h>
55
#include <Compiler/Utils/BackendUtils.h>
6-
#include <CppBackend.h>
76
#include <GraphView.h>
87
#include <LLVMBackend.h>
98
#include <Pipe/Core/Profiler.h>
@@ -64,7 +63,6 @@ int main(int argc, char** argv)
6463
p::Log::Init("Saved/Logs");
6564
TOwnPtr<Rift> rift = MakeOwned<Rift>();
6665
rift->AddPlugin<LLVMBackendPlugin>();
67-
rift->AddPlugin<CPPBackendPlugin>();
6866

6967
rift->AddPlugin<GraphViewPlugin>();
7068

Apps/Editor/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ set_target_properties (RiftEditorExe PROPERTIES FOLDER Rift/Executables)
1111
target_link_libraries(RiftEditorExe PUBLIC
1212
rift::Editor
1313
rift::Backend::LLVM
14-
rift::Backend::Cpp
1514
rift::View::Graph
1615
)
1716
pipe_target_define_platform(RiftEditorExe)

Apps/Editor/Src/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright 2015-2022 Piperift - All rights reserved
22

3-
#include <CppBackend.h>
43
#include <Editor.h>
54
#include <GraphView.h>
65
#include <LLVMBackend.h>
@@ -20,7 +19,6 @@ int RunEditor(StringView projectPath)
2019
p::Log::Init("Saved/Logs");
2120
TOwnPtr<rift::Rift> rift = MakeOwned<rift::Rift>();
2221
rift->AddPlugin<LLVMBackendPlugin>();
23-
rift->AddPlugin<CPPBackendPlugin>();
2422

2523
rift->AddPlugin<GraphViewPlugin>();
2624

Examples/Project/TestClass.rf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
],
77
"components": {
88
"CNamespace": {
9-
"0": {
10-
"name": "TestClass"
11-
}
9+
"0": "TestClass"
1210
}
1311
}
1412
}

Examples/Project/TestStruct.rf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"0": -1
1010
},
1111
"CNamespace": {
12-
"0": {
13-
"name": "TestStruct"
14-
}
12+
"0": "TestStruct"
1513
}
1614
}
1715
}

Examples/Project/Welcome.rf

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,10 @@
169169
}
170170
},
171171
"CNamespace": {
172-
"0": {
173-
"name": "Welcome"
174-
},
175-
"1": {
176-
"name": "Print"
177-
},
178-
"10": {
179-
"name": "class"
180-
},
181-
"11": {
182-
"name": "struct"
183-
}
172+
"0": "Welcome",
173+
"1": "Print",
174+
"10": "class",
175+
"11": "struct"
184176
},
185177
"CParent": {
186178
"0": [

Libs/Backends/Cpp/CMakeLists.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

Libs/Backends/Cpp/Include/CppBackend.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

Libs/Backends/Cpp/Include/CppBackend/CMakeGen.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)