mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-20 02:32:19 +00:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Boost.Extension - examples Jamfile
|
|
#
|
|
# Copyright 2007 Jeremy Pack
|
|
# Distributed under the Boost Software License, Version 1.0. (See
|
|
# accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
# See http://www.boost.org/ for latest version.
|
|
#
|
|
|
|
import type : change-generated-target-suffix ;
|
|
import type : change-generated-target-prefix ;
|
|
type.change-generated-target-suffix SHARED_LIB : : extension ;
|
|
type.change-generated-target-prefix SHARED_LIB : : lib ;
|
|
import os ;
|
|
|
|
local BOOST_ROOT = [ os.environ BOOST_ROOT ] ;
|
|
local BOOST_SANDBOX_ROOT = [ os.environ BOOST_SANDBOX_ROOT ] ;
|
|
project
|
|
: requirements
|
|
<include>../../../
|
|
<include>$(BOOST_ROOT)
|
|
<include>$(BOOST_SANDBOX_ROOT)
|
|
<toolset>gcc:<find-shared-library>dl
|
|
<toolset>gcc:<linkflags>"-Wl,-rpath,'$ORIGIN'"
|
|
<toolset>darwin:<define>DYLD_LIBRARY_PATH=./
|
|
:
|
|
;
|
|
|
|
# extension integration example
|
|
exe extension-reflection : extension/extension.cpp ;
|
|
lib car_lib : extension/car_lib.cpp : <link>shared ;
|
|
|
|
install ../test/ : car_lib extension-reflection ;
|
|
|
|
# Tutorial 1: Hello World
|
|
exe hello_world : tutorial_1/hello_world.cpp ;
|