$(mkinstalldirs) $(DESTDIR)$(AUXDIR)
$(INSTALL_DATA) $(top_srcdir)/etc/optiondb.scm $(DESTDIR)$(AUXDIR)/.
$(INSTALL_DATA) lib/*.com $(DESTDIR)$(AUXDIR)/.
- if [ -e lib/conses.png ]; then \
- $(INSTALL_DATA) lib/conses.png $(DESTDIR)$(AUXDIR)/.; fi
.PHONY: all all-native all-liarc all-svm macosx-app
.PHONY: compile-microcode build-bands
(if entry (cdr entry) '())))
(for-each (lambda (file.deps)
- (if (not (for-all? string? file.deps))
+ (if (not (for-all? file.deps string?))
(error "Bogus dependency:" file.deps)))
dependencies)
(initializations '())
(finalizations '())
(exports '())
- (imports '())
- (depends-on '()))
+ (imports '()))
(define-structure (pmodel (conc-name pmodel/))
(root-package #f read-only #t)
(children '())
(bindings (make-rb-tree eq? symbol<?) read-only #t)
(references (make-rb-tree eq? symbol<?) read-only #t)
- (links '())
- (depends-on '()))
+ (links '()))
(define-integrable (package/n-files package)
(length (package/files package)))
package
(append! (package-description/finalizations package)
(list finalization))))))
- ((DEPENDS-ON)
- (if (not (check-list (cdr option) string?))
- (error "Illegal depends-on" (cdr option)))
- (set-package-description/depends-on!
- package
- (append! (package-description/depends-on package)
- (map parse-filename (cdr option)))))
(else
(warn "Unexpected option:" option))))
options))
(append-map! (lambda (file-case)
(append-map cdr (cdr file-case)))
file-cases))))
- (set-package/depends-on!
- package
- (append! (package/depends-on package)
- (list-copy (package-description/depends-on description))))
(for-each (lambda (export)
(let ((destination (get-package (car export) #t)))
(for-each (lambda (names)
TARGET_DIR = $(AUXDIR)/gtk
-build: compile
- if test `echo "(pp microcode-id/compiled-code-type)" \
- | ../microcode/scheme --library ../lib --batch-mode` = "c"; \
- then $(MAKE) compile-liarc-bundle; fi
-
-compile: ../lib/gtk-shim.so ../lib/gtk-types.bin ../lib/gtk-const.bin \
+build: ../lib/gtk-shim.so ../lib/gtk-types.bin ../lib/gtk-const.bin \
../lib/conses.png swat-pole-zero.scm
cd ../ && echo '(load "etc/compile.scm")(compile-ffi "gtk")' \
| microcode/scheme --library lib --batch-mode
$(INSTALL_DATA) conses.png $@
swat-pole-zero.scm:
- ln -sf ../swat/scheme/other/pole-zero.scm swat-pole-zero.scm
+ $(LN_S) ../swat/scheme/other/pole-zero.scm swat-pole-zero.scm
install:
rm -rf $(DESTDIR)$(TARGET_DIR)
$(INSTALL_DATA) gtk-shim.so $(DESTDIR)$(AUXDIR)/.
$(INSTALL_DATA) gtk-types.bin $(DESTDIR)$(AUXDIR)/.
$(INSTALL_DATA) gtk-const.bin $(DESTDIR)$(AUXDIR)/.
+ $(INSTALL_DATA) conses.png $(DESTDIR)$(AUXDIR)/.
if test `echo "(pp microcode-id/compiled-code-type)" \
| ../microcode/scheme --library ../lib --batch-mode` = "c"; \
then $(MAKE) install-liarc-bundle; fi
# Utility to make TAGS file for the gtk build directory.
# The working directory must be the build directory.
-etags gtk-shim.h scmwidget.c.stay --langmap=scheme:+.cdecl \
- `echo *.scm | sed 's/ gtk-const.scm//'` Includes/*.cdecl
+etags gtk-shim.h scmwidget.c.stay `echo *.scm | sed 's/ gtk-const.scm//'` \
+ --language=scheme Includes/*.cdecl
(load-option 'SOS)
(load-option 'FFI))
-(compile-system "gtk-new" (directory-pathname (current-load-pathname)))
\ No newline at end of file
+(compile-system "gtk" (directory-pathname (current-load-pathname))
+ ;; Temporary hack, until the released CREF loosens up
+ ;; and simply warns about new options it does not
+ ;; support, like the depends-on options commented out
+ ;; of gtk.pkg and recreated below.
+ ;;
+ ;; File integrate-external c-include
+ ;; ------------ ----------------------- ---------------
+ 'dependencies
+ '(("gobject" "gtk-const.bin")
+ ("pango" "gtk-const.bin")
+ ("gtk-object" "gtk-const.bin")
+ ("scm-widget" "gtk-const.bin")
+ ("fix-layout" "gtk.ext" "pango.ext" "gtk-const.bin")
+ ("keys" "gtk-const.bin")
+ ("thread" "gtk.ext" "pango.ext" "gtk-const.bin")
+ ("main" "gtk-const.bin")
+ ("gtk-ev" "gtk.ext" "pango.ext" "gtk-const.bin")
+ ("fix-demo" "gtk.ext" "pango.ext")
+ ("swat" "gtk.ext" "pango.ext")))
\ No newline at end of file
(define-package (gtk gobject)
(parent (gtk))
(files "gobject")
+ ;;(depends-on "gtk-const.bin")
(export (gtk)
<gobject> gobject-alien
gobject-live? gobject-unref!
(define-package (gtk pango)
(parent (gtk))
(files "pango")
+ ;;(depends-on "gtk-const.bin")
(export (gtk)
<pango-layout>
pango-layout-get-context
(define-package (gtk gtk-object)
(parent (gtk))
(files "gtk-object")
+ ;;(depends-on "gtk-const.bin")
(export (gtk)
<gtk-object> gtk-object? guarantee-gtk-object
gtk-object-destroyed? gtk-object-destroy
(define-package (gtk widget)
(parent (gtk))
(files "scm-widget")
+ ;;(depends-on "gtk-const.bin")
(import (gtk gtk-object)
set-gtk-object-destroy-callback!)
(export (gtk)
(define-package (gtk fix-layout)
(parent (gtk))
(files "fix-layout")
+ ;;(depends-on "gtk.ext" "pango.ext" "gtk-const.bin")
(import (gtk pango)
make-pango-layout pango-rectangle pangos->pixels pixels->pangos)
(import (gtk gtk-object)
(define-package (gtk keys)
(parent (gtk))
(files "keys")
+ ;;(depends-on "gtk-const.bin")
(export (gtk)
gdk-key-state->char-bits
gdk-keyval->name))
(define-package (gtk thread)
(parent (runtime thread))
(files "thread")
+ ;;(depends-on "gtk.ext" "pango.ext")
(export ()
stop-gtk-thread)
(import (gtk gobject)
(define-package (gtk main)
(parent (gtk))
(files "main")
+ ;;(depends-on "gtk-const.bin")
(import (runtime load)
*unused-command-line*
hook/process-command-line
(define-package (gtk event-viewer)
(parent (gtk))
(files "gtk-ev")
+ ;;(depends-on "gtk.ext" "pango.ext" "gtk-const.bin")
(import (gtk fix-layout)
gdk-rectangle gdk-rectangle-from-rect
make-fix-rect
(define-package (gtk fix-layout demo)
(parent (gtk fix-layout))
(files "fix-demo")
+ ;;(depends-on "gtk.ext" "pango.ext")
(import (gtk fix-layout)
fix-layout-view)
(export ()
(define-package (gtk swat)
(parent (gtk))
(files "swat")
+ ;;(depends-on "gtk.ext" "pango.ext")
(import (gtk gtk-object)
gtk-object-destroy-callback)
(import (gtk fix-layout)
(cons (C-enum "GDK_musicalflat") 'musicalflat)
(cons (C-enum "GDK_malesymbol") 'malesymbol)
(cons (C-enum "GDK_femalesymbol") 'femalesymbol)
+
+#| Kludge: the x86-64 assembler balks at something here... perhaps
+ just the number of arguments?
+
(cons (C-enum "GDK_telephone") 'telephone)
(cons (C-enum "GDK_telephonerecorder") 'telephonerecorder)
(cons (C-enum "GDK_phonographcopyright") 'phonographcopyright)
(cons (C-enum "GDK_hebrew_resh") 'hebrew-resh)
(cons (C-enum "GDK_hebrew_shin") 'hebrew-shin)
(cons (C-enum "GDK_hebrew_taf") 'hebrew-taf)
+
+|#
+
(cons (C-enum "GDK_BackSpace") 'BackSpace)
(cons (C-enum "GDK_Tab") 'Tab)
(cons (C-enum "GDK_Linefeed") 'Linefeed)
(guarantee-integer time 'thread-queue/dequeue-until)
(when-non-empty-before time queue %dequeue!))
-(declare (integrable-operator when-non-empty-before))
+(declare (integrate-operator when-non-empty-before))
(define (when-non-empty-before time queue operation)
(without-interrupts
(lambda ()