Changeset 20952 in vbox for trunk/src/libs
- Timestamp:
- Jun 25, 2009 4:18:39 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49132
- Location:
- trunk/src/libs/xpcom18a4/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/Makefile.kmk
r20951 r20952 24 24 25 25 # list of supported Python versions 26 $(eval $(patsubst %|,%$(NL) 26 $(eval $(patsubst %|,%$(NL),$(shell $(VBOX_BLD_PYTHON) $(PATH_SUB_CURRENT)/gen_python_deps.py))) 27 27 28 28 # Python Client Module - the C++/XPCOM bits. -
trunk/src/libs/xpcom18a4/python/gen_python_deps.py
r20951 r20952 26 26 file = os.path.join(p, "include", "python"+v, "Python.h") 27 27 # or just stat()? 28 try: 29 lf = open(file, 'r') 30 except IOError,e: 28 if not os.path.isfile(file): 31 29 return None 32 lf.close()33 30 return [os.path.join(p, "include", "python"+v), 34 31 os.path.join(p, "lib", "libpython"+v+".so")] … … 45 42 keys.sort() 46 43 d = None 44 # We need separator other than newline, to sneak through $(shell) 45 sep = "|" 47 46 for k in keys: 48 47 if d is None: 49 48 d = k 50 49 vers = k.replace('.', '') 51 print "VBOX_PYTHON%s_INC=%s |" %(vers, known[k][0])52 print "VBOX_PYTHON%s_LIB=%s |" %(vers, known[k][1])50 print "VBOX_PYTHON%s_INC=%s%s" %(vers, known[k][0], sep) 51 print "VBOX_PYTHON%s_LIB=%s%s" %(vers, known[k][1], sep) 53 52 if d is not None: 54 print "VBOX_PYTHONDEF_INC=%s |" %(known[d][0])55 print "VBOX_PYTHONDEF_LIB=%s |" %(known[d][1])53 print "VBOX_PYTHONDEF_INC=%s%s" %(known[d][0], sep) 54 print "VBOX_PYTHONDEF_LIB=%s%s" %(known[d][1], sep) 56 55 57 56 if __name__ == '__main__':
Note:
See TracChangeset
for help on using the changeset viewer.