TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Mark on September 21, 2005, 01:40:05 PM

Title: Question 31 goes here
Post by: Mark on September 21, 2005, 01:40:05 PM
Quote
How to compile a list of lisp files into a single fas file?
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 01:52:51 PM
Add files via the 'LISP files to include' dialogue ...

:)
Title: Re: Question 31 goes here
Post by: Keith™ on September 21, 2005, 01:56:12 PM
Ok .. my response would be why? ... but just in case ... two methods I can use to do just such a thing ...

Combine the various lisp files into one single file then compile or add the other lisp files as resources to the main lisp in the fas ...
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 01:57:32 PM
Yep, if you go that route you can command line compile via (vlisp-compile ...).

:)
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 01:58:57 PM
Add files via the 'LISP files to include' dialogue ...

:)

Nope, that would produce various fas - we are looking for a way to get a single fas file and add any lisp file from any location, including path or part of the support paths....
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 02:00:58 PM
Ok .. my response would be why? ... but just in case ... two methods I can use to do just such a thing ...

Combine the various lisp files into one single file then compile or add the other lisp files as resources to the main lisp in the fas ...

 :roll:

It is just a question on what to use something to produce a single fas.... as we can package into a vlx extension....
Title: Re: Question 31 goes here
Post by: Keith™ on September 21, 2005, 02:05:47 PM
Well, considering that FAS is considerably less secure than VLX that is why I stated my comment in that manner.

I prefer breaking up my functions into multiple FAS files (as many as I can) then compile the multiple FAS files into a VLX, seperate namespace and optimized.
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 02:08:35 PM
I'm with Keith, I never use fas files. Enlighten for amusement please.

:)
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 02:09:28 PM
Never mind.

:)
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 02:19:58 PM
And what is the function usage for that?

Title: Re: Question 31 goes here
Post by: Kerry on September 21, 2005, 05:00:27 PM
(vlisp-compile-list 'st
                    (list "file-a" "file-b" "file-c")
                    "c:\\VL-Compiled\\testCompile.fas"
)
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 05:10:27 PM
(vlisp-compile-list 'st
                    (list "file-a" "file-b" "file-c")
                    "c:\\VL-Compiled\\testCompile.fas"
)

 :kewl:  yes....

Here are some info about others vlisp-xxx functions:

Code: [Select]
;; compile a list of lsp files into a single fas file
;; files do not required the .lsp extension or the path
;; as long they are inside of a support folder.
(vlisp-compile-list
  'st
  (list
    "dtt-general"
    "dtt-inifile"
    "odcl_GPoly")
  "c:\\GPoly.fas")

;; find a vlisp project
(vlisp-find-project "gpoly.prj")
;; "C:/Documents and Settings/Jose Rodriguez/Desktop/ui_gpoly/gpoly.prj"

;; make a lsp file into fas
;; same as function "vlisp-compile"
(vlisp-make-file-fas 'st "dtt-general")

;; make all lsp files into fas from a vlisp project
(vlisp-make-project-fas "gpoly.prj")

;; return a list of all fas files with path
;; made from a vlisp project
(vlisp-project-fas-list "gpoly.prj")
;;;("C:/Documents and Settings/Jose Rodriguez/Desktop/ui_gpoly/dtt-general.fas"
;;;  "C:/Documents and Settings/Jose Rodriguez/Desktop/ui_gpoly/dtt-inifile.fas"
;;;  "C:/Documents and Settings/Jose Rodriguez/Desktop/ui_gpoly/odcl_GPoly.fas")
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 06:00:30 PM
Good stuff, thanks for sharing Mr. Esquivel.

(http://www.theswamp.org/screens/mp/thumbsup.gif)
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 08:24:23 PM
Question: Who is Jose Rodriguez? Alter Ego?
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 08:37:53 PM
Good stuff, thanks for sharing Mr. Esquivel.

(http://www.theswamp.org/screens/mp/thumbsup.gif)

no problema....

Mr? Hey I am just 21..... hehe
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 08:39:58 PM
Question: Who is Jose Rodriguez? Alter Ego?

I did the test on one of our office computers.

:-)
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 08:40:37 PM
Mr? Hey I am just 21..... hehe

21? Say what? Metric? Hex?
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 08:41:00 PM
Question: Who is Jose Rodriguez? Alter Ego?

I did the test on one of our office computers.

:-)

R i g h t .
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 08:46:42 PM
21? Say what? Metric? Hex?

He he.....
Title: Re: Question 31 goes here
Post by: MP on September 21, 2005, 08:49:11 PM
LE = Liar Extraordinaire.

/kidding

:lmao:
Title: Re: Question 31 goes here
Post by: LE on September 21, 2005, 09:00:03 PM
 :-D

 :lmao:

 :mrgreen: