List Info

Thread: Platform-specific sources




Platform-specific sources
user name
2006-02-23 03:16:55
Hello,

In jamroot, I have:

constant TARGET-PLATFORM : [ modules.peek : OS ] ;

And then I have this:

rule
simple-lib ( lib-name : requirements * : usage-requirements
* )
 {
 lib $(lib-name)
  : # sources:
   [ glob $(TOP)/src/$(lib-name)/impl/*.cpp ]
   [ glob $(TOP)/sys/$(TARGET-PLATFORM)/$(lib-name)/*.cpp ]
  : # requirements:
   $(requirements)
  : # default build:
  : # usage requirements:
   $(usage-requirements)
  ;
 }

My intention was to have boost-build automatically pick up
files from 
sys/NT/whatever on NT, and from other folders on other
systems. My problem 
is that under Cygwin/gcc, boost.build still goes to
sys/NT/whatever, instead 
to sys/cygwin/whatever.

Or did I completely misunderstand something? Please help!

Thanks,
Emil 
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )