Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

koga enhancements: defines, *.cxx and *.hpp as sources. #1640

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading