Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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
Container Registry
Model registry
Operate
Environments
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
Zipr Toolchain
Commits
34db6e6f
Commit
34db6e6f
authored
5 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
setup to work as stand-alone xforms
parent
322f6ed3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
SConscript
+3
-3
3 additions, 3 deletions
SConscript
SConstruct
+60
-1
60 additions, 1 deletion
SConstruct
plugins_install/libmove_globals.so
+0
-0
0 additions, 0 deletions
plugins_install/libmove_globals.so
set_env_vars
+7
-0
7 additions, 0 deletions
set_env_vars
with
73 additions
and
4 deletions
.gitignore
0 → 100644
+
3
−
0
View file @
34db6e6f
*.os
build
.sconsign.dblite
This diff is collapsed.
Click to expand it.
SConscript
+
3
−
3
View file @
34db6e6f
...
...
@@ -8,7 +8,7 @@ Import('env')
myenv
=
env
.
Clone
()
cpppath
=
'''
$
SECURITY_TRANSFORMS_HOME
/third_party/elfio-code
$
PEASOUP_HOME/irdb-libs
/third_party/elfio-code
$PEASOUP_HOME/irdb-libs/libEXEIO/include
$IRDB_SDK/include
'''
...
...
@@ -19,11 +19,11 @@ files=Glob( Dir('.').srcnode().abspath+"/*.cpp")
pgm
=
"
move_globals.so
"
LIBPATH
=
"
$
SECURITY_TRANSFORMS_HOME
/lib
"
LIBPATH
=
"
$
PEASOUP_HOME/irdb-libs
/lib
"
LIBS
=
Split
(
"
irdb-core irdb-cfg irdb-util irdb-transform irdb-deep StructDiv EXEIO
"
)
myenv
.
Append
(
CPPPATH
=
Split
(
cpppath
))
pgm
=
myenv
.
SharedLibrary
(
pgm
,
files
,
LIBPATH
=
LIBPATH
,
LIBS
=
LIBS
)
install
=
myenv
.
Install
(
"
$
SECURITY_TRANSFORMS
_HOME/plugins_install/
"
,
pgm
)
install
=
myenv
.
Install
(
"
$
MG
_HOME/plugins_install/
"
,
pgm
)
Default
(
install
)
Return
(
'
install
'
)
This diff is collapsed.
Click to expand it.
SConstruct
+
60
−
1
View file @
34db6e6f
#
# Copyright 2017-2019 University of Virginia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Scons is python based. We import OS to get at the environment.
#
import
os
#
# create a basic scons environment
#
env
=
Environment
()
#
# Include environment variables. These lines throw semi-readable errors if the environment is not defined properly.
#
env
.
Replace
(
IRDB_SDK
=
os
.
environ
[
'
IRDB_SDK
'
]
)
# IRDB_SDK and IRDB_LIB by convention to find headers and libraries.
env
.
Replace
(
PEASOUP_HOME
=
os
.
environ
[
'
PEASOUP_HOME
'
]
)
# IRDB_SDK and IRDB_LIB by convention to find headers and libraries.
env
.
Replace
(
IRDB_LIBS
=
os
.
environ
[
'
IRDB_LIBS
'
]
)
env
.
Replace
(
MG_HOME
=
os
.
environ
[
'
MG_HOME
'
]
)
#
# Check for "debug=1" on the scons command line
#
env
.
Replace
(
debug
=
ARGUMENTS
.
get
(
"
debug
"
,
0
))
# build in debug mode?
#
# Required: need these flag to appropriately include/link IRDB files.
#
env
.
Append
(
CXXFLAGS
=
"
-std=c++11
"
)
# enable c++11
env
.
Append
(
LINKFLAGS
=
"
-Wl,-unresolved-symbols=ignore-in-shared-libs
"
)
# irdb libs may have symbols that resolve OK at runtime, but not linktime.
# if we are building in debug mode, use -g, else use -O
if
int
(
env
[
'
debug
'
])
==
1
:
env
.
Append
(
CFLAGS
=
"
-g
"
)
env
.
Append
(
CXXFLAGS
=
"
-g
"
)
env
.
Append
(
LINKFLAGS
=
"
-g
"
)
env
.
Append
(
SHLINKFLAGS
=
"
-g
"
)
else
:
env
.
Append
(
CFLAGS
=
"
-O
"
)
env
.
Append
(
CXXFLAGS
=
"
-O
"
)
env
.
Append
(
LINKFLAGS
=
"
-O
"
)
env
.
Append
(
SHLINKFLAGS
=
"
-O
"
)
Export
(
'
env
'
)
lib
=
SConscript
(
"
SConscript
"
)
SConscript
(
"
SConscript
"
,
variant_dir
=
'
build
'
)
This diff is collapsed.
Click to expand it.
plugins_install/libmove_globals.so
0 → 100755
+
0
−
0
View file @
34db6e6f
File added
This diff is collapsed.
Click to expand it.
set_env_vars
0 → 100644
+
7
−
0
View file @
34db6e6f
#
# Tell pszr where to search for plugins
#
export MG_HOME=$PWD
export PSPATH=$PSPATH:$MG_HOME/plugins_install
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