project('libbytebeat', 'c', version : '1.1.1' ) jsc = dependency('javascriptcoregtk-6.0') glib = dependency('glib-2.0') bblib_h = custom_target('bblib.h', output: 'bblib.h', input: ['src/bblib.js'], command: [executable('bblibgen', 'src/bblibgen.c', native: true), '@INPUT@', '@OUTPUT@'] ) lbb = library('bytebeat', sources: [ 'src/bytebeat.c', 'src/bytebeat.h', bblib_h ], dependencies: [ jsc, glib ], install : true, ) install_headers('src/bytebeat.h') play = executable('bytebeat-gen', sources: [ 'src/bytebeat-gen.c', 'src/bytebeat.h' ], link_with: lbb, install: true, ) pkg = import('pkgconfig') pkg.generate(lbb, name: 'libbytebeat')