Added paintarea example
[yamf.git] / configure.rb
blob88b78eb9ff4adeecb1c28df40dbbf13e09d3bc97
2 ok = false
3 begin
4 ok = require 'qonf/configure'
5 ok = ok and require 'qonf/info'
6 ok = ok and require 'qonf/dlibconfig.rb'
7 rescue
8 ensure
9         if not ok
10                 puts "=> Error: Seems like you do no have DLib tools in your RUBYLIB"
11         end
12 end
14 conf = RQonf::Configure.new(ARGV)
16 if conf.hasArgument?("help") or conf.hasArgument?("h")
17         puts <<_EOH_
18 Use: #{$0} [options]
19         options:
20                 --help, -h:                                     Show this message
21                 --prefix=[prefix], -prefix [prefix]:            Sets prefix
22                 --with-debug:                                   Enable debug
23 _EOH_
24         exit 0
25 end
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")
42 conf.createMakefiles