-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJamroot
More file actions
200 lines (174 loc) · 5.45 KB
/
Copy pathJamroot
File metadata and controls
200 lines (174 loc) · 5.45 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# Copyright 2004-2008 Spencer Olson
echo "Lightpipes" ;
# Usage:
#
# bjam [options] [properties] [install|stage]
#
# Builds and installs lightpipes.
#
# Targets and Related Options:
#
# install Install headers and compiled library files to the
# ======= configured locations (below).
#
# --prefix=<PREFIX> Install architecture independent files here.
# Default; C:\lightpipes on Win32
# Default; /usr/local on Unix. Linux, etc.
#
# --exec-prefix=<EPREFIX> Install architecture dependent files here.
# Default; <PREFIX>
#
# --libdir=<DIR> Install library files here.
# Default; <EPREFIX>/lib
#
# --includedir=<HDRDIR> Install header files here.
# Default; <PREFIX>/include
#
# stage Build and install only compiled library files
# ===== to the ./stage directory.
#
# Other Options:
#
# --build-dir=DIR Build in this location instead of building
# within the distribution tree. Recommended!
#
# --help This message.
#
# Properties:
#
# toolset=toolset Indicates the toolset to build with.
#
# variant=debug|release Select the build variant
#
# link=static|shared Whether to build static or shared libraries
#
# threading=single|multi Whether to build single or multithreaded binaries
#
# runtime-link=static|shared
# Whether to link to static or shared C and C++ runtime.
#
import feature : feature ;
import path ; # for getting a better glob
import package ; # used for installing whole package (provides --prefix related
# options )
import common : find-tool ;
import numbers : less ;
path-constant TOP : . ;
constant VERSION : [ SHELL "printf `cd $(TOP); git describe 2> /dev/null` 2> /dev/null || printf lightpipes-0.0.0 " ] ;
#use-project /boost : ../boost ;
project /lightpipes
: requirements
<include>src
# <library>/boost//headers
<define>LIGHTPIPES_VERSION=\\\"$(VERSION)\\\"
: usage-requirements
<include>src
# <library>/boost//headers
<define>LIGHTPIPES_VERSION=\\\"$(VERSION)\\\"
;
lib fftw3 : : <name>fftw3 : : <link>shared ;
lib lightpipes
: # sources
src/lightpipes/Field.cpp
[ glob src/lightpipes/*.h ]
: <link>static
<cxxflags>-fPIC
<cflags>-fPIC
: # no default build
: # no client includes
<library>fftw3/<link>shared
;
build-project src/progs ;
build-project octave ;
build-project python ;
# installation configuration
# options:
install-properties =
<install-no-version-symlinks>on
;
if [ modules.peek : NT ] {
install-properties += <install-default-prefix>C:/lightpipes ;
} else if [ modules.peek : UNIX ] {
install-properties += <install-default-prefix>/usr/local ;
}
# all programs to install
local binaries = [ path.glob-tree src/progs/bin : * ] ;
# all octave stuff to install
local octfiles = [ path.glob-tree octave/oct-files : * ] ;
local mfiles = [ path.glob-tree octave : *.m ] ;
local pyfiles = [ path.glob-tree python/lightpipes : * ] ;
# the list of libraries to build and install
local libraries = lightpipes ;
# all headers to install
local all_headers = [ path.glob-tree src : *.h *.cpp : progs ] ;
# docs to install
local docs = [ path.glob-tree docs/api/html docs/api/latex : * ] ;
# docs (old manual) to install
local manual = [ path.glob-tree manual : * ] ;
# Complete install allowing --prefix and related command line options
alias install
: install-code install-octfiles install-mfiles install-python
install-docs install-manual ;
explicit install ;
# Complete install allowing --prefix and related command line options
package.install install-code
: $(install-properties)
<install-source-root>$(TOP)/src
: $(binaries)
: $(libraries)
: $(all_headers)
;
explicit install-code ;
# install oct-files allowing --prefix and related command line options
package.install install-octfiles
: $(install-properties)
<install-source-root>$(TOP)/octave/oct-files
<install-header-subdir>../lib/lightpipes/octave
:
:
: $(octfiles)
;
explicit install-octfiles ;
# install m-files allowing --prefix and related command line options
package.install install-mfiles
: $(install-properties)
<install-source-root>$(TOP)/octave
<install-header-subdir>../lib/lightpipes/octave
:
:
: $(mfiles)
;
explicit install-mfiles ;
# install oct-files allowing --prefix and related command line options
package.install install-python
: $(install-properties)
<install-source-root>$(TOP)/python/lightpipes
<install-header-subdir>../lib/python/lightpipes
:
:
: $(pyfiles)
;
explicit install-python ;
# install data allowing --prefix and related command line options
package.install install-docs
: $(install-properties)
<install-source-root>$(TOP)
<install-header-subdir>../share/lightpipes
:
:
: $(docs)
;
explicit install-docs ;
# install data allowing --prefix and related command line options
package.install install-manual
: $(install-properties)
<install-source-root>$(TOP)
<install-header-subdir>../share/lightpipes/docs
:
:
: $(manual)
;
explicit install-manual ;
# install the libs into a staging dir
install stage : $(libraries) ;
explicit stage ;