Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
2845105f
Commit
2845105f
authored
17 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Link statically against boost_unit_test_framework library
parent
f0b3a732
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
SConstruct
+1
-1
1 addition, 1 deletion
SConstruct
senfscons/BoostUnitTests.py
+1
-1
1 addition, 1 deletion
senfscons/BoostUnitTests.py
senfscons/InstallIncludes.py
+7
-2
7 additions, 2 deletions
senfscons/InstallIncludes.py
senfscons/SENFSCons.py
+3
-3
3 additions, 3 deletions
senfscons/SENFSCons.py
with
12 additions
and
7 deletions
SConstruct
+
1
−
1
View file @
2845105f
...
...
@@ -126,7 +126,7 @@ if not env.GetOption('clean') and not os.path.exists("local_config.hh"):
# created later are correct
if
not
env
.
GetOption
(
'
clean
'
)
and
not
os
.
path
.
exists
(
"
.prepare-stamp
"
)
\
and
not
os
.
environ
.
get
(
"
SCONS
"
):
and
not
os
.
environ
.
get
(
"
SCONS
"
)
and
COMMAND_LINE_TARGETS
!=
[
'
prepare
'
]
:
env
.
Execute
([
"
scons prepare
"
])
env
.
Clean
(
'
all
'
,
'
.prepare-stamp
'
)
...
...
This diff is collapsed.
Click to expand it.
senfscons/BoostUnitTests.py
+
1
−
1
View file @
2845105f
...
...
@@ -34,7 +34,7 @@ def BoostUnitTests(env, target, objects, test_sources=None, LIBS = [], OBJECTS =
else
:
test_sources
=
[]
testEnv
=
env
.
Copy
(
**
kw
)
testEnv
.
Prepend
(
LIBS
=
'
$BOOSTTESTLIB
'
)
testEnv
.
Prepend
(
_
LIB
FLAG
S
=
'
-Wl,-Bstatic -l$BOOSTTESTLIB -Wl,-Bdynamic
'
)
testEnv
.
Prepend
(
LIBS
=
LIBS
)
all_objects
=
[]
if
not
objects
:
...
...
This diff is collapsed.
Click to expand it.
senfscons/InstallIncludes.py
+
7
−
2
View file @
2845105f
...
...
@@ -7,6 +7,11 @@
# \ingroup builder
import
SCons.Builder
,
SCons
.
Action
,
SCons
.
Environment
,
SCons
.
Node
.
FS
try
:
from
SCons.Tool.install
import
installFunc
,
stringFunc
except
:
installFunc
=
SCons
.
Environment
.
installFunc
stringFunc
=
SCons
.
Environment
.
installString
def
recursiveChildren
(
f
):
rv
=
{}
...
...
@@ -45,11 +50,11 @@ class Installer:
self
.
source
=
source
def
__call__
(
self
,
target
,
source
,
env
):
SCons
.
Environment
.
installFunc
([
self
.
target
],
[
self
.
source
],
env
)
installFunc
([
self
.
target
],
[
self
.
source
],
env
)
def
generator
(
target
,
source
,
env
,
for_signature
):
return
[
SCons
.
Action
.
Action
(
Installer
(
trg
,
src
),
lambda
a
,
b
,
c
,
s
=
SCons
.
Environment
.
installS
tring
([
trg
],
[
src
],
env
):
s
)
lambda
a
,
b
,
c
,
s
=
s
tring
Func
([
trg
],
[
src
],
env
):
s
)
for
trg
,
src
in
zip
(
target
,
source
)
]
InstallIncludes
=
SCons
.
Builder
.
Builder
(
emitter
=
emitter
,
...
...
This diff is collapsed.
Click to expand it.
senfscons/SENFSCons.py
+
3
−
3
View file @
2845105f
...
...
@@ -148,9 +148,9 @@ def FinalizeBoost(env):
if
runtime
:
runtime
=
"
-
"
+
runtime
env
[
'
BOOST_VARIANT
'
]
=
"
-
"
+
env
[
'
BOOST_TOOLSET
'
]
+
runtime
env
[
'
BOOSTTESTLIB
'
]
=
'
lib
boost_unit_test_framework
'
+
env
[
'
BOOST_VARIANT
'
]
env
[
'
BOOSTREGEXLIB
'
]
=
'
lib
boost_regex
'
+
env
[
'
BOOST_VARIANT
'
]
env
[
'
BOOSTFSLIB
'
]
=
'
lib
boost_filesystem
'
+
env
[
'
BOOST_VARIANT
'
]
env
[
'
BOOSTTESTLIB
'
]
=
'
boost_unit_test_framework
'
+
env
[
'
BOOST_VARIANT
'
]
env
[
'
BOOSTREGEXLIB
'
]
=
'
boost_regex
'
+
env
[
'
BOOST_VARIANT
'
]
env
[
'
BOOSTFSLIB
'
]
=
'
boost_filesystem
'
+
env
[
'
BOOST_VARIANT
'
]
env
.
Append
(
LIBPATH
=
[
'
$BOOST_LIBDIR
'
],
CPPPATH
=
[
'
$BOOST_INCLUDES
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment