Skip to content

Commit 6a2a76c

Browse files
committed
Use new cross-project feature
[SVN r19969]
1 parent 7a9a3d3 commit 6a2a76c

4 files changed

Lines changed: 26 additions & 4 deletions

File tree

build/Jamfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ if [ check-python-config ]
6262
<msvc-stlport><release>$(msvc-stlport-workarounds)
6363
;
6464

65+
template extension
66+
: <dll>boost_python
67+
: <sysinclude>../../..
68+
;
69+
6570
lib boost_python
6671
: # sources
6772
../src/$(sources)

example/Jamfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Specify our location in the boost project hierarchy
2-
subproject libs/python/example ;
1+
# Copyright David Abrahams 2003. See accompanying LICENSE for terms
2+
# and conditions of use.
3+
4+
# This is the top of our own project tree
5+
project-root ;
36

47
# Declares the following targets:
58
#
@@ -27,9 +30,10 @@ import python ;
2730
extension getting_started1
2831
: # sources
2932
getting_started1.cpp
33+
<template>@boost/libs/python/build/extension
3034

3135
# dependencies
32-
<dll>../build/boost_python
36+
# <dll>@boost/libs/python/build/boost_python
3337
;
3438

3539
# Declare a test for the extension module
@@ -49,7 +53,8 @@ extension getting_started2
4953
getting_started2.cpp
5054

5155
# dependencies
52-
<dll>../build/boost_python
56+
<template>@boost/libs/python/build/extension
57+
# <dll>@boost/libs/python/build/boost_python
5358
;
5459

5560
# Declare a test for the extension module

example/Jamrules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright David Abrahams 2003. See accompanying LICENSE for terms
2+
# and conditions of use.
3+
4+
# Edit this path to point at the root directory of your Boost
5+
# installation. Absolute paths work, too.
6+
project boost : ../../.. ;

example/boost-build.jam

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright David Abrahams 2003. See accompanying LICENSE for terms
2+
# and conditions of use.
3+
4+
# Edit this path to point at the tools/build subdirectory of your
5+
# Boost installation. Absolute paths work, too.
6+
boost-build ../../../tools/build ;

0 commit comments

Comments
 (0)