forked from VikingX/roscpp_android
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathparse_libs.py
More file actions
executable file
·26 lines (20 loc) · 821 Bytes
/
parse_libs.py
File metadata and controls
executable file
·26 lines (20 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
import sys
import string
libraries = sys.argv[1]
ignore_paths = sys.argv[2]
libraries_split = libraries.split(';')
ignore_paths_split = ignore_paths.split(';')
libraries_out = ""
for library in libraries_split:
for path in ignore_paths_split:
if(library.startswith(path) or library == "debug" or library == "optimized"):
break
else:
right_part = library.rsplit("/lib",1)[1] # Remove everything in front of /filepath/blah/libmylib.a
out_part = right_part.rsplit(".",1)[0] # Remove file extensions from mylib.a
if(out_part == "qhull"):
# TODO: This can be fixed in the CMakeLists.txt but it is easier here
out_part = "qhullstatic"
libraries_out += " " + out_part
print libraries_out