Remove absolute paths for header files and update Build instructions

master
Alec Murphy 1 week ago
parent edcb1ffe64
commit 05b9a610fd
  1. 2
      README.md
  2. 2
      dc.jakt
  3. 2
      input.jakt
  4. 2
      os.jakt
  5. 2
      time.jakt

@ -9,7 +9,7 @@ g++ -c -o libtemple/libtemple.o libtemple/libtemple.cpp; gcc -shared -o build/li
jakt -S -o program -R <runtime_path> -B build main.jakt
clang++-14 -O3 -I <runtime_path> -fcolor-diagnostics -std=c++20 -fno-exceptions -Wno-user-defined-literals -Wno-deprecated-declarations -Wno-parentheses-equality -Wno-unqualified-std-cast-call -Wno-unknown-warning-option -mno-red-zone -mno-sse -o build/program build/program.cpp build/libtemple.so
clang++-14 -O3 -I <runtime_path> -I <project_path>/include -fcolor-diagnostics -std=c++20 -fno-exceptions -Wno-user-defined-literals -Wno-deprecated-declarations -Wno-parentheses-equality -Wno-unqualified-std-cast-call -Wno-unknown-warning-option -mno-red-zone -mno-sse -o build/program build/program.cpp build/libtemple.so
```
# usage

@ -1,4 +1,4 @@
import extern c "/home/alec/repos/unholy-jakt/include/dc.h" {
import extern c "dc.h" {
extern function dc_width(anon context: usize) -> i64
extern function dc_width_internal(anon context: usize) -> i64
extern function dc_height(anon context: usize) -> i64

@ -1,4 +1,4 @@
import extern c "/home/alec/repos/unholy-jakt/include/input.h" {
import extern c "input.h" {
extern function input_key_down(scancode: u8) -> bool
extern function input_mouse_left() -> bool
extern function input_mouse_right() -> bool

@ -1,4 +1,4 @@
import extern c "/home/alec/repos/unholy-jakt/include/os.h" {
import extern c "os.h" {
extern function os_blink(frequency: raw c_char) -> bool
extern function os_exit()
extern function os_pc_speaker(frequency: raw c_char)

@ -1,4 +1,4 @@
import extern c "/home/alec/repos/unholy-jakt/include/time.h" {
import extern c "time.h" {
extern function time_jiffies() -> i64
extern function time_sleep(anon duration: i64)
}

Loading…
Cancel
Save