summaryrefslogtreecommitdiff
path: root/tools/build/v2/test/prebuilt/ext/jamfile3.jam
blob: a373a5fb21fb2d4a2072dea4604deb237ede411c (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
40
41
42
43
44
45
46

# This Jamfile is the same as Jamfile2, except that
# it tries to access prebuilt targets using absolute
# paths. It used to be broken on Windows.

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 ^(darwin) : $toolset ]
{
   dll-suffix = dylib ;
}

project ext ;

# Assumed bjam was invoked from the project root
local pwd = [ PWD ] ;

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