Changeset b201912 for python/lib/moresetuptools.py
- Timestamp:
- Apr 11, 2017, 1:49:44 AM (7 years ago)
- Branches:
- sampler
- Children:
- 04d0c89
- Parents:
- fbafd2c (diff), b762f8d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/moresetuptools.py
rfbafd2c rb201912 120 120 ext.define_macros += [('HAVE_WAVWRITE', 1)] 121 121 ext.define_macros += [('HAVE_WAVREAD', 1)] 122 # TODO: 123 # add cblas122 123 # TODO: add cblas 124 124 if 0: 125 125 ext.libraries += ['cblas'] … … 134 134 else: 135 135 print("Info: using system aubio " + aubio_version + " found in " + ' '.join(ext.library_dirs)) 136 137 def add_libav_on_win(ext): 138 """ no pkg-config on windows, simply assume these libs are available """ 139 ext.libraries += ['avformat', 'avutil', 'avcodec', 'swresample'] 140 for define_macro in ['HAVE_LIBAV', 'HAVE_SWRESAMPLE']: 141 ext.define_macros += [(define_macro, 1)] 136 142 137 143 class CleanGenerated(distutils.command.clean.clean): … … 178 184 # check for external dependencies 179 185 add_external_deps(extension, usedouble=enable_double) 186 # force adding libav on windows 187 if os.name == 'nt' and ('WITH_LIBAV' in os.environ \ 188 or 'CONDA_PREFIX' in os.environ): 189 add_libav_on_win(extension) 180 190 # add libaubio sources and look for optional deps with pkg-config 181 191 add_local_aubio_sources(extension)
Note: See TracChangeset
for help on using the changeset viewer.