Debian Codegraph @

packages/stk/stk_search/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 #function-name main-target-name
12 # : sources
13 # : requirements
14 # : default-build
15 # : usage-requirements
16 # ;
17 #
18 # * "main-target-name" is the name used to request the target
19 # on command line and to use it from other main targets.
20 # Main target name may contain alphanumeric characters and symbols '-' and '_';
21 # * "sources" is the list of source files and other main targets that must be combined.
22 # * "requirements" is the list of properties that must always be present
23 # when this main target is built.
24 # * "default-build" is the list of properties that will be used unless
25 # some other value of the same feature is already specified.
26 # * "usage-requirements" is the list of properties that will be propagated
27 # to all main targets that use this one, i.e. to all dependedents.
28 #
29 #
30 # SECTION 1: Project definition
31 #
32
33 import set ;
34 import path ;
35
36 local stk_search-root-inc ;
37 if $(RTenv-arg) = "user" {
38 stk_search-root-inc = $(stk_search-root)/include ;
39 } else {
40 stk_search-root-inc = $(stk_search-root) ;
41 }
42
43 project votd
44 : requirements
45 $(sierra-warnings)
46 <include>$(stk_search-root-inc)
47 <define>STK_BUILT_FOR_SIERRA
48 <define>STK_BUILT_WITH_BJAM
49 : usage-requirements
50 <include>$(stk_search-root-inc)
51 : build-dir $(stk_search-builddir)
52 ;
53
54 # This variable should contain the applications and associated files that
55 # must be installed for both developers and end users. Unless they need to
56 # be visible to end users, unittests should not be placed here.
57 local installed-end-user-files =
58 ;
59 #
60 # This variable should contain the applications and associated files that will
61 # only be installed for and visible to developers.
62 # Note that if the --install-developer-files option is passed to bjam these will also
63 # be installed for end-users. (This is only intended to be used for testing.)
64 local installed-developer-files =
65 stk_search_utest
66 stk_search_doc_tests
67 [ if-not-defined-val $(releasable-arg) :
68 stk_search_integration_tester ]
69 ;
70 #
71 # SECTION 2: Development install
72 #
73
74
75
76 # Dependencies listed in this target are installed in the developer's project.
77 # This should include all executables and any other files needed for developer use.
78 explicit install-targets ;
79 alias install-targets
80 : $(installed-end-user-files)
81 $(installed-developer-files)
82 ;
83 #
84 # SECTION 3: End-user install
85 #
86 explicit install-user-env ;
87 alias install-user-env : install-user-jamfile
88 install-user-include
89 install-user-lib
90 install-user-bin ;
91
92 # Dependencies listed in this target are always installed for end users.
93 # This should include only those executables and any other files needed by end-users.
94 explicit install-user-bin ;
95 install install-user-bin
96 : $(installed-end-user-files)
97 [ if-defined-val $(install-developer-files-arg) :
98 # Executables listed here will only installed if the --install-developer-files option
99 # is passed to bjam. This is intended for testing that requires things like
100 # unittest to be installed when they normally would not be.
101 $(installed-developer-files)
102 ]
103 :
104 # Note that all Sierra executables are installed in a common bin directory,
105 # not in a product-specific bin directory.
106 <location>$(install-bin-dir)
107 ;
108
109 # This rule copies build-system related files for this product to the install-root.
110 explicit install-user-jamfile ;
111 install install-user-jamfile
112 : [ glob $(stk_search-root)/Jamfile ]
113 : <location>$(install-root)/stk/stk_search
114 <install-source-root>$(stk_search-root)
115 ;
116
117 explicit install-user-include ;
118 install install-user-include
119 : [ path.glob-tree $(stk_search-root) : *.h *.hpp ]
120 : <location>$(install-root)/stk/stk_search/include <install-source-root>$(stk_search-root)
121 ;
122
123 explicit install-user-lib ;
124 install install-user-lib
125 : stk_search
126 : <location>$(install-root)/stk/stk_search/lib
127 ;
128
129 explicit install-exe-targets ;
130 alias install-exe-targets : ;
131
132 #
133 # SECTION 4: Build configuration
134 #
135
136 local xml-files =
137 ;
138
139 lib stk_search
140 :
141 [ ifdevbuild
142 # Any parameters within this 'ifdevbuild' block apply to development
143 # builds only and will not be present for user builds.
144 [ glob
145 $(stk_search-root)/stk_search/*.cpp
146 $(stk_search-root)/stk_search/kdtree/*.cpp
147 $(stk_search-root)/stk_search/morton_lbvh/*.cpp
148 ]
149 ]
150 /sierra/stk_util//stk_util_util
151 /sierra/stk_util//stk_util_diag
152 /sierra/stk_util//stk_util_parallel
153 /sierra/stk_math//stk_math
154 /tpl/ArborX//arborx
155 :
156 [ ifuserbuild
157 # Any parameters within this 'ifuserbuild' block apply to user
158 # builds only and will not be present for developer builds.
159 <file>$(stk_search-root)/lib/libstk_search.a
160 ]
161 [ ifdevbuild
162 # Any parameters within this 'ifdevbuild' block apply to development
163 # builds only and will not be present for user builds.
164 <toolset>gcc:<cflags>"-Wextra -Wpedantic -Wshadow -Wno-unused-parameter"
165 ]
166
167 ;
168
169 # We do not want to build stk_search_integration_tester in release
170 if ! $(releasable-arg) {
171 exe stk_search_integration_tester
172 :
173 [ glob
174 $(stk_search-root)/../stk_integration_tests/stk_search/UnitTestNaluPerformance.cpp
175 ]
176 /sierra/stk_search//stk_search
177 /sierra/stk_unit_test_utils//stk_unit_main
178 /sierra/stk_math//stk_math
179 /sierra/stk_mesh//stk_mesh_base
180 : <tag>@sierra-exec-tag
181 ;
182 }
183
184 exe stk_search_doc_tests
185 :
186 [ glob
187 $(stk_search-root)/../stk_doc_tests/stk_search/*.cpp
188 ]
189 /sierra/stk_search//stk_search
190 /sierra/stk_search_util//stk_search_util_base
191 /sierra/stk_unit_test_utils//stk_unit_main
192 /sierra/stk_mesh//stk_mesh_base
193 : <tag>@sierra-exec-tag
194 <include>$(stk_search-root-inc)
195 ;
196
197 exe stk_search_utest
198 :
199 [ glob
200 $(stk_search-root)/../stk_unit_tests/stk_search/*.cpp
201 ]
202 /sierra/stk_search//stk_search
203 /sierra/stk_unit_test_utils//stk_unit_main
204 /sierra/stk_math//stk_math
205
206 : <tag>@sierra-exec-tag
207 ;
208
209
210