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//
        : <location>$(INSTALL_DIR)

alias install :

explicit install ;

Any help appreciated.

   Best regards,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at