Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CFI
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
Open Source Software
CFI
Commits
4cf1e5aa
Commit
4cf1e5aa
authored
9 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
078ee912
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitattributes
+2
-0
2 additions, 0 deletions
.gitattributes
SConscript
+52
-0
52 additions, 0 deletions
SConscript
SConstruct
+54
-0
54 additions, 0 deletions
SConstruct
with
108 additions
and
0 deletions
.gitattributes
+
2
−
0
View file @
4cf1e5aa
* text=auto !eol
/Makefile.in -text
/SConscript -text
/SConstruct -text
/config.guess -text
/config.sub -text
/configure -text
...
...
This diff is collapsed.
Click to expand it.
SConscript
0 → 100644
+
52
−
0
View file @
4cf1e5aa
import
shutil
import
os
import
tarfile
Import
(
'
env
'
)
#print 'env='
#print env.Dump()
myenv
=
env
myenv
.
Replace
(
SECURITY_TRANSFORMS_HOME
=
os
.
environ
[
'
SECURITY_TRANSFORMS_HOME
'
])
myenv
.
Replace
(
ZIPR_HOME
=
os
.
environ
[
'
ZIPR_HOME
'
])
myenv
.
Replace
(
ZIPR_SDK
=
os
.
environ
[
'
ZIPR_SDK
'
])
myenv
.
Replace
(
ZIPR_INSTALL
=
os
.
environ
[
'
ZIPR_INSTALL
'
])
files
=
'''
nonce_relocs.cpp
'''
# ELFIO needs to be first so we get the zipr version instead of the sectrans version. the zipr version is modified to include get_offset.
cpppath
=
'''
.
$ZIPR_HOME/third_party/ELFIO/elfio-2.2
$SECURITY_TRANSFORMS_HOME/include/
$SECURITY_TRANSFORMS_HOME/libIRDB/include/
$SECURITY_TRANSFORMS_HOME/beaengine/include
$SECURITY_TRANSFORMS_HOME/beaengine/beaengineSources/Includes/
$SECURITY_TRANSFORMS_HOME/tools/transforms
$ZIPR_HOME/include/
$ZIPR_SDK/include/
'''
libs
=
'''
'''
libpath
=
'''
$SECURITY_TRANSFORMS_HOME/lib
'''
myenv
.
Append
(
CCFLAGS
=
"
-Wall
"
)
myenv
=
myenv
.
Clone
(
CPPPATH
=
Split
(
cpppath
),
LIBS
=
Split
(
libs
),
LIBPATH
=
Split
(
libpath
),
SHLIBSUFFIX
=
"
.zpi
"
,
SHLIBPREFIX
=
""
)
lib
=
myenv
.
SharedLibrary
(
"
nonce_relocs
"
,
Split
(
files
))
install
=
myenv
.
Install
(
"
$ZIPR_INSTALL/plugins/
"
,
lib
)
Default
(
install
)
This diff is collapsed.
Click to expand it.
SConstruct
0 → 100644
+
54
−
0
View file @
4cf1e5aa
import
os
import
sys
env
=
Environment
()
# default build options
env
.
Replace
(
CFLAGS
=
"
-fPIC -w
"
)
env
.
Replace
(
CXXFLAGS
=
"
-fPIC -w
"
)
env
.
Replace
(
LINKFLAGS
=
"
-fPIC
"
)
# parse arguments
env
.
Replace
(
SECURITY_TRANSFORMS_HOME
=
os
.
environ
[
'
SECURITY_TRANSFORMS_HOME
'
])
env
.
Replace
(
ZIPR_HOME
=
os
.
environ
[
'
ZIPR_HOME
'
])
env
.
Replace
(
ZIPR_INSTALL
=
os
.
environ
[
'
ZIPR_INSTALL
'
])
env
.
Replace
(
ZIPR_SDK
=
os
.
environ
[
'
ZIPR_SDK
'
])
env
.
Replace
(
debug
=
ARGUMENTS
.
get
(
"
debug
"
,
0
))
env
.
Replace
(
do_64bit_build
=
ARGUMENTS
.
get
(
"
do_64bit_build
"
,
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
"
)
# set 32/64 bit build properly
#print "env[64bit]="+str(env['do_64bit_build'])
#if env['do_64bit_build'] is None:
# print 'Defaulting to default compilation size.'
#elif int(env['do_64bit_build']) == 1:
# print 'Using 64-bit compilation size.'
# env.Append(CFLAGS=" -m64")
# env.Append(CXXFLAGS=" -m64")
# env.Append(LINKFLAGS=" -m64")
# env.Append(SHLINKFLAGS=" -m64")
#else:
# print 'Using 32-bit compilation size.'
# env.Append(CFLAGS=" -m32")
# env.Append(CXXFLAGS=" -m32")
# env.Append(LINKFLAGS=" -m32")
# env.Append(SHLINKFLAGS=" -m32")
env
[
'
build_appfw
'
]
=
0
env
[
'
build_tools
'
]
=
0
Export
(
'
env
'
)
SConscript
(
"
SConscript
"
,
variant_dir
=
'
build
'
)
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