Difference between revisions of "Common Lisp Creating A New Project"
From copec
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | Template procedure on how to create new Common Lisp project. | + | Template procedure on how to create new Common Lisp project. Totally stolen from: |
* [http://xach.livejournal.com/278047.html?thread=674335 Zach Beane - Making a small Lisp project with quickproject and Quicklisp.] | * [http://xach.livejournal.com/278047.html?thread=674335 Zach Beane - Making a small Lisp project with quickproject and Quicklisp.] | ||
Line 15: | Line 15: | ||
=== Create Project === | === Create Project === | ||
<pre> | <pre> | ||
− | CL-USER> (quickproject:make-project "~/org.unaen.dev.src/lisp/ | + | CL-USER> (quickproject:make-project "~/org.unaen.dev.src/lisp/swatchblade/" |
:depends-on '(vecto hunchentoot)) | :depends-on '(vecto hunchentoot)) | ||
− | " | + | "swatchblade" |
</pre> | </pre> | ||
− | ==== ~/org.unaen.dev.src/lisp/ | + | ==== Default Files Created ==== |
+ | ~/org.unaen.dev.src/lisp/swatchblade/ | ||
* package.lisp | * package.lisp | ||
− | * | + | * swatchblade.lisp |
− | * | + | * swatchblade.asd |
* README.txt | * README.txt | ||
+ | |||
+ | === Edit Stuff === | ||
+ | ==== Hack the planet starting in '''swatchblade.lisp''' ==== | ||
+ | ==== Import symbols under '''package.lisp''' ==== | ||
+ | <pre> | ||
+ | (defpackage #:swatchblade | ||
+ | (:use #:cl) | ||
+ | (:shadowing-import-from #:vecto | ||
+ | #:with-canvas | ||
+ | #:rounded-rectangle | ||
+ | #:set-rgb-fill | ||
+ | #:save-png-stream)) | ||
+ | </pre> | ||
+ | ==== Add libraries under '''swatchblade.asd''' ==== | ||
+ | <pre> | ||
+ | (asdf:defsystem #:swatchblade | ||
+ | :serial t | ||
+ | :depends-on (#:vecto | ||
+ | #:hunchentoot | ||
+ | #:cl-colors) | ||
+ | :components ((:file "package") | ||
+ | (:file "swatchblade"))) | ||
+ | </pre> | ||
+ | |||
+ | === Load Project === | ||
+ | <pre> | ||
+ | CL-USER> (ql:quickload "swatchblade") | ||
+ | </pre> |
Revision as of 12:27, 15 September 2016
Contents
Overview
Template procedure on how to create new Common Lisp project. Totally stolen from:
Project Creation (Steps)
Make Sure Environment is Setup
Install quickproject
CL-USER> (ql:quickload "quickproject")
Create Project
CL-USER> (quickproject:make-project "~/org.unaen.dev.src/lisp/swatchblade/" :depends-on '(vecto hunchentoot)) "swatchblade"
Default Files Created
~/org.unaen.dev.src/lisp/swatchblade/
- package.lisp
- swatchblade.lisp
- swatchblade.asd
- README.txt
Edit Stuff
Hack the planet starting in swatchblade.lisp
Import symbols under package.lisp
(defpackage #:swatchblade (:use #:cl) (:shadowing-import-from #:vecto #:with-canvas #:rounded-rectangle #:set-rgb-fill #:save-png-stream))
Add libraries under swatchblade.asd
(asdf:defsystem #:swatchblade :serial t :depends-on (#:vecto #:hunchentoot #:cl-colors) :components ((:file "package") (:file "swatchblade")))
Load Project
CL-USER> (ql:quickload "swatchblade")