Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libzafl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Open Source Software
libzafl
Commits
9f863526
Commit
9f863526
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Build libautozafl.so
parent
58bdb50a
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
SConscript
+18
-0
18 additions, 0 deletions
SConscript
SConstruct
+2
-3
2 additions, 3 deletions
SConstruct
src/SConscript
+5
-2
5 additions, 2 deletions
src/SConscript
src/SConstruct
+2
-1
2 additions, 1 deletion
src/SConstruct
with
27 additions
and
6 deletions
SConscript
+
18
−
0
View file @
9f863526
...
...
@@ -2,6 +2,24 @@ import os
Import
(
'
env
'
)
env
.
Replace
(
debug
=
ARGUMENTS
.
get
(
"
debug
"
,
0
))
env
.
Replace
(
autozafl
=
ARGUMENTS
.
get
(
"
autozafl
"
,
0
))
if
int
(
env
[
'
debug
'
])
==
1
:
print
"
Setting debug mode
"
env
.
Append
(
CFLAGS
=
"
-g
"
)
env
.
Append
(
CXXFLAGS
=
"
-g
"
)
env
.
Append
(
LINKFLAGS
=
"
-g
"
)
else
:
print
"
Setting release mode
"
env
.
Append
(
CFLAGS
=
"
-O3
"
)
env
.
Append
(
CXXFLAGS
=
"
-O3
"
)
env
.
Append
(
LINKFLAGS
=
"
-O3
"
)
if
int
(
env
[
'
autozafl
'
])
==
1
:
print
"
Build lib for autozafl
"
env
.
Append
(
CXXFLAGS
=
"
-DZAFL_AUTO_INIT_FORK_SERVER
"
)
lib
=
SConscript
(
"
src/SConscript
"
)
Return
(
'
lib
'
)
This diff is collapsed.
Click to expand it.
SConstruct
+
2
−
3
View file @
9f863526
env
=
Environment
()
Export
(
'
env
'
)
lib
=
SConscript
(
"
SConscript
"
)
Return
(
lib
)
Return
(
'
lib
'
)
This diff is collapsed.
Click to expand it.
src/SConscript
+
5
−
2
View file @
9f863526
...
...
@@ -15,9 +15,12 @@ cpppath='''
myenv
=
myenv
.
Clone
(
CPPPATH
=
Split
(
cpppath
))
myenv
.
Append
(
CXXFLAGS
=
"
-std=c++11
"
)
#myenv.Append(CXXFLAGS = " -std=c++11 -DZAFL_AUTO_INIT_FORK_SERVER")
lib
=
myenv
.
SharedLibrary
(
"
zafl
"
,
Split
(
files
))
if
int
(
env
[
'
autozafl
'
])
==
1
:
lib
=
myenv
.
SharedLibrary
(
"
autozafl
"
,
Split
(
files
))
else
:
lib
=
myenv
.
SharedLibrary
(
"
zafl
"
,
Split
(
files
))
install
=
myenv
.
Install
(
"
$SECURITY_TRANSFORMS_HOME/lib/
"
,
lib
)
Default
(
install
)
...
...
This diff is collapsed.
Click to expand it.
src/SConstruct
+
2
−
1
View file @
9f863526
...
...
@@ -4,6 +4,7 @@ env=Environment()
Export
(
'
env
'
)
env
.
Replace
(
debug
=
ARGUMENTS
.
get
(
"
debug
"
,
0
))
env
.
Replace
(
autozafl
=
ARGUMENTS
.
get
(
"
autozafl
"
,
0
))
if
int
(
env
[
'
debug
'
])
==
1
:
print
"
Setting debug mode
"
...
...
@@ -16,7 +17,7 @@ else:
env
.
Append
(
CXXFLAGS
=
"
-O3
"
)
env
.
Append
(
LINKFLAGS
=
"
-O3
"
)
lib
=
SConscript
(
"
SConscript
"
)
lib
=
SConscript
(
"
SConscript
"
,
variant_dir
=
'
build
'
)
Default
(
lib
)
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