Skip to content

Commit

Permalink
koga enhancements: defines, *.cxx and *.hpp as sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1sbg committed Oct 19, 2024
1 parent d45dc99 commit 9237a10
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/koga/configure.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,10 @@ the function to the overall configuration."
(format nil "~{-I~a~^ ~}" (mapcar (lambda (source)
(normalize-directory (resolve-source source)))
paths)))))
(defun defines (&rest define-strings)
"Add -DXXX=YYY defines to the current configuration."
(append-cflags *configuration*
(format nil "~{-D~a~^ ~}" define-strings)))

(defun systems (&rest rest)
(loop for system in rest
Expand Down
1 change: 1 addition & 0 deletions src/koga/packages.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#:framework
#:help
#:includes
#:defines
#:library
#:make-source
#:make-source-output
Expand Down
4 changes: 2 additions & 2 deletions src/koga/setup.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ accumulated plists from each PRINT-VARIANT-TARGET-SOURCE is passed as keys."))
(eql name (getf source :name))))
sources)
if source
do (message :info "Found repo definition for extension ~a. Using that to location extension directory." name)
do (message :info "Found repo definition for extension ~a. Using that to locate extension directory." name)
(recurse (getf source :directory))
else
do (message :info "Did not find repo definition for extension ~a. Assuming extension is in ~a" name directory)
do (message :info "Did not find repo definition for extension ~a. Assuming extension is in directory \"~a\"." name directory)
(recurse directory))
(loop for script = (pop (scripts *configuration*))
for *script-path* = (when script (uiop:pathname-directory-pathname script))
Expand Down
2 changes: 2 additions & 0 deletions src/koga/source.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
(defparameter *source-classes*
'((#P"*.c" . c-source)
(#P"*.cc" . cc-source)
(#P"*.cxx" . cc-source)
(#P"*.h" . h-source)
(#P"*.hpp" . h-source)
(#P"*.lsp" . lisp-source)
(#P"*.lisp" . lisp-source)
(#P"*.ninja" . ninja-source)
Expand Down

0 comments on commit 9237a10

Please sign in to comment.