Fix build error on wearable profile(no wayland)
[platform/core/multimedia/libmm-camcorder.git] / src / Makefile.am
1 ACLOCAL_AMFLAGS='-I m4'
2
3 lib_LTLIBRARIES = libmmfcamcorder.la
4
5 includelibmmfcamcorderdir = $(includedir)/mmf
6
7 includelibmmfcamcorder_HEADERS = include/mm_camcorder.h
8
9 noinst_HEADERS = include/mm_camcorder_audiorec.h \
10                  include/mm_camcorder_attribute.h \
11                  include/mm_camcorder_configure.h \
12                  include/mm_camcorder_gstcommon.h \
13                  include/mm_camcorder_internal.h \
14                  include/mm_camcorder_platform.h \
15                  include/mm_camcorder_stillshot.h \
16                  include/mm_camcorder_videorec.h \
17                  include/mm_camcorder_util.h \
18                  include/mm_camcorder_exifinfo.h\
19                  include/mm_camcorder_exifdef.h \
20                  include/mm_camcorder_sound.h
21
22 libmmfcamcorder_la_SOURCES = mm_camcorder.c \
23                              mm_camcorder_internal.c \
24                              mm_camcorder_attribute.c \
25                              mm_camcorder_stillshot.c \
26                              mm_camcorder_videorec.c \
27                              mm_camcorder_audiorec.c \
28                              mm_camcorder_gstcommon.c \
29                              mm_camcorder_platform.c \
30                              mm_camcorder_configure.c \
31                              mm_camcorder_util.c \
32                              mm_camcorder_exifinfo.c \
33                              mm_camcorder_sound.c
34
35 libmmfcamcorder_la_CFLAGS = -I$(srcdir)/include \
36                              $(GST_CFLAGS) \
37                              $(GST_PLUGIN_BASE_CFLAGS) \
38                              $(GST_VIDEO_CFLAGS) \
39                              $(GST_APP_CFLAGS) \
40                              $(EXIF_CFLAGS) \
41                              $(MM_COMMON_CFLAGS) \
42                              $(MMSOUND_CFLAGS) \
43                              $(SNDFILE_CFLAGS) \
44                              $(VCONF_CFLAGS) \
45                              $(MMUTIL_IMGP_CFLAGS) \
46                              $(MMUTIL_JPEG_CFLAGS) \
47                              $(TBM_CFLAGS) \
48                              $(SYSTEMINFO_CFLAGS)
49
50 libmmfcamcorder_la_LIBADD = \
51                             $(GLIB_LIBS) \
52                             $(GIO_LIBS) \
53                             $(GST_LIBS) \
54                             $(GST_PLUGIN_BASE_LIBS) \
55                             $(GST_VIDEO_LIBS) \
56                             $(GST_APP_LIBS) \
57                             $(MM_COMMON_LIBS) \
58                             $(EXIF_LIBS) \
59                             $(MMSOUND_LIBS) \
60                             $(SNDFILE_LIBS) \
61                             $(VCONF_LIBS) \
62                             $(MMUTIL_IMGP_LIBS) \
63                             $(MMUTIL_JPEG_LIBS) \
64                             $(TBM_LIBS)
65
66 libmmfcamcorder_la_CFLAGS += -DMMF_LOG_OWNER=0x010 -D_FILE_OFFSET_BITS=64
67 libmmfcamcorder_la_CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections
68 libmmfcamcorder_la_LDFLAGS = -Wl,--gc-sections \
69                              -Wl,-init,_mmcamcorder_constructor
70 libmmfcamcorder_la_LIBADD += $(SYSTEMINFO_LIBS)
71
72 if WAYLAND_SUPPORT
73 includelibmmfcamcorder_HEADERS += include/mm_camcorder_mused.h
74 libmmfcamcorder_la_SOURCES += mm_camcorder_mused.c
75 libmmfcamcorder_la_CFLAGS += $(GST_WAYLAND_CFLAGS)
76 libmmfcamcorder_la_LIBADD += $(GST_WAYLAND_LIBS)
77 else
78 noinst_HEADERS += include/mm_camcorder_mused.h
79 endif
80
81 install-exec-hook:
82                                         mkdir -p $(DESTDIR)$(prefix)/share/sounds/mm-camcorder && \
83                                         cp $(srcdir)/../sounds/* $(DESTDIR)$(prefix)/share/sounds/mm-camcorder/
84