build: added AUL support for resource-asm.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Mon, 30 Sep 2013 09:27:09 +0000 (12:27 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:11 +0000 (18:37 +0200)
Change-Id: I836e25ea38a1d319863d47b114865639a5ce315e

configure.ac
packaging/murphy.spec
src/Makefile.am

index ac916d1..a781c38 100644 (file)
@@ -524,6 +524,15 @@ if test "$enable_resource_asm" != "no"; then
     fi
     AC_SUBST(AUDIO_SESSION_MANAGER_CFLAGS)
     AC_SUBST(AUDIO_SESSION_MANAGER_LIBS)
+
+    # check for AUL
+    PKG_CHECK_MODULES(AUL, aul, [have_aul=yes], [have_aul=no])
+    if test "$have_aul" = "no" -a "$enable_aul" = "yes"; then
+        AC_MSG_ERROR([AUL development headers not found.])
+    fi
+    AC_SUBST(AUL_CFLAGS)
+    AC_SUBST(AUL_LIBS)
+
     enable_resource_asm="$have_resource_asm"
 else
     AC_MSG_NOTICE([Audio Session Manager support is disabled.])
index 88169f0..fbe45fd 100644 (file)
@@ -67,6 +67,7 @@ BuildRequires: pkgconfig(ofono)
 %endif
 %if %{?_with_audiosession:1}%{!?_with_audiosession:0}
 BuildRequires: pkgconfig(audio-session-mgr)
+BuildRequires: pkgconfig(aul)
 %endif
 %if %{?_with_websockets:1}%{!?_with_websockets:0}
 BuildRequires: libwebsockets-devel
index 3f9bd3d..bcb1a98 100644 (file)
@@ -1550,8 +1550,8 @@ endif
 
 # Audio Session Manager plugin
 RESOURCE_ASM_PLUGIN_SOURCES = plugins/plugin-resource-asm.c
-RESOURCE_ASM_PLUGIN_CFLAGS  = $(AUDIO_SESSION_MANAGER_CFLAGS)
-RESOURCE_ASM_PLUGIN_LIBS    = # no library support needed
+RESOURCE_ASM_PLUGIN_CFLAGS  = $(AUDIO_SESSION_MANAGER_CFLAGS) $(AUL_CFLAGS)
+RESOURCE_ASM_PLUGIN_LIBS    = $(AUL_LIBS)
 
 if RESOURCE_ASM_ENABLED