initial commit

This commit is contained in:
alex committed 2024-08-03 22:13:17 -07:00
commit c079037062
12 files changed
+405

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
add_library(CppBackend STATIC backend.h backend.cpp)
set_target_properties(CppBackend PROPERTIES Swift_MODULE_NAME "CppBackend")
target_compile_options(CppBackend PUBLIC "$<$<COMPILE_LANGUAGE:Swift>:-cxx-interoperability-mode=default>")
+7
View File
@@ -0,0 +1,7 @@
#include "backend.h"
#include <iostream>
void backend_init() {
std::cout << "Hello World" << std::endl;
}
+3
View File
@@ -0,0 +1,3 @@
#pragma once
void backend_init();
+3
View File
@@ -0,0 +1,3 @@
module CppBackend {
header "backend.h"
}