• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2import os ;
3
4local dll-suffix = so ;
5local prefix = "lib" ;
6if [ os.name ] in NT
7{
8   if [ MATCH ^(gcc) : $toolset ]
9   {
10      dll-suffix = dll.a ;
11      prefix = lib ;
12   }
13   else
14   {
15      dll-suffix = lib ;
16      prefix = "" ;
17   }
18}
19else if [ os.name ] in CYGWIN
20{
21    dll-suffix = dll ;
22}
23else if [ os.name ] in MACOSX
24{
25   dll-suffix = dylib ;
26}
27
28project ext ;
29
30lib a :
31    : <file>debug/$(prefix)a.$(dll-suffix) <variant>debug
32    :
33    : <include>debug
34    ;
35
36lib a :
37    : <file>release/$(prefix)a.$(dll-suffix) <variant>release
38    :
39    : <include>release
40    ;
41
42