qonf

Developers Apps

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
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
12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.5
updated Nov 15 2007
added Sep 18 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags app software