-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathJamroot
53 lines (49 loc) · 1.39 KB
/
Jamroot
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
# Project-wide requirements
# Requirements apply to building the ncl library
# Usage-requirements apply to dependants (i.e. phycas)
import os ;
local PHYCAS_MAC_UNIVERSAL = [ os.environ PHYCAS_MAC_UNIVERSAL ] ;
local PHYCAS_NCL_STATIC = [ os.environ PHYCAS_NCL_STATIC ] ;
#alias tool_specific_requirements : : : : <toolset>darwin <cxxflags>"-arch ppc -arch i386" <linkflags>"-arch ppc -arch i386" ;
if $(PHYCAS_MAC_UNIVERSAL) {
project ncl
: requirements
<include>. <cxxflags>"-arch ppc -arch i386" <linkflags>"-arch ppc -arch i386"
<link>shared
;
} else if $(PHYCAS_NCL_STATIC) {
project ncl
: requirements
<include>.
<link>static
;
} else {
project ncl
: requirements
<include>.
<link>shared
;
}
# Build and install the NCL library
alias ncl_sources
: ncl/nxsassumptionsblock.cpp
ncl/nxsblock.cpp
ncl/nxscharactersblock.cpp
ncl/nxscxxdiscretematrix.cpp
ncl/nxsdatablock.cpp
ncl/nxsdistancesblock.cpp
ncl/nxsexception.cpp
ncl/nxsmultiformat.cpp
ncl/nxspublicblocks.cpp
ncl/nxsreader.cpp
ncl/nxssetreader.cpp
ncl/nxsstring.cpp
ncl/nxstaxablock.cpp
ncl/nxstoken.cpp
ncl/nxstreesblock.cpp
ncl/nxsunalignedblock.cpp ;
project : usage-requirements <include>./ncl <include>. ;
lib ncl : ncl_sources ;
install ncl_library
: ncl
: <location>dist ;