Buildr-as3 doesn't support all the different options to link a library yet. (See Simon's list:
http://www.newtriks.com/?p=802)
What is supported now is the library-path option for swc-files or directories containing swc-files:
compile.with "/path/to/file.swc" or compile.with "/path/containing/swcs/"
Adding additional source-directories works like this:
compile.from "path/to/src"
I have feature requests from Eric-Paul(@epologee) and Rasheed(@squeedee) to support the external-library option to prevent library-swcs being compiled into the target.
Not much of a hassle, but I am just wondering about what would be the best way to provide this in the API and keeping it consistent with the buildr project.
For example: In a Java project, compile.with "something.jar" will never merge that jar into the target and is therefore the opposite of what buildr-as3 is doing.
So what would you think about having something like the following:
compile.with "my.swc" will use external-library-path
compile.include "my.swc" will use include-libraries
compile.library "my.swc" will use library-path
The naming is probably not optimal.
Another option would be doing it with the help of hashes and stick with one function named "with":
compile.with :external => "my.swc"
compile.with :include => "my.swc"
compile.with :library => "my.swc"
compile.with "my.swc" <- this could fallback to one we decide to be the default.
Let me know what you think of it!
A second