Add new functions to acquire/release focus with option
[platform/core/multimedia/libmm-sound.git] / Makefile.am
1 SUBDIRS = common \
2                 pkgconfig \
3                 . \
4                 server \
5                 testsuite
6
7 if USE_FOCUS
8 SUBDIRS += focus_server
9 endif
10
11 lib_LTLIBRARIES = libmmfsound.la
12
13 includelibmmfsounddir = $(includedir)/mmf
14 includelibmmfsound_HEADERS = include/mm_sound.h \
15                                                         include/mm_sound_private.h \
16                                                         include/mm_sound_pa_client.h \
17                                                         include/mm_sound_device.h
18
19 libmmfsound_la_SOURCES = mm_sound.c \
20                         mm_sound_client.c \
21                         mm_sound_proxy.c \
22                         mm_sound_device.c \
23                         mm_sound_pa_client.c
24 if USE_FOCUS
25 includelibmmfsound_HEADERS += include/mm_sound_focus.h
26 libmmfsound_la_SOURCES += mm_sound_focus.c
27 endif
28
29 libmmfsound_la_DEPENDENCIES = common/libmmfsoundcommon.la
30
31 libmmfsound_la_CFLAGS = -I$(srcdir)/include \
32                         $(MMCOMMON_CFLAGS) \
33                         $(VCONF_CFLAGS) \
34                         -I$(srcdir)/servertype/include \
35                         $(GLIB2_CFLAGS) \
36                         $(GIO_CFLAGS) \
37                         $(MMSESSION_CFLAGS) \
38                         -D_USE_INTERNAL_SOUND_PATH_ \
39                         $(PASIMPLE_CFLAGS) \
40                         $(PA_CFLAGS) \
41                         $(VCONF_CFLAGS)
42
43 if USE_PULSE
44 libmmfsound_la_CFLAGS += -DPULSE_CLIENT
45 endif
46
47 libmmfsound_la_LIBADD = $(MMCOMMON_LIBS) \
48                         $(MMSESSION_LIBS) \
49                         $(GLIB2_LIBS) \
50                         $(GIO_LIBS) \
51                         $(srcdir)/common/libmmfsoundcommon.la \
52                         $(PASIMPLE_LIBS) \
53                         $(PA_LIBS) \
54                         $(VCONF_LIBS)
55
56
57 libmmfsound_la_LDFLAGS = -version-info 1:0:1
58
59 #For logmanager
60 libmmfsound_la_CFLAGS += $(MMLOGSVR_CFLAGS) -DMMF_LOG_OWNER=0x020 -DMMF_DEBUG_PREFIX=\"MMF-SOUND\"
61 libmmfsound_la_LIBADD += $(MMLOGSVR_LIBS)
62
63 if USE_FOCUS
64 libmmfsound_la_CFLAGS += -DUSE_FOCUS
65 endif
66
67
68 lib_LTLIBRARIES += libmmfkeysound.la
69
70 includelibmmfkeysounddir = $(includedir)/mmf
71
72 libmmfkeysound_la_SOURCES = mm_sound_keysound.c
73
74 libmmfkeysound_la_CFLAGS = -I$(srcdir)/include \
75                         $(MMCOMMON_CFLAGS) \
76                         $(VCONF_CFLAGS) \
77                         $(GIO_CFLAGS) \
78                         -D_USE_INTERNAL_SOUND_PATH_
79
80 libmmfkeysound_la_LIBADD = $(MMCOMMON_LIBS) $(VCONF_LIBS) $(GIO_LIBS)
81 libmmfkeysound_la_CFLAGS += $(MMLOGSVR_CFLAGS) -DMMF_LOG_OWNER=0x020 -DMMF_DEBUG_PREFIX=\"MMF-SOUND\"
82 libmmfkeysound_la_LIBADD += $(MMLOGSVR_LIBS)
83
84 lib_LTLIBRARIES += libmmfbootsound.la
85
86 includelibmmfbootsounddir = $(includedir)/mmf
87
88 libmmfbootsound_la_SOURCES = mm_sound_bootsound.c
89 libmmfbootsound_la_CFLAGS = -I$(srcdir)/include \
90                         $(MMCOMMON_CFLAGS) \
91                         $(VCONF_CFLAGS) \
92                         -D_USE_INTERNAL_SOUND_PATH_
93
94 libmmfbootsound_la_LIBADD = $(MMCOMMON_LIBS) $(VCONF_LIBS)
95 libmmfbootsound_la_CFLAGS += $(MMLOGSVR_CFLAGS) -DMMF_LOG_OWNER=0x020 -DMMF_DEBUG_PREFIX=\"MMF-SOUND\"
96 libmmfbootsound_la_LIBADD += $(MMLOGSVR_LIBS)