Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
2c5babf2
Commit
2c5babf2
authored
6 years ago
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add argument for enabling "dex" module.
parent
aadfd49a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
setup.py
setup.py
+9
-0
No files found.
setup.py
View file @
2c5babf2
...
...
@@ -130,6 +130,7 @@ class BuildExtCommand(build_ext):
(
'enable_magic'
,
'enable_magic'
),
(
'enable_cuckoo'
,
'enable_cuckoo'
),
(
'enable_dotnet'
,
'enable_dotnet'
),
(
'enable_dex'
,
'enable_dex'
),
(
'enable_profiling'
,
'enable_profiling'
))
if
self
.
enable_magic
and
self
.
dynamic_linking
:
...
...
@@ -141,6 +142,9 @@ class BuildExtCommand(build_ext):
if
self
.
enable_dotnet
and
self
.
dynamic_linking
:
raise
distutils
.
errors
.
DistutilsOptionError
(
'--enable-dotnet can''t be used with --dynamic-linking'
)
if
self
.
enable_dex
and
self
.
dynamic_linking
:
raise
distutils
.
errors
.
DistutilsOptionError
(
'--enable-dex can''t be used with --dynamic-linking'
)
def
run
(
self
):
"""Execute the build command."""
...
...
@@ -236,6 +240,11 @@ class BuildExtCommand(build_ext):
else
:
exclusions
.
append
(
'yara/libyara/modules/dotnet.c'
)
if
self
.
enable_dex
:
module
.
define_macros
.
append
((
'DEX_MODULE'
,
'1'
))
else
:
exclusions
.
append
(
'yara/libyara/modules/dex.c'
)
exclusions
=
[
os
.
path
.
normpath
(
x
)
for
x
in
exclusions
]
for
directory
,
_
,
files
in
os
.
walk
(
'yara/libyara/'
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment