Changeset 8774047
- Timestamp:
- Oct 3, 2017, 3:27:37 PM (7 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- b3cbe94
- Parents:
- f2f9d8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/wscript_build
rf2f9d8b r8774047 52 52 syms = {} 53 53 reg = getattr(self.generator, 'export_symbols_regex','.+?') 54 binary_path = self.generator.link_task.outputs[0].abspath()55 54 if 'msvc' in self.env.CC_NAME: 56 reg_compiled = re.compile(r'External\s+\|\s+_(?P<symbol>%s)\b' % reg) 57 cmd =(self.env.DUMPBIN or['dumpbin'])+['/symbols', binary_path] 55 outputs = [x.abspath() for x in self.generator.link_task.outputs] 56 binary_path = list(filter(lambda x: x.endswith('lib'), outputs))[0] 57 reg_compiled = re.compile(r'External\s+\|\s+(?P<symbol>%s)\b' % reg) 58 cmd =(self.env.LINK_CC) + ['/dump', '/symbols', binary_path] 58 59 else: # using gcc? assume we have nm 60 binary_path = self.generator.link_task.outputs[0].abspath() 59 61 reg_compiled = re.compile(r'(T|D)\s+_(?P<symbol>%s)\b'%reg) 60 62 cmd = (self.env.NM or ['nm']) + ['-g', binary_path] 61 print (cmd)62 63 dump_output = self.generator.bld.cmd_and_log(cmd, quiet=STDOUT) 63 print (dump_output) 64 syms = [] 64 syms = set([]) 65 65 for m in reg_compiled.finditer(dump_output): 66 syms += [m.group('symbol')] 67 print (m.group('symbol')) 66 syms.add(m.group('symbol')) 67 syms = list(syms) 68 syms.sort() 68 69 self.outputs[0].write('EXPORTS\n'+'\n'.join(syms)) 69 70 … … 82 83 use = uselib + ['lib_objects'], 83 84 target = 'aubio', 84 export_symbols_regex=r'(?:.*aubio|fvec|lvec|cvec|fmat )_.*',85 export_symbols_regex=r'(?:.*aubio|fvec|lvec|cvec|fmat|new|del)_.*', 85 86 vnum = ctx.env['LIB_VERSION']) 86 87
Note: See TracChangeset
for help on using the changeset viewer.