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
3bf5d710
Commit
3bf5d710
authored
7 years ago
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build with the appropriate process memory scanning logic according to the platform.
parent
34f858db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
setup.py
setup.py
+12
-12
No files found.
setup.py
View file @
3bf5d710
...
...
@@ -159,17 +159,15 @@ class BuildExtCommand(build_ext):
for
library
in
self
.
libraries
or
[]:
module
.
libraries
.
append
(
library
)
if
self
.
plat_name
in
(
'win32'
,
'win-amd64'
):
building_for_windows
=
True
else
:
building_for_windows
=
False
building_for_windows
=
self
.
plat_name
in
(
'win32'
,
'win-amd64'
)
building_for_osx
=
'macosx'
in
self
.
plat_name
building_for_linux
=
'linux'
in
self
.
plat_name
if
'macosx'
in
self
.
plat_name
:
building_for_osx
=
True
else
:
building_for_osx
=
False
if
building_for_linux
:
module
.
sources
.
append
(
'yara/libyara/proc/linux.c'
)
if
building_for_windows
:
module
.
sources
.
append
(
'yara/libyara/proc/windows.c'
)
module
.
define_macros
.
append
((
'_CRT_SECURE_NO_WARNINGS'
,
'1'
))
module
.
libraries
.
append
(
'kernel32'
)
module
.
libraries
.
append
(
'advapi32'
)
...
...
@@ -178,6 +176,7 @@ class BuildExtCommand(build_ext):
module
.
libraries
.
append
(
'ws2_32'
)
if
building_for_osx
:
module
.
sources
.
append
(
'yara/libyara/proc/mach.c'
)
module
.
include_dirs
.
append
(
'/usr/local/opt/openssl/include'
)
module
.
include_dirs
.
append
(
'/opt/local/include'
)
module
.
library_dirs
.
append
(
'/opt/local/lib'
)
...
...
@@ -226,10 +225,11 @@ class BuildExtCommand(build_ext):
exclusions
=
[
os
.
path
.
normpath
(
x
)
for
x
in
exclusions
]
for
directory
,
_
,
files
in
os
.
walk
(
'yara/libyara/'
):
for
x
in
files
:
x
=
os
.
path
.
normpath
(
os
.
path
.
join
(
directory
,
x
))
if
x
.
endswith
(
'.c'
)
and
x
not
in
exclusions
:
module
.
sources
.
append
(
x
)
if
directory
!=
'yara/libyara/proc'
:
for
x
in
files
:
x
=
os
.
path
.
normpath
(
os
.
path
.
join
(
directory
,
x
))
if
x
.
endswith
(
'.c'
)
and
x
not
in
exclusions
:
module
.
sources
.
append
(
x
)
build_ext
.
run
(
self
)
...
...
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