summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/uefi.c3l/manifest.json5
-rw-r--r--main.c3 (renamed from src/main.c3)0
-rw-r--r--project.json35
-rwxr-xr-xscripts/copy-uefi-c3l.sh8
4 files changed, 17 insertions, 31 deletions
diff --git a/lib/uefi.c3l/manifest.json b/lib/uefi.c3l/manifest.json
index 40fe81e..1f5f60b 100644
--- a/lib/uefi.c3l/manifest.json
+++ b/lib/uefi.c3l/manifest.json
@@ -2,6 +2,11 @@
"provides" : "uefi",
"sources" : [ "src/**" ],
"targets" : {
+ "openbsd-x64" : {
+ "link-args" : [],
+ "dependencies" : [],
+ "linked-libraries" : [],
+ },
"windows-aarch64" : {
// Extra flags to the linker for this target:
"link-args" : [],
diff --git a/src/main.c3 b/main.c3
index c857210..c857210 100644
--- a/src/main.c3
+++ b/main.c3
diff --git a/project.json b/project.json
index 8c76722..50523aa 100644
--- a/project.json
+++ b/project.json
@@ -1,45 +1,18 @@
{
- // Language version of C3.
"langrev": "1",
- // Warnings used for all targets.
"warnings": [ "no-unused" ],
- // Directories where C3 library files may be found.
"dependency-search-paths": [ "lib" ],
- // Libraries to use for all targets.
- "dependencies": [ ],
- // Authors, optionally with email.
- "authors": [ "John Doe <john.doe@example.com>" ],
- // Version using semantic versioning.
+ "dependencies": [ "uefi" ],
+ "authors": [ "Andromeda <andromeda@galaxious.de>" ],
"version": "0.1.0",
- // Sources compiled for all targets.
- "sources": [ "src/**" ],
- // Test sources compiled for all targets.
- "test-sources": [ "test/**" ],
- // C sources if the project also compiles C sources
- // relative to the project file.
- // "c-sources": [ "csource/**" ],
- // Include directories for C sources relative to the project file.
- // "c-include-dirs": [ "csource/include" ],
- // Build location, relative to project file.
+ "sources": [ "**" ],
"build-dir": "build",
- // Output location, relative to project file.
"output": "build",
- // Architecture and OS target.
- // You can use 'c3c --list-targets' to list all valid targets.
- // "target": "windows-x64",
- // Targets.
"targets": {
"c3os": {
- // Executable or library.
"type": "executable",
- // Additional libraries, sources
- // and overrides of global settings here.
},
},
- // Global settings.
- // CPU name, used for optimizations in the LLVM backend.
"cpu": "generic",
- // Optimization: "O0", "O1", "O2", "O3", "O4", "O5", "Os", "Oz".
"opt": "O0"
- // See resources/examples/project_all_settings.json and 'c3c --list-project-properties' to see more properties.
-} \ No newline at end of file
+}
diff --git a/scripts/copy-uefi-c3l.sh b/scripts/copy-uefi-c3l.sh
new file mode 100755
index 0000000..ddb8f11
--- /dev/null
+++ b/scripts/copy-uefi-c3l.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+rm -r ./lib/uefi.c3l
+cp -r ~/pp/c3libs/uefi.c3l ./lib/
+rm -rf ./lib/uefi.c3l/.git/
+rm ./lib/uefi.c3l/.gitignore
+set +x