aboutsummaryrefslogtreecommitdiff
path: root/examples/hello_world
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-09-23 12:22:37 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit5006226e945fc645e6d9b21252c9eee53cc191cc (patch)
tree94371016233562351d70fb3b9ff312c6dacd9bb4 /examples/hello_world
parent8fdc481d78a0426f6dbf235e872c3798ec57251e (diff)
Fix various things, add generated zig header files to global include
Fix compile_commands.json missing build steps. Fix c includes -> zig includes flags. Fix crash when running sibs new/init without defining lang. Add generated zig header files to global include so they can be used from c/c++. Add zig and zig/c (using zig and c in the same project) examples.
Diffstat (limited to 'examples/hello_world')
-rw-r--r--examples/hello_world/.gitignore5
-rw-r--r--examples/hello_world/project.conf6
-rw-r--r--examples/hello_world/src/main.cpp7
-rw-r--r--examples/hello_world/tests/main.cpp7
4 files changed, 0 insertions, 25 deletions
diff --git a/examples/hello_world/.gitignore b/examples/hello_world/.gitignore
deleted file mode 100644
index 636c6b9..0000000
--- a/examples/hello_world/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-# Compiled sibs files
-sibs-build/
-compile_commands.json
-tests/sibs-build/
-tests/compile_commands.json
diff --git a/examples/hello_world/project.conf b/examples/hello_world/project.conf
deleted file mode 100644
index 4c05ce5..0000000
--- a/examples/hello_world/project.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[package]
-name = "hello_world"
-type = "executable"
-version = "0.1.0"
-platforms = ["any"]
-tests = "tests"
diff --git a/examples/hello_world/src/main.cpp b/examples/hello_world/src/main.cpp
deleted file mode 100644
index 28bab08..0000000
--- a/examples/hello_world/src/main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <cstdio>
-
-int main(int argc, char **argv)
-{
- printf("hello, world!\n");
- return 0;
-}
diff --git a/examples/hello_world/tests/main.cpp b/examples/hello_world/tests/main.cpp
deleted file mode 100644
index 28bab08..0000000
--- a/examples/hello_world/tests/main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <cstdio>
-
-int main(int argc, char **argv)
-{
- printf("hello, world!\n");
- return 0;
-}