Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.ip.flandmark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
bob
bob.ip.flandmark
Commits
19ad22fe
Commit
19ad22fe
authored
12 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Adaptations to the package compiles under OSX with OpenCV 2.4
parent
38657480
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flandmark/ext/ext.cpp
+1
-1
1 addition, 1 deletion
flandmark/ext/ext.cpp
setup.py
+11
-1
11 additions, 1 deletion
setup.py
with
12 additions
and
2 deletions
flandmark/ext/ext.cpp
+
1
−
1
View file @
19ad22fe
...
...
@@ -5,9 +5,9 @@
* @brief Boost.Python extension to flandmark
*/
#include
<boost/python.hpp>
#include
<boost/shared_ptr.hpp>
#include
<boost/shared_array.hpp>
#include
<boost/python.hpp>
#include
<bob/core/python/gil.h>
#include
<bob/core/python/ndarray.h>
#include
<cv.h>
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
11
−
1
View file @
19ad22fe
...
...
@@ -57,9 +57,19 @@ def pkgconfig(package):
if
flag_map
.
has_key
(
token
[:
2
]):
kw
.
setdefault
(
flag_map
.
get
(
token
[:
2
]),
[]).
append
(
token
[
2
:])
el
se
:
# throw others to extra_link_args
el
if
token
[
0
]
==
'
-
'
:
# throw others to extra_link_args
kw
.
setdefault
(
'
extra_compile_args
'
,
[]).
append
(
token
)
else
:
# these are maybe libraries
if
os
.
path
.
exists
(
token
):
dirname
=
os
.
path
.
dirname
(
token
)
if
dirname
not
in
kw
.
get
(
'
library_dirs
'
,
[]):
kw
.
setdefault
(
'
library_dirs
'
,
[]).
append
(
dirname
)
bname
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
token
))[
0
][
3
:]
if
bname
not
in
kw
.
get
(
'
libraries
'
,
[]):
kw
.
setdefault
(
'
libraries
'
,
[]).
append
(
bname
)
for
k
,
v
in
kw
.
iteritems
():
# remove duplicated
kw
[
k
]
=
uniq
(
v
)
...
...
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