File: aubio-ffi-generator.rb

package info (click to toggle)
ruby-aubio 0.3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 7,236 kB
  • sloc: ruby: 420; sh: 4; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

# this needs to be set on the command line when running this script
# ENV['LD_LIBRARY_PATH'] = "/usr/local/opt/llvm35/lib/llvm-3.5/lib"
require 'ffi_gen'

FFIGen.generate(
  module_name: 'Aubio::Api',
  ffi_lib: '/usr/local/Cellar/aubio/0.4.4/lib/libaubio.dylib',
  headers: Dir['/usr/local/Cellar/aubio/0.4.4/include/aubio/**/*.h'],
  cflags: `/usr/local/opt/llvm35/bin/llvm-config-3.5 --cflags`.split(' '),
  # the following can be used to trim the aubio_ from the generated function names
  # prefixes:    ["aubio_", "CX"],
  prefixes: [],
  output: 'lib/aubio/aubio-ffi.rb'
)