Quinn Male | 2e88375 | 2019-03-22 11:28:54 -0700 | [diff] [blame^] | 1 | pkgconfigdir = $(libdir)/pkgconfig |
| 2 | pkgconfig_DATA = sound_trigger.pc |
| 3 | EXTRA_DIST = $(pkgconfig_DATA) |
| 4 | |
| 5 | AM_CFLAGS = -Wundef \ |
| 6 | -Wstrict-prototypes \ |
| 7 | -Wno-trigraphs \ |
| 8 | -g -O0 \ |
| 9 | -fno-inline \ |
| 10 | -fno-short-enums \ |
| 11 | -fpic \ |
| 12 | $(TINYALSA_CFLAGS) \ |
| 13 | $(HARDWARE_CFLAGS) \ |
| 14 | $(SYSTEM_MEDIA_CFLAGS) \ |
| 15 | $(AUDIO_ROUTE_CFLAGS) \ |
| 16 | -I ./st_extn \ |
| 17 | -I $(PKG_CONFIG_SYSROOT_DIR)/usr/include/audio-kernel \ |
| 18 | -I . |
| 19 | |
| 20 | c_sources = sound_trigger_hw.c \ |
| 21 | sound_trigger_platform.c \ |
| 22 | st_session.c \ |
| 23 | st_hw_session_lsm.c \ |
| 24 | st_hw_session_gcs.c \ |
| 25 | st_hw_common.c |
| 26 | |
| 27 | if QSTHW_API |
| 28 | c_sources += st_extn/st_hw_extn_intf.c |
| 29 | c_sources += st_extn/st_hw_extn.c |
| 30 | AM_CFLAGS += -DST_EXTN_ENABLED |
| 31 | endif |
| 32 | |
| 33 | if USE_KEEP_ALIVE |
| 34 | AM_CFLAGS += -DUSE_KEEP_ALIVE |
| 35 | endif |
| 36 | |
| 37 | if SOUND_TRIGGER_CPU_AFFINITY_SET |
| 38 | AM_CFLAGS += -DSOUND_TRIGGER_CPU_AFFINITY_SET |
| 39 | endif |
| 40 | |
| 41 | lib_includedir = $(includedir)/sound_trigger |
| 42 | lib_include_HEADERS = sound_trigger_prop_intf.h sound_trigger_hw.h |
| 43 | |
| 44 | lib_LTLIBRARIES = sound_trigger.primary.default.la |
| 45 | sound_trigger_primary_default_la_CC = @CC@ |
| 46 | sound_trigger_primary_default_la_SOURCES = $(c_sources) |
| 47 | sound_trigger_primary_default_la_LIBADD = -ltinyalsa -laudioroute -lexpat -lcutils -llog -ldl |
| 48 | sound_trigger_primary_default_la_CFLAGS = $(AM_CFLAGS) -DPLATFORM_DEFAULT -DSOUND_TRIGGER_PLATFORM=default -D__unused=__attribute__\(\(__unused__\)\) -DUINT_MAX=\(~0U\) -Dstrlcat=g_strlcat -include glib.h -DUSE_GLIB @GLIB_CFLAGS@ -DLINUX_ENABLED -DST_EXTN_ENABLED -D_GNU_SOURCE -D__packed=__attribute__\(\(packed\)\) |
| 49 | sound_trigger_primary_default_la_CFLAGS += -DNDEBUG |
| 50 | sound_trigger_primary_default_la_LDFLAGS = -shared -module -avoid-version $(GLIB_LIBS) |