OCaml Forge

Detail: [#851] Flag: allow for more than just boolean flags

Feature Requests: Browse | Download .csv | Monitor

[#851] Flag: allow for more than just boolean flags

Date:
2010-12-29 22:43
Priority:
3
State:
Open
Submitted by:
Török Edwin (edwin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Due in version:
None
Product:
OASIS
Component:
None
Operating System:
All
 
Summary:
Flag: allow for more than just boolean flags

Detailed description
Currently flags are only boolean (unless I missed something).
It'd be good if command-line flags to configure could take an argument, like instead of:
--enable-foo, you could specify --with-foo=/path/to/foo (useful when linking to C libs), and then make that argument usable in _oasis via substitutions.

Followup

Message
Date: 2014-06-02 11:56
Sender: Léo Colisson

Hello,

I am very interesting too by this feature, it would be great to configure something in the whole application.

Thank you in advance.
Date: 2010-12-30 08:07
Sender: Török Edwin

Hmm, how about you only allow it to be used for substitutions?
Then it wouldn't be a flag, and have no effect on dependencies, lets call it "ConfigureSubstitutions" for example.

Anyway not something I need right now, but I thought I mention it.
Date: 2010-12-29 23:49
Sender: Sylvain Le Gall

Unfortunatly, I cannot really do something about that. The fact that values are booleans is made on purpose to let the "future" oasis solves the SAT wrt of dependencies (e.g. you install a library where one sub library depends on lablgtk and the build value depends on flag(lablgtk), the program can guess that lablgtk must be false to satisfy the pre-requisite).

String variables cannot be guessed easily. I keep this bug open, because this is not a "I won't do it", but a "wait and see".

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2010-12-29 23:50gildor-admin