mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
improved python detection and added --with-pythonincdir for configure.in
This commit is contained in:
parent
77603ff798
commit
dcdf8c2a00
3 changed files with 13 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
pkglibdir = @ALSA_PLUGIN_DIR@/smixer
|
||||
pythonlibs = @PYTHON_LIBS@
|
||||
pythonincdir = @PYTHON_INCDIR@
|
||||
|
||||
AM_CFLAGS = -g -O2 -W -Wall
|
||||
|
||||
|
|
@ -30,5 +31,6 @@ smixer_hda_la_LIBADD = ../../../src/libasound.la
|
|||
if BUILD_PYTHON
|
||||
smixer_python_la_SOURCES = python.c
|
||||
smixer_python_la_LDFLAGS = -module -avoid-version $(pythonlibs)
|
||||
smixer_python_la_CFLAGS = -I$(pythonincdir)
|
||||
smixer_python_la_LIBADD = ../../../src/libasound.la
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include <stddef.h>
|
||||
#include "config.h"
|
||||
#include "asoundlib.h"
|
||||
#include "mixer_abst.h"
|
||||
#include <python/Python.h>
|
||||
|
||||
struct python_priv {
|
||||
int py_initialized;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue