Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMPStaticAnalyzer
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
SMPStaticAnalyzer
Commits
7c5a4af1
Commit
7c5a4af1
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
another way to do it
parent
98a23287
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!9
Scons changes for libehp linking
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SConscript
+19
-12
19 additions, 12 deletions
SConscript
SConscript.ida
+1
-0
1 addition, 0 deletions
SConscript.ida
SConscript.ida7
+1
-2
1 addition, 2 deletions
SConscript.ida7
with
21 additions
and
14 deletions
SConscript
+
19
−
12
View file @
7c5a4af1
...
...
@@ -117,9 +117,6 @@ Export('argenv', 'STARS_CCFLAGS', 'STARS_LDFLAGS', 'STARS_LDPREFIX')
installers
=
[]
libehp
=
argenv
.
SConscript
(
"
libehp/SConscript
"
,
variant_dir
=
'
scons_build/libehp
'
);
libehp
=
argenv
.
Install
(
"
$SMPSA_HOME/libehp/lib
"
,
libehp
);
Default
(
libehp
)
if
int
(
argenv
[
'
build_ida
'
])
==
1
or
int
(
argenv
[
'
build_ida7
'
])
==
1
:
if
argenv
[
'
IDASDK
'
]
is
None
:
...
...
@@ -140,17 +137,17 @@ if int(argenv['build_ida']) == 1 or int(argenv['build_ida7']) == 1:
if
int
(
argenv
[
'
build_ida
'
])
==
1
:
print
"
Build IDA Plugin
"
lib
=
SConscript
(
'
SConscript.ida
'
,
variant_dir
=
'
build_ida
'
)
ida
lib
=
SConscript
(
'
SConscript.ida
'
,
variant_dir
=
'
build_ida
'
)
elif
int
(
argenv
[
'
build_ida7
'
])
==
1
:
print
"
Build IDA 7.0+ Plugin
"
lib
=
SConscript
(
'
SConscript.ida7
'
,
variant_dir
=
'
build_ida
'
)
argenv
.
Depends
(
lib
,
libehp
)
idalib
=
SConscript
(
'
SConscript.ida7
'
,
variant_dir
=
'
build_ida
'
)
print
"
Done build IDA Plugin
"
test
=
argenv
.
Command
(
target
=
"
./test.log
"
,
source
=
lib
,
action
=
"
IDAROOT=$IDAROOT SMPSA_HOME=$SMPSA_HOME $SMPSA_HOME/tests/scripts/make_baseline.sh 2>&1 |tee ./test.log
"
)
argenv
.
Depends
(
test
,
lib
)
test
=
argenv
.
Command
(
target
=
"
./test.log
"
,
source
=
ida
lib
,
action
=
"
IDAROOT=$IDAROOT SMPSA_HOME=$SMPSA_HOME $SMPSA_HOME/tests/scripts/make_baseline.sh 2>&1 |tee ./test.log
"
)
argenv
.
Depends
(
test
,
ida
lib
)
ab
=
argenv
.
AlwaysBuild
(
test
)
argenv
.
Default
(
ab
)
installers
=
installers
+
ab
Default
(
idalib
)
if
int
(
argenv
[
'
build_irdb
'
])
==
1
or
int
(
argenv
[
'
build_irdb_driver
'
])
==
1
:
...
...
@@ -158,13 +155,23 @@ if int(argenv['build_irdb']) == 1 or int(argenv['build_irdb_driver']) == 1:
print
'
Cannot build libstars.a without SECURITY_TRANSFORMS_HOME set. Did you forget the env. var.? Or try setting build_irdb=0.
'
exit
(
1
)
print
"
Build IDA/IRDB library
"
lib
=
SConscript
(
'
SConscript.irdb_lib
'
,
variant_dir
=
'
build_irdb_lib
'
)
installers
=
installers
+
lib
argenv
.
Depends
(
lib
,
libehp
)
irdb
lib
=
SConscript
(
'
SConscript.irdb_lib
'
,
variant_dir
=
'
build_irdb_lib
'
)
installers
=
installers
+
irdb
lib
Default
(
irdblib
)
Default
(
lib
)
libehp
=
argenv
.
SConscript
(
"
libehp/SConscript
"
,
variant_dir
=
'
scons_build/libehp
'
);
libehp
=
argenv
.
Install
(
"
$SMPSA_HOME/libehp/lib
"
,
libehp
);
try
:
argenv
.
Depends
(
idalib
,
libehp
)
except
:
print
"
Skipping build of ida lib
"
try
:
argenv
.
Depends
(
irdblib
,
libehp
)
except
:
print
"
Skipping build of irdb lib
"
if
'
PEDI_HOME
'
in
os
.
environ
:
pedi
=
Command
(
target
=
"
./testoutput
"
,
...
...
This diff is collapsed.
Click to expand it.
SConscript.ida
+
1
−
0
View file @
7c5a4af1
...
...
@@ -67,6 +67,7 @@ else:
idaenv=idaenv.Clone(CCFLAGS=IDA_CCFLAGS, SHLINKFLAGS=IDA_LDFLAGS, SHLIBSUFFIX=SHLIBSUF, SHLIBPREFIX="", CPPPATH=Split(cpppath));
lib=idaenv.SharedLibrary('SMPStaticAnalyzer', files, LIBPATH="$IDAROOT", libs="ida")
Depends(lib,"$SMPSA_HOME/libehp/lib/libehp.a")
install=idaenv.Install("$IDAROOT/idc/", "$SMPSA_HOME/scripts/SMP.idc")
...
...
This diff is collapsed.
Click to expand it.
SConscript.ida7
+
1
−
2
View file @
7c5a4af1
...
...
@@ -78,7 +78,6 @@ if int(idaenv['do_64bit_analysis']) == 1:
else:
lib=idaenv.SharedLibrary('SMPStaticAnalyzer', files, LIBPATH="$IDAROOT", libs="ida")
install=idaenv.Install("$IDAROOT/idc/", "$SMPSA_HOME/scripts/SMP.idc")
Default(install)
...
...
@@ -102,7 +101,7 @@ Default(install)
install=idaenv.Install("$IDAROOT/plugins/", lib)
Default(install)
Return('
install
')
Return('
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