Skip to content
Snippets Groups Projects
Commit 19ad22fe authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

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
......@@ -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>
......
......@@ -57,9 +57,19 @@ def pkgconfig(package):
if flag_map.has_key(token[:2]):
kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
else: # throw others to extra_link_args
elif 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment