qonf
Development
Score 61%
Description:

QOnf is a tool to configure the building process of qmake-based projects

[size=2]Features[/size]
* Standalone
* Uses qmake
* Parse and generate pkgconfig files
* Easy to use
* Only depends on ruby
* Multi-platform
* Powerful and flexible


[size=2]Use[/size]
To use it, just copy qonfigure.rb to your project root, you will need to define a simple Ruby script with the configure options called setup.rb:

--------------------
def configure(setup)
setup.qt >= 4.2

setup.add_option(:name => "a-dir", :type => "path", :optional => true, :description => "Sets the a dir")
setup.add_option(:name => "a-string", :type => "string", :optional => true, :description => "Sets the a string")
setup.add_option(:name => "a-bool", :type => "bool", :optional => true, :description => "Sets the a bool")


setup.find_package(:name => "a-pkgconfig-package", :optional => true, :global => false)

setup.add_option(:name => "some-dir", :type => "path", :optional => false, :description => "Sets some dir")

setup.add_test(:id => "custom_test", :name => "Custom support", :custom => "int main() { return 0; }", :defines => ["have_custom"], :optional => true, :global => true )

setup.add_test(:id => "myfeature", :name => "My feature support", :defines => ["have_my_feature"], :headers => ["myfeature.h"], :libs => "-lmyfeature", :optional => true, :global => false )
end
--------------------

First time a setup.rb template will be generated.

Qonf uses frontends to get the options, currently it has two frontends implemented: tk (gui) and plain (console), tk is used by default if it is present in your machine. (see screenshots)

when the process is finished a file called "config.pri" will be generated, to use non-global features you will need to include that file in your .pro and link the features, for example:

--------------------
...
include(../config.pri)
link_with(a-pkgconfig-package) {
DEFINES += SOMETHING
}

link_with(myfeature) {
INCLUDEPATH += /something
}
...
--------------------
Be the first to comment

product-maker 8 16

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.5
updated Nov 15 2007
added Sep 18 2007
downloads today
page views today