Changeset 41b985f for python/lib/gen_external.py
- Timestamp:
- Mar 12, 2017, 11:26:24 AM (7 years ago)
- Branches:
- sampler
- Children:
- bde49c4a
- Parents:
- 71f2e5f (diff), 67b6618 (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/gen_external.py
r71f2e5f r41b985f 15 15 'filter', 16 16 'filterbank', 17 #'resampler',18 17 # AUBIO_UNSTABLE 19 18 'hist', … … 79 78 return cpp_cmd 80 79 81 def get_cpp_objects(header=header ):80 def get_cpp_objects(header=header, usedouble=False): 82 81 cpp_cmd = get_preprocessor() 83 82 84 83 macros = [('AUBIO_UNSTABLE', 1)] 84 if usedouble: 85 macros += [('HAVE_AUBIO_DOUBLE', 1)] 85 86 86 87 if not os.path.isfile(header): … … 180 181 elif not overwrite: return sorted(glob.glob(os.path.join(output_path, '*.c'))) 181 182 182 cpp_output, cpp_objects = get_cpp_objects(header )183 cpp_output, cpp_objects = get_cpp_objects(header, usedouble=usedouble) 183 184 184 185 lib = analyze_cpp_output(cpp_objects, cpp_output) … … 251 252 # no need to add header to list of sources 252 253 253 return so urces_list254 return sorted(sources_list) 254 255 255 256 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.