Source i (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
Become a Fan
5.0

Available as/for:
Description:
QOnf is a tool to configure the building process of qmake-based projects

Features
* Standalone
* Uses qmake
* Parse and generate pkgconfig files
* Easy to use
* Only depends on ruby
* Multi-platform
* Powerful and flexible


Use
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", ptional => true, :description => "Sets the a dir")
setup.add_option(:name => "a-string", :type => "string", ptional => true, :description => "Sets the a string")
setup.add_option(:name => "a-bool", :type => "bool", ptional => true, :description => "Sets the a bool")


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

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

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

setup.add_test(:id => "myfeature", :name => "My feature support", :defines => ["HAVE_MY_FEATURE"], :headers => ["myfeature.h"], :libs => "-lmyfeature", ptional => 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
}
...
--------------------

Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license
version 0.5
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Developers Apps from krawek:

ideality
krawek
last update date: 19 years ago

Score 5.0

Other Developers Apps:

Oo-mox
actionless
last update date: 8 years ago

Score 6.5

KEXI
jstaniek
last update date: 7 years ago

Score 6.5

BlackAdder
appy
last update date: 20 years ago

Score 5.0

Wing IDE Professional
sdeibel
last update date: 15 years ago

Score 5.0

Quanta Gold
appy
last update date: 20 years ago

Score 5.0

Codie
elgunvo
last update date: 15 years ago

Score 5.0



System Tags