| 1 |
cython = find_program('cython', 'cython3' ,required: true) |
| 2 |
|
| 3 |
blueman_c = custom_target( |
| 4 |
'blueman_c', |
| 5 |
output: '_blueman.c', |
| 6 |
input: '_blueman.pyx', |
| 7 |
command: [cython, '--output-file', '@OUTPUT@', '@INPUT@']) |
| 8 |
|
| 9 |
sources = [ |
| 10 |
blueman_c, |
| 11 |
'libblueman.c', |
| 12 |
'libblueman.h' |
| 13 |
] |
| 14 |
|
| 15 |
deps = [pygobject, pythonlib, gthread, bluez] |
| 16 |
|
| 17 |
bluemanlib = shared_library( |
| 18 |
'_blueman', sources, |
| 19 |
name_prefix: '', |
| 20 |
dependencies : deps, |
| 21 |
c_args: ['-DSN_API_NOT_YET_FROZEN'], |
| 22 |
install: true, |
| 23 |
install_dir: pythondir, |
| 24 |
) |