4 ok = require 'qonf/configure'
5 ok = ok and require 'qonf/info'
6 ok = ok and require 'qonf/dlibconfig.rb'
10 puts "=> Error: Seems like you do no have DLib tools in your RUBYLIB"
14 conf = RQonf::Configure.new(ARGV)
16 if conf.hasArgument?("help") or conf.hasArgument?("h")
20 --help, -h: Show this message
21 --prefix=[prefix], -prefix [prefix]: Sets prefix
22 --with-debug: Enable debug
27 conf.verifyQtVersion("4.2.0")
28 config = RQonf::Config.new
30 config.addModule("xml")
31 config.addModule("svg")
33 config.addIncludePath RQonf::CONFIG["includepath"]
34 config.addLib "-L #{RQonf::CONFIG["libdir"]} -ldmedia -ldgui -ldgraphics -ldcore"
36 config.addDefine RQonf::CONFIG["defines"]
37 config.addDefine "_BUILD_YAMF_"
38 config.addDefineString "YAMF_INSTALL_PREFIX", %@"#{File.expand_path(conf.destdir)}"@
40 config.save("src/config.pri")