From 07e96320de32c04b0de038ab8b1ece5724506235 Mon Sep 17 00:00:00 2001 From: andromeda Date: Mon, 19 Oct 2026 01:49:43 -0400 Subject: fix metadata --- lib/uefi.c3l/manifest.json | 5 +++++ main.c3 | 8 ++++++++ project.json | 35 ++++------------------------------- scripts/copy-uefi-c3l.sh | 8 ++++++++ src/main.c3 | 8 -------- 5 files changed, 25 insertions(+), 39 deletions(-) create mode 100644 main.c3 create mode 100755 scripts/copy-uefi-c3l.sh delete mode 100644 src/main.c3 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/main.c3 b/main.c3 new file mode 100644 index 0000000..c857210 --- /dev/null +++ b/main.c3 @@ -0,0 +1,8 @@ +module c3os; +import std::io; + +fn int main(String[] args) +{ + io::printn("Hello, World!"); + return 0; +} 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 " ], - // Version using semantic versioning. + "dependencies": [ "uefi" ], + "authors": [ "Andromeda " ], "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 diff --git a/src/main.c3 b/src/main.c3 deleted file mode 100644 index c857210..0000000 --- a/src/main.c3 +++ /dev/null @@ -1,8 +0,0 @@ -module c3os; -import std::io; - -fn int main(String[] args) -{ - io::printn("Hello, World!"); - return 0; -} -- cgit v1.3.1