Skip to content

Remaken install with conditions actually performs configuration #31

@jim-bcom

Description

@jim-bcom

HOW TO REPRODUCE

  • take a packagedependencies.txt file with a condition, say %COND
  • invoke remaken install --condition COND=true/remaken install + yes via the command line

EXPECTED BEHAVIOR

  • installs the depedency if true, don't install it if false but do no configure project

OBSERVED BEHAVIOR

  • creates file .build-rules/linux-gcc-x86_64/configure_conditions.pri
DEFINES += COND
  • In the documentation, configure and install are two separate commands, so I would expect conditions on install to only perform an installation of the conditionnalized dependency.
  • We encounter this behavior wtih our CI where remaken install is called so that it always answer yes to everything (because there might be other cases where the command prompts the user for input other than remaken conditions). But then, when building the actual qmake project, we define variables to set the expected conditions in the .pro file. But since the configure_conditions.pri is already generated with all conditions to true, it seems that what we set the the .pro file is not taken into account.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions