Support dual ABI
[platform/core/uifw/dali-adaptor.git] / build / tizen / plugins / Makefile.am
1 #
2 # Copyright (c) 2015 Samsung Electronics Co., Ltd.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 # Build the Dali feedback plugin
18
19 plugin_src_dir = ../../../plugins
20
21 include ../../../plugins/sounds/file.list
22 include ../../../plugins/file.list
23
24 plugin_sounds_dir = ../../../plugins/sounds
25
26 lib_LTLIBRARIES =
27
28 if ENABLE_CXX03_ABI
29
30 if USE_FEEDBACK
31 lib_LTLIBRARIES += libdali-feedback-plugin.la
32 endif
33
34 if WAYLAND
35 if USE_VIDEOPLAYER
36 lib_LTLIBRARIES += libdali-video-player-plugin.la
37 endif
38 endif
39
40 else
41
42 if USE_FEEDBACK
43 lib_LTLIBRARIES += libdali-feedback-plugin-cxx11.la
44 endif
45
46 if WAYLAND
47
48 if USE_VIDEOPLAYER
49 lib_LTLIBRARIES += libdali-video-player-plugin-cxx11.la
50 endif
51 endif
52 endif
53
54 if USE_FEEDBACK
55 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
56 dalisound_DATA = ${dali_plugin_sound_files}
57
58 # Feedback
59 LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES = \
60                      $(feedback_plugin_src_files)
61
62
63 libdali_feedback_plugin_la_DEPENDENCIES =
64
65 LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS = -DDALI_COMPILATION \
66                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
67                       $(DLOG_CFLAGS) \
68                       $(DALICORE_CFLAGS) \
69                       $(MMFSOUND_CFLAGS) \
70                       $(FEEDBACK_CFLAGS) \
71                       $(DALI_PROFILE_CFLAGS) \
72                       $(DALI_ADAPTOR_CFLAGS) \
73                       -I../../../adaptors/public-api \
74                       -I../../../adaptors/integration-api \
75                       -I../../../adaptors/public-api/adaptor-framework \
76                       -I../../../adaptors/devel-api/adaptor-framework \
77                       -Werror -Wall
78
79 LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD = \
80                       $(DLOG_LIBS) \
81                       $(MMFSOUND_LIBS)
82
83 LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS = \
84                       -rdynamic
85
86 LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD += \
87                       $(FEEDBACK_LIBS)
88
89 endif
90
91 # VideoPlayer
92 if WAYLAND
93 if USE_VIDEOPLAYER
94
95 LIBDALI_VIDEO_PLAYER_PLUGIN_LA_SOURCES = \
96                      $(video_player_plugin_src_files)
97
98 libdali_video_player_plugin_la__DEPENDENCIES =
99
100 LIBDALI_VIDEO_PLAYER_PLUGIN_LA_CXXFLAGS = -DDALI_COMPILATION \
101                       -DDALI_ADAPTOR_COMPILATION \
102                       $(DLOG_CFLAGS) \
103                       $(DALICORE_CFLAGS) \
104                       $(ECORE_WAYLAND_CFLAGS) \
105                       $(CAPI_MEDIA_PLAYER_CFLAGS) \
106                       $(DALI_PROFILE_CFLAGS) \
107                       $(DALI_ADAPTOR_CFLAGS) \
108                       -I../../../adaptors/public-api \
109                       -I../../../adaptors/devel-api \
110                       -I../../../adaptors/devel-api/adaptor-framework \
111                       -I../../../adaptors/integration-api \
112                       -I../../../adaptors/public-api/adaptor-framework \
113                       -I../../../plugins/video-player \
114                       -Werror -Wall
115
116 LIBDALI_VIDEO_PLAYER_PLUGIN_LA_LIBADD = \
117                       $(DLOG_LIBS) \
118                       $(ECORE_WAYLAND_LIBS) \
119                       $(CAPI_MEDIA_PLAYER_LIBS)
120
121 LIBDALI_VIDEO_PLAYER_PLUGIN_LA_LDFLAGS = \
122                       -rdynamic
123
124 endif # USE_VIDEOPLAYER
125 endif # WAYLAND
126
127 if ENABLE_CXX03_ABI
128
129 if USE_FEEDBACK
130 libdali_feedback_plugin_la_SOURCES = $(LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES)
131 libdali_feedback_plugin_la_LIBADD = $(LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD)
132 libdali_feedback_plugin_la_CXXFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS)
133 libdali_feedback_plugin_la_LDFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS)
134
135 if ENABLE_RENAME_SO
136 #rename
137 install: install-am
138         rm -rf $(libdir)/libdali_feedback_plugin.so
139         rm -rf $(libdir)/libdali_feedback_plugin-cxx03.so
140         ln -s $(libdir)/libdali_feedback_plugin.so.0.0.* $(libdir)/libdali_feedback_plugin-cxx03.so
141 endif
142 endif
143
144 if WAYLAND
145 if USE_VIDEOPLAYER
146 libdali_video_player_plugin_la_SOURCES = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_SOURCES)
147 libdali_video_player_plugin_la_CXXFLAGS = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_CXXFLAGS)
148 libdali_video_player_plygin_la_LIBADD = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_LIBADD)
149 libdali_video_player_plugin_la_LDFLAGS = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_LDFLAGS)
150
151 if ENABLE_RENAME_SO
152 #rename
153 install: install-am
154         rm -rf $(libdir)/libdali_video_player_plugin.so
155         rm -rf $(libdir)/libdali_video_player_plugin-cxx03.so
156         ln -s $(libdir)/libdali_video_player_plugin.so.0.0.* $(libdir)/libdali_video_player_plugin-cxx03.so
157 endif
158 endif
159 endif
160
161 else # CXX03
162
163 if USE_FEEDBACK
164 libdali_feedback_plugin_cxx11_la_SOURCES = $(LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES)
165 libdali_feedback_plugin_cxx11_la_LIBADD = $(LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD)
166 libdali_feedback_plugin_cxx11_la_CXXFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS)
167 libdali_feedback_plugin_cxx11_la_LDFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS)
168
169 if ENABLE_RENAME_SO
170 #rename
171 install: install-am
172         rm -rf $(libdir)/libdali_feedback_plugin-cxx11.so
173         rm -rf $(libdir)/libdali_feedback_plugin.so
174         ln -s $(libdir)/libdali_feedback_plugin-cxx11.so.0.0.* $(libdir)/libdali_feedback_plugin.so
175 endif
176 endif
177
178 if WAYLAND
179 if USE_VIDEOPLAYER
180 libdali_video_player_plugin_cxx11_la_SOURCES = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_SOURCES)
181 libdali_video_player_plugin_cxx11_la_CXXFLAGS = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_CXXFLAGS)
182 libdali_video_player_plygin_cxx11_la_LIBADD = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_LIBADD)
183 libdali_video_player_plugin_cxx11_la_LDFLAGS = $(LIBDALI_VIDEO_PLAYER_PLUGIN_LA_LDFLAGS)
184
185 if ENABLE_RENAME_SO
186 #rename
187 install: install-am
188         rm -rf $(libdir)/libdali_video_player_plugin-cxx11.so
189         rm -rf $(libdir)/libdali_video_player_plugin.so
190         ln -s $(libdir)/libdali_video_player_plugin-cxx11.so.0.0.* $(libdir)/libdali_video_player_plugin.so
191 endif
192 endif
193 endif
194
195 endif # CXX03