Debian Codegraph @

packages/stk/stk_middle_mesh/Jamfile

raw
1 #--------------------------------------------------------------------
2 # Copyright 2002 - 2008, 2010, 2011 National Technology &
3 # Engineering Solutions of Sandia, LLC (NTESS). Under the terms
4 # of Contract DE-NA0003525 with NTESS, there is a
5 # non-exclusive license for use of this work by or on behalf
6 # of the U.S. Government. Export of this program may require
7 # a license from the United States Government.
8 #--------------------------------------------------------------------
9
10 #
11 # The signature for Boost.build rules is described here:
12 #
13 # http://www.boost.org/build/doc/html/bbv2/overview/targets.html
14 #
15 #function-name main-target-name
16 # : sources
17 # : requirements
18 # : default-build
19 # : usage-requirements
20 # ;
21 #
22 # * "main-target-name" is the name used to request the target
23 # on command line and to use it from other main targets.
24 # Main target name may contain alphanumeric characters and symbols '-' and '_';
25 # * "sources" is the list of source files and other main targets that must be combined.
26 # * "requirements" is the list of properties that must always be present
27 # when this main target is built.
28 # * "default-build" is the list of properties that will be used unless
29 # some other value of the same feature is already specified.
30 # * "usage-requirements" is the list of properties that will be propagated
31 # to all main targets that use this one, i.e. to all dependedents.
32 #
33 #
34 # SECTION 1: Project definition
35 #
36
37 import set ;
38 import path ;
39
40 local stk_middle_mesh-root-inc ;
41 if $(RTenv-arg) = "user" {
42 stk_middle_mesh-root-inc = $(stk_middle_mesh-root) ;
43 } else {
44 stk_middle_mesh-root-inc = $(stk_middle_mesh-root) ;
45 }
46
47 project votd
48 : requirements
49 $(sierra-warnings)
50 <define>STK_BUILT_FOR_SIERRA
51 <define>STK_BUILT_WITH_BJAM
52 <include>$(stk_middle_mesh-root-inc)
53 : usage-requirements
54 <define>STK_BUILT_FOR_SIERRA
55 <define>STK_BUILT_WITH_BJAM
56 <include>$(stk_middle_mesh-root-inc)
57 : build-dir $(stk_middle_mesh-builddir)
58 ;
59
60 # This variable should contain the applications and associated files that
61 # must be installed for both developers and end users. Unless they need to
62 # be visible to end users, unittests should not be placed here.
63 local installed-end-user-files =
64 ;
65 #
66 # This variable should contain the applications and associated files that will
67 # only be installed for and visible to developers.
68 # Note that if the --install-developer-files option is passed to bjam these will also
69 # be installed for end-users. (This is only intended to be used for testing.)
70 local installed-developer-files =
71 stk_middle_mesh_utest
72 stk_middle_mesh_docs_tests
73 stk_middle_mesh_integration_tester
74 ;
75
76 #
77 # SECTION 2: Development install
78 #
79
80 local xml-files =
81 ;
82
83
84
85
86 # Dependencies listed in this target are installed in the developer's project.
87 # This should include all executables and any other files needed for developer use.
88 explicit install-targets ;
89 alias install-targets
90 : $(installed-end-user-files)
91 $(installed-developer-files)
92 ;
93
94 #
95 # SECTION 3: End-user install
96 #
97 explicit install-user-env ;
98 alias install-user-env : install-user-jamfile
99 install-user-bin install-user-include install-user-lib ;
100
101 # Dependencies listed in this target are always installed for end users.
102 # This should include only those executables and any other files needed by end-users.
103 explicit install-user-bin ;
104 install install-user-bin
105 : $(installed-end-user-files)
106 [ if-defined-val $(install-developer-files-arg) :
107 # Targets listed here will only be installed if the --install-developer-files option
108 # is passed to bjam. This is intended for testing that requires things like
109 # unittests to be installed when they normally would not be.
110 $(installed-developer-files)
111 ]
112 :
113 # Note that all Sierra executables are installed in a common bin directory,
114 # not in a product-specific bin directory.
115 <location>$(install-bin-dir)
116 ;
117
118 # This rule copies build-system related files for this product to the install-root.
119 explicit install-user-jamfile ;
120 install install-user-jamfile
121 : [ glob $(stk_middle_mesh-root)/Jamfile ]
122 : <location>$(install-root)/stk/stk_middle_mesh
123 <install-source-root>$(stk_middle_mesh-root)
124 ;
125
126
127 explicit install-user-include ;
128 install install-user-include
129 : [ path.glob-tree $(stk_middle_mesh-root)/include : *.h *.hpp ]
130 [ path.glob-tree $(stk_middle_mesh-root)/include/predicates : *.h *.hpp ]
131 [ path.glob-tree $(stk_middle_mesh-root)/include/stk : *.h *.hpp ]
132 [ path.glob-tree $(stk_middle_mesh-root)/test : *.h *.hpp ]
133 [ path.glob-tree $(stk_middle_mesh-root)/test/util : *.h *.hpp ]
134 : <location>$(install-root)/stk/stk_middle_mesh/include <install-source-root>$(stk_middle_mesh-root)
135 ;
136
137 explicit install-user-lib ;
138 install install-user-lib
139 : stk_middle_mesh
140 stk_middle_mesh_test_util
141 : <location>$(install-root)/stk/stk_middle_mesh/lib
142 ;
143
144 explicit install-exe-targets ;
145 alias install-exe-targets : ;
146
147 #
148 # SECTION 4: Build configuration
149 #
150
151 exe stk_middle_mesh_utest
152 :
153 [ glob $(stk_middle_mesh-root)/../stk_unit_tests/stk_middle_mesh/*.cpp ]
154 /sierra/stk_unit_test_utils//stk_unit_main
155 stk_middle_mesh
156 stk_middle_mesh_test_util
157 :
158 <include>$(stk_middle_mesh-root)/../stk_unit_tests/stk_middle_mesh
159 <include>$(stk_middle_mesh-root)/../stk_middle_mesh_util/stk_middle_mesh_util
160 <tag>@sierra-exec-tag
161 ;
162
163 exe stk_middle_mesh_docs_tests
164 :
165 [ glob $(stk_mesh-root)/../stk_doc_tests/stk_middle_mesh/*.cpp ]
166 /sierra/stk_unit_test_utils//stk_unit_main
167 : <tag>@sierra-exec-tag
168 <include>$(stk_mesh-root)/../stk_doc_tests/stk_mesh
169 ;
170
171 exe stk_middle_mesh_integration_tester
172 :
173 [ glob $(stk_middle_mesh-root)/../stk_integration_tests/stk_middle_mesh/*.cpp ]
174 /sierra/stk_unit_test_utils//stk_unit_main
175 stk_middle_mesh
176 stk_middle_mesh_test_util
177 /sierra/stk_middle_mesh_util//stk_middle_mesh_util
178 :
179 <include>$(stk_middle_mesh-root)/../stk_unit_tests/stk_middle_mesh
180 <include>$(stk_middle_mesh-root)/../stk_middle_mesh_util/stk_middle_mesh_util
181 <tag>@sierra-exec-tag
182 ;
183
184 lib stk_middle_mesh
185 :
186 [ ifdevbuild
187 # Any parameters within this 'ifdevbuild' block apply to development
188 # builds only and will not be present for user builds.
189 [ glob $(stk_middle_mesh-root)/stk_middle_mesh/*.cpp ]
190 [ glob $(stk_middle_mesh-root)/stk_middle_mesh/predicates/*.cpp ]
191 [ glob $(stk_middle_mesh-root)/stk_middle_mesh_utils/*.cpp ]
192 ]
193 /sierra/stk_util//stk_util_parallel
194 /sierra/stk_util//stk_util_util
195 /sierra/stk_search//stk_search
196 /mpi//mpi
197 /tpl/cdt//cdt_header_only_libs
198 /tpl/lapack//lapack_interface
199 :
200 [ ifuserbuild
201 # Any parameters within this 'ifuserbuild' block apply to user
202 # builds only and will not be present for developer builds.
203 <file>$(stk_middle_mesh-root)/lib/libstk_middle_mesh.a
204 ]
205 [ ifdevbuild
206 # Any parameters within this 'ifdevbuild' block apply to development
207 # builds only and will not be present for user builds.
208 <toolset>gcc:<cflags>"-Wextra -Wpedantic -Wshadow -Wno-unused-parameter"
209 ]
210 ;
211
212 lib stk_middle_mesh_test_util
213 :
214 [ ifdevbuild
215 # Any parameters within this 'ifdevbuild' block apply to development
216 # builds only and will not be present for user builds.
217 [ glob $(stk_middle_mesh-root)/../stk_unit_tests/stk_middle_mesh/util/*.cpp ]
218 /tpl/googletest//gtest
219 /tpl/googletest//gmock
220 ]
221 stk_middle_mesh
222 :
223 [ ifuserbuild
224 # Any parameters within this 'ifuserbuild' block apply to user
225 # builds only and will not be present for developer builds.
226 <file>$(stk_middle_mesh-root)/lib/libstk_middle_mesh_test_util.a
227 ]
228 [ ifdevbuild
229 # Any parameters within this 'ifdevbuild' block apply to development
230 # builds only and will not be present for user builds.
231 <toolset>gcc:<cflags>"-Wextra -Wpedantic -Wshadow -Wno-unused-parameter"
232 ]
233 :
234 <include>$(stk_middle_mesh-root)/../stk_unit_tests/stk_middle_mesh
235 <include>$(stk_middle_mesh-root)/stk_middle_mesh
236 ;