Skip to content

Commit

Permalink
reorganize egg structure
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmeiners committed Dec 24, 2019
1 parent 99728ab commit 3574d73
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
temp/
*.so
*.o

termbox.build.sh
termbox.import.scm
termbox.install.sh
termbox.link
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# This is not for building the egg, but for pulling
# the latest termbox source in.

termbox.h: temp/
cp temp/src/*.c ./
cp temp/src/*.h ./
cp temp/src/*.inl ./
cp temp/COPYING COPYING.termbox
termbox/: temp/
mkdir -p termbox
cp temp/src/*.c ./termbox/
cp temp/src/*.h ./termbox/
cp temp/src/*.inl ./termbox/
cp temp/COPYING ./termbox/COPYING

temp/:
git clone [email protected]:nsf/termbox.git temp

clean:
rm -rf temp/
rm -f *.c *.h *.inl
rm -f COPYING.termbox
rm -rf temp
rm -rf termbox

.PHONY: clean, all
4 changes: 2 additions & 2 deletions termbox.egg
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
(category ui)
(platform unix)
(components
(extension termbox
(source "termbox.scm"))))
(extension termbox)
(source "termbox.scm")))
12 changes: 9 additions & 3 deletions termbox.scm
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
(import (chicken foreign))
(import srfi-4)
(module termbox
*
(import (chicken foreign))
(import srfi-4))


(foreign-declare "#include \"termbox/termbox.h\"")
(foreign-declare "#include \"termbox/termbox.c\"")
(foreign-declare "#include \"termbox/utf8.c\"")

(foreign-declare "#include \"termbox.h\"")

(define TB_DEFAULT (foreign-value "TB_DEFAULT" unsigned-integer32))
(define TB_BLACK (foreign-value "TB_BLACK" unsigned-integer32))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/test.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(import srfi-4)

(import termbox)

(termbox-init)
Expand Down

0 comments on commit 3574d73

Please sign in to comment.