c811116b65a7dfddf135e3420baaf2ecad757eac
[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                  include/mm_camcorder_resource.h
22
23 libmmfcamcorder_la_SOURCES = mm_camcorder.c \
24                              mm_camcorder_internal.c \
25                              mm_camcorder_attribute.c \
26                              mm_camcorder_stillshot.c \
27                              mm_camcorder_videorec.c \
28                              mm_camcorder_audiorec.c \
29                              mm_camcorder_gstcommon.c \
30                              mm_camcorder_platform.c \
31                              mm_camcorder_configure.c \
32                              mm_camcorder_util.c \
33                              mm_camcorder_exifinfo.c \
34                              mm_camcorder_sound.c
35
36 libmmfcamcorder_la_CFLAGS = -I$(srcdir)/include \
37                              $(GST_CFLAGS) \
38                              $(GST_PLUGIN_BASE_CFLAGS) \
39                              $(GST_VIDEO_CFLAGS) \
40                              $(GST_APP_CFLAGS) \
41                              $(EXIF_CFLAGS) \
42                              $(MM_COMMON_CFLAGS) \
43                              $(MMSOUND_CFLAGS) \
44                              $(VCONF_CFLAGS) \
45                              $(MMUTIL_IMGP_CFLAGS) \
46                              $(MMUTIL_JPEG_CFLAGS) \
47                              $(TBM_CFLAGS) \
48                              $(STORAGE_CFLAGS) \
49                              $(TTRACE_CFLAGS) \
50                              $(DPM_CFLAGS) \
51                              $(SYSTEMINFO_CFLAGS)
52
53 libmmfcamcorder_la_LIBADD = \
54                             $(GLIB_LIBS) \
55                             $(GIO_LIBS) \
56                             $(GST_LIBS) \
57                             $(GST_PLUGIN_BASE_LIBS) \
58                             $(GST_VIDEO_LIBS) \
59                             $(GST_APP_LIBS) \
60                             $(MM_COMMON_LIBS) \
61                             $(EXIF_LIBS) \
62                             $(MMSOUND_LIBS) \
63                             $(VCONF_LIBS) \
64                             $(MMUTIL_IMGP_LIBS) \
65                             $(MMUTIL_JPEG_LIBS) \
66                             $(TBM_LIBS) \
67                             $(TTRACE_LIBS) \
68                             $(DPM_LIBS) \
69                             $(STORAGE_LIBS)
70
71 libmmfcamcorder_la_CFLAGS += -DMMF_LOG_OWNER=0x010 -D_FILE_OFFSET_BITS=64
72 libmmfcamcorder_la_CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections
73 libmmfcamcorder_la_LDFLAGS = -Wl,--gc-sections
74 libmmfcamcorder_la_LIBADD += $(SYSTEMINFO_LIBS)
75
76 if MURPHY_SUPPORT
77 libmmfcamcorder_la_SOURCES += mm_camcorder_resource.c
78 libmmfcamcorder_la_CFLAGS += $(MURPHY_RESOURCE_CFLAGS) $(MURPHY_GLIB_CFLAGS) -D_MMCAMCORDER_MURPHY_SUPPORT
79 libmmfcamcorder_la_LIBADD += $(MURPHY_RESOURCE_LIBS) $(MURPHY_GLIB_LIBS)
80 endif
81
82 if RM_SUPPORT
83 libmmfcamcorder_la_CFLAGS += $(RM_CFLAGS) $(AUL_CFLAGS) -D_MMCAMCORDER_RM_SUPPORT
84 libmmfcamcorder_la_LIBADD += $(RM_LIBS) $(AUL_LIBS)
85 endif
86
87 if PRODUCT_TV
88 libmmfcamcorder_la_CFLAGS += -D_MMCAMCORDER_PRODUCT_TV
89 endif
90
91 install-exec-hook:
92                                         mkdir -p $(DESTDIR)$(prefix)/share/sounds/mm-camcorder && \
93                                         cp $(srcdir)/../sounds/* $(DESTDIR)$(prefix)/share/sounds/mm-camcorder/
94