Boost logo

Boost-Build :

Subject: [Boost-build] how to conditionally build & install ?
From: Avi Bahra (avibahra_at_[hidden])
Date: 2011-05-04 04:38:43


I need to conditionally build and install a executable,
but not sure how I would do this in bjam.
Ideally I need to detect if x-windows libs are available,
alternatively I could only build/install if the address model
is 32 bits

Current in my root jam file I have:

# only build view if x-windows/or 32 bits
build-project view ;

import os ;
local INSTALL_DIR = [ os.environ ECFLOW_INSTALL_DIR ] ;

install install-view
        : view//ecflowview.sh
          view//ecflowview
        : <location>$(INSTALL_DIR)
        ;

alias install :
        install-viewer
        ;

explicit install ;

Any help appreciated.

   Best regards,
Ta,
    Avi


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk