4 setup.add_option(:name => "dlib-dir", :type => "path", :optional => false, :description => "Sets the dlib dir")
5 setup.add_option(:name => "yamf-dir", :type => "path", :optional => false, :description => "Sets the yamf dir")
7 setup.find_package(:name => "yamf", :optional => false, :global => true)
9 setup.add_test(:id => "yamfswf", :name => "SWF exporter", :defines => ["YAMF_HAVE_SWFEXPORTER"], :optional => true, :headers => ["yamf/render/swfexporter.h"], :custom => "int main() { YAMF::Render::SwfExporter swf; }" )
11 setup.add_test(:id => "yamfmovie", :name => "Movie exporter", :defines => ["YAMF_HAVE_MOVIEEXPORTER"], :optional => true, :headers => ["yamf/render/movieexporter.h"], :custom => "int main() { YAMF::Render::MovieExporter g; }" )
15 setup.generate_pkgconfig(:package_name => "dash", :name => "Dash", :description => "", :version => "0.1alpha", :libdir => nil, :includedir => nil, :libs => "-L${libdir} -ldash", :cflags => "-I${includedir}", :requires => ["yamf"] )
16 setup.generate_pkgconfig(:package_name => "dashserver", :name => "Dash Server", :description => "", :version => "0.1alpha", :libdir => nil, :includedir => nil, :libs => "-L${libdir} -ldashserver", :cflags => "-I${includedir}", :requires => ["dash"] )
19 def setup_pkgconfig(pkgconfig, args)
20 pkgconfig.add_search_path(args["dlib-dir"]+"/lib/pkgconfig")
21 pkgconfig.add_search_path(args["yamf-dir"]+"/lib/pkgconfig")
24 def setup_test(id, test, args)
27 def setup_config(cfg, args)
28 cfg.add_define("__STDC_CONSTANT_MACROS")
29 cfg.add_qtmodule("xml")
30 cfg.add_qtmodule("svg")