|
Boost Users : |
From: Sebastien Fortier (sebastien.fortier_at_[hidden])
Date: 2006-07-28 13:56:34
I have a small project I' trying to build with bjam but I'm having
difficulties...
my directory structure is the following
root of project /data/cmdwx4/pst
subproject ElementMeteo /tmp/data/cmdwx4/pst/tmp/ElementMeteo
subproject TestMatAlgos /tmp/data/cmdwx4/pst/tmp/TestMatAlgos
in the root of project I have the following files
Jamfile
project-root ;
subinclude ElementMeteo ;
subinclude TestMatAlgos ;
Jamrules
path-global BOOST_ROOT : /data/cmdwx4/pst/package/boost_cvs ;
project boost : $(BOOST_ROOT) ;
project elementmeteo : ElementMeteo ;
project testmatalgos : TestMatAlgos ;
ALL_LOCATE_TARGET = /data/cmdwx4/pst/tmp/mylibs ;
boost-build.jam
boost-build /data/cmdwx4/pst/package/boost_cvs/tools/build/v1 ;
in /tmp/data/cmdwx4/pst/tmp/ElementMeteo
Jamfile
subproject ElementMeteo ;
SOURCES =
Altitude.cpp
ElementMeteo.cpp
FacadeElementMeteo.cpp
GeoReferencement.cpp
HauteurGeopotentielle.cpp
Humidite.cpp
MouvementVertical.cpp
Precipitation.cpp
Pression.cpp
Temperature.cpp
VentHorizontal.cpp ;
template base :
## Requirements ##
: <debug><include>/data/cmdwx4/pst/linux/dev/include/boost-1_35
<release><include>/data/cmdwx4/pst/linux/op/include/boost-1_35
## default-BUILD ##
: debug release
<debug><runtime-link>dynamic
<release><runtime-link>dynamic
;
dll elementmeteo : $(SOURCES) <template>base
:
common-variant-tag
:
debug release
;
template elmet
: <dll>elementmeteo
: #<sysinclude>../../..
;
in /tmp/data/cmdwx4/pst/tmp/TestMatAlgos
Jamfile
subproject TestMatAlgos ;
SOURCES =
DataSet.cpp
IMO.cpp
IMOTest.cpp
LoggerStuff.cpp
MatrixAlgorithm2DTest.cpp
MatrixAlgorithm3DTest.cpp
TestMinMax.cpp ;
if $(UNIX)
{
switch $(JAMUNAME)
{
case IRIX* :
{
lib-path = /data/cmdwx4/pst/sgi ;
}
case Linux* :
{
lib-path = /data/cmdwx4/pst/linux ;
}
}
}
template base :
## Requirements ##
: <debug><include>$(lib-path)/dev/include/boost-1_35
<debug><include>$(lib-path)/dev/include
<release><include>$(lib-path)/op/include/boost-1_35
<release><include>$(lib-path)/op/include
<include>@elementmeteo
<template>@elementmeteo/elmet ### this does not seem to work
<dll>@elementmeteo/elementmeteo ### this does not seem to work
<find-library>dl
<find-library>cppunit
<gcc><*><find-library>boost_log-gcc
<mipspro><*><find-library>boost_log-mp
## default-BUILD ##
: debug release
<debug><runtime-link>dynamic
<release><runtime-link>dynamic
;
exe TestMatAlgos : $(SOURCES) <template>base
:
common-variant-tag
:
debug release
;
What I want to be able to do:
1 - create a shared library with the ElementMeteo --- this is working
2 - create an executable that links with the ElementMeteo library ---
this does not work
3 - be able to compile the whole project in one shot --- mostly working
-- Sébastien Fortier
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net