Debian Codegraph @

packages/stk/stk_middle_mesh_util/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_middle_mesh_util-root-inc ;
37 if $(RTenv-arg) = "user" {
38 stk_middle_mesh_util-root-inc = $(stk_middle_mesh_util-root) ;
39 } else {
40 stk_middle_mesh_util-root-inc = $(stk_middle_mesh_util-root) ;
41 }
42
43 project votd
44 : requirements
45 $(sierra-warnings)
46 <include>$(stk_middle_mesh_util-root-inc)
47 <define>STK_BUILT_FOR_SIERRA
48 <define>STK_BUILT_WITH_BJAM
49 : usage-requirements
50 <include>$(stk_middle_mesh_util-root-inc)
51 : build-dir $(stk_middle_mesh_util-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_middle_mesh_util_utest
66 ;
67
68 #
69 # SECTION 2: Development install
70 #
71
72
73
74 # Dependencies listed in this target are installed in the developer's project.
75 # This should include all executables and any other files needed for developer use.
76 explicit install-targets ;
77 alias install-targets
78 : $(installed-end-user-files)
79 $(installed-developer-files)
80 ;
81
82 #
83 # SECTION 3: End-user install
84 #
85 explicit install-user-env ;
86 alias install-user-env : install-user-jamfile
87 install-user-bin install-user-include install-user-lib ;
88
89 # This rule copies build-system related files for this product to the install-root.
90 explicit install-user-jamfile ;
91 install install-user-jamfile
92 : [ glob $(stk_middle_mesh_util-root)/Jamfile ]
93 : <location>$(install-root)/stk/stk_middle_mesh_util
94 <install-source-root>$(stk_middle_mesh_util-root)
95 ;
96
97 # Dependencies listed in this target are always installed for end users.
98 # This should include only those executables and any other files needed by end-users.
99 explicit install-user-bin ;
100 install install-user-bin
101 : $(installed-end-user-files)
102 [ if-defined-val $(install-developer-files-arg) :
103 # Targets listed here will only be installed if the --install-developer-files option
104 # is passed to bjam. This is intended for testing that requires things like
105 # unittests to be installed when they normally would not be.
106 $(installed-developer-files)
107 ]
108 :
109 # Note that all Sierra executables are installed in a common bin directory,
110 # not in a product-specific bin directory.
111 <location>$(install-bin-dir)
112 ;
113
114 explicit install-user-include ;
115 install install-user-include
116 : [ path.glob-tree $(stk_middle_mesh_util-root) : *.h *.hpp ]
117 : <location>$(install-root)/stk/stk_middle_mesh_util/include <install-source-root>$(stk_middle_mesh_util-root)
118 ;
119
120 explicit install-user-lib ;
121 install install-user-lib
122 : stk_middle_mesh_util
123 : <location>$(install-root)/stk/stk_middle_mesh_util/lib
124 ;
125
126 explicit install-exe-targets ;
127 alias install-exe-targets : ;
128
129 #
130 # SECTION 4: Build configuration
131 #
132
133 local xml-files =
134 ;
135
136 lib stk_middle_mesh_util
137 :
138 [ ifdevbuild
139 # Any parameters within this 'ifdevbuild' block apply to development
140 # builds only and will not be present for user builds.
141 [ glob $(stk_middle_mesh_util-root)/stk_middle_mesh_util/*.cpp ]
142 ]
143 /sierra/stk_middle_mesh//stk_middle_mesh
144 /sierra/stk_mesh//stk_mesh_base
145 /sierra/stk_io//stk_io
146 :
147 [ ifuserbuild
148 # Any parameters within this 'ifuserbuild' block apply to user
149 # builds only and will not be present for developer builds.
150 <file>$(stk_middle_mesh_util-root)/lib/libstk_middle_mesh_util.a
151 ]
152 [ ifdevbuild
153 # Any parameters within this 'ifdevbuild' block apply to development
154 # builds only and will not be present for user builds.
155 <toolset>gcc:<cflags>"-Wextra -Wpedantic -Wshadow -Wno-unused-parameter"
156 ]
157 ;
158
159 exe stk_middle_mesh_util_utest
160 :
161 [ glob $(stk_middle_mesh_util-root)/../stk_unit_tests/stk_middle_mesh_util/*.cpp ]
162 /sierra/stk_unit_test_utils//stk_unit_main
163 stk_middle_mesh_util
164 /sierra/stk_middle_mesh//stk_middle_mesh
165 /sierra/stk_unit_test_utils//stk_mesh_fixtures
166 : <tag>@sierra-exec-tag
167 ;