summaryrefslogtreecommitdiff
path: root/tools/build/test/prebuilt/ext/jamfile2.jam
blob: a38bfa7654ec790aeb6c9138ce44fd981e79257d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

import os ;

local dll-suffix = so ;
local prefix = "" ;
if [ os.name ] in CYGWIN NT
{
   if [ MATCH ^(gcc) : $toolset ]
   {
      dll-suffix = dll ;
   }
   else
   {
      dll-suffix = lib ;
   }
}
else
{
   prefix = "lib" ;      
}
if [ MATCH ^(clang-)?(darwin) : $toolset ]
{
   dll-suffix = dylib ;
}

project ext ;

lib a : 
    : <file>debug/$(prefix)a.$(dll-suffix) <variant>debug
    :
    : <include>debug
    ;
    
lib a :
    : <file>release/$(prefix)a.$(dll-suffix) <variant>release
    :
    : <include>release
    ;