what is the best way to link gem libraries to the project?

12 views
Skip to first unread message

vlad oleynick

unread,
Apr 25, 2012, 9:50:04 AM4/25/12
to project...@googlegroups.com
When I just started with sprouts I used to copy all 3d party libraries to the "lib" folder and added this to rakefile:

t.library_path << "lib/signals/signals.swc"

or 

t.source_path << "lib/robotlegs/src"

It works but I would to know how to link libraries packaged into gems. What am I doing:

  1. in gemscpec: gem "as3signals", ">= 0.7.1"
  2. run "bundle install"
  3. in rakefile: require "as3signals"
  4. in rakefile: library :as3signals
  5. in rakefile: mxmlc "MyApp.swf" => :as3signals do |t|

But if I have multiple libraries packaged into gems (eg asunit4 and as3signals) how could I link them all?

Thanks in advance
Reply all
Reply to author
Forward
0 new messages