Rename library name for cxx11 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
55 if ENABLE_CXX03_ABI
56
57 if USE_FEEDBACK
58 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
59 dalisound_DATA = ${dali_plugin_sound_files}
60
61 # Feedback
62 libdali_feedback_plugin_la_SOURCES = \
63                      $(feedback_plugin_src_files)
64
65 libdali_feedback_plugin_la_DEPENDENCIES =
66
67 libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
68                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
69                       $(DLOG_CFLAGS) \
70                       $(DALICORE_CFLAGS) \
71                       $(MMFSOUND_CFLAGS) \
72                       $(FEEDBACK_CFLAGS) \
73                       $(DALI_PROFILE_CFLAGS) \
74                       $(DALI_ADAPTOR_CFLAGS) \
75                       -I../../../adaptors/public-api \
76                       -I../../../adaptors/integration-api \
77                       -I../../../adaptors/public-api/adaptor-framework \
78                       -I../../../adaptors/devel-api/adaptor-framework \
79                       -Werror -Wall
80
81 libdali_feedback_plugin_la_LIBADD = \
82                       $(DLOG_LIBS) \
83                       $(MMFSOUND_LIBS)
84
85 libdali_feedback_plugin_la_LDFLAGS = \
86                       -rdynamic
87
88 libdali_feedback_plugin_la_LIBADD += \
89                       $(FEEDBACK_LIBS)
90
91 endif
92
93 # VideoPlayer
94 if WAYLAND
95 if USE_VIDEOPLAYER
96
97 libdali_video_player_plugin_la_SOURCES = \
98                      $(video_player_plugin_src_files)
99
100 libdali_video_player_plugin_la_DEPENDENCIES =
101
102 libdali_video_player_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
103                       -DDALI_ADAPTOR_COMPILATION \
104                       $(DLOG_CFLAGS) \
105                       $(DALICORE_CFLAGS) \
106                       $(ECORE_WAYLAND_CFLAGS) \
107                       $(CAPI_MEDIA_PLAYER_CFLAGS) \
108                       $(DALI_PROFILE_CFLAGS) \
109                       $(DALI_ADAPTOR_CFLAGS) \
110                       -I../../../adaptors/public-api \
111                       -I../../../adaptors/devel-api \
112                       -I../../../adaptors/devel-api/adaptor-framework \
113                       -I../../../adaptors/integration-api \
114                       -I../../../adaptors/public-api/adaptor-framework \
115                       -I../../../plugins/video-player \
116                       -Werror -Wall
117
118 libdali_video_player_plugin_la_LIBADD = \
119                       $(DLOG_LIBS) \
120                       $(ECORE_WAYLAND_LIBS) \
121                       $(CAPI_MEDIA_PLAYER_LIBS)
122
123 libdali_video_player_plugin_la_LDFLAGS = \
124                       -rdynamic
125
126 endif # USE_VIDEOPLAYER
127 endif # WAYLAND
128
129 else # CXX03
130
131 if USE_FEEDBACK
132 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
133 dalisound_DATA = ${dali_plugin_sound_files}
134
135
136 # Feedback
137 libdali_feedback_plugin_cxx11_la_SOURCES = \
138                      $(feedback_plugin_src_files)
139
140 libdali_feedback_plugin_cxx11_la_DEPENDENCIES =
141
142 libdali_feedback_plugin_cxx11_la_CXXFLAGS = -DDALI_COMPILATION \
143                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
144                       $(DLOG_CFLAGS) \
145                       $(DALICORE_CFLAGS) \
146                       $(MMFSOUND_CFLAGS) \
147                       $(FEEDBACK_CFLAGS) \
148                       $(DALI_PROFILE_CFLAGS) \
149                       $(DALI_ADAPTOR_CFLAGS) \
150                       -I../../../adaptors/public-api \
151                       -I../../../adaptors/integration-api \
152                       -I../../../adaptors/public-api/adaptor-framework \
153                       -I../../../adaptors/devel-api/adaptor-framework \
154                       -Werror -Wall
155
156 libdali_feedback_plugin_cxx11_la_LIBADD = \
157                       $(DLOG_LIBS) \
158                       $(MMFSOUND_LIBS)
159
160 libdali_feedback_plugin_cxx11_la_LDFLAGS = \
161                       -rdynamic
162
163 libdali_feedback_plugin_cxx11_la_LIBADD += \
164                       $(FEEDBACK_LIBS)
165
166 endif
167
168 # VideoPlayer
169 if WAYLAND
170 if USE_VIDEOPLAYER
171
172 libdali_video_player_plugin_cxx11_la_SOURCES = \
173                      $(video_player_plugin_src_files)
174
175 libdali_video_player_plugin_cxx11_la_DEPENDENCIES =
176
177 libdali_video_player_plugin_cxx11_la_CXXFLAGS = -DDALI_COMPILATION \
178                       -DDALI_ADAPTOR_COMPILATION \
179                       $(DLOG_CFLAGS) \
180                       $(DALICORE_CFLAGS) \
181                       $(ECORE_WAYLAND_CFLAGS) \
182                       $(CAPI_MEDIA_PLAYER_CFLAGS) \
183                       $(DALI_PROFILE_CFLAGS) \
184                       $(DALI_ADAPTOR_CFLAGS) \
185                       -I../../../adaptors/public-api \
186                       -I../../../adaptors/devel-api \
187                       -I../../../adaptors/devel-api/adaptor-framework \
188                       -I../../../adaptors/integration-api \
189                       -I../../../adaptors/public-api/adaptor-framework \
190                       -I../../../plugins/video-player \
191                       -Werror -Wall
192
193 libdali_video_player_plugin_cxx11_la_LIBADD = \
194                       $(DLOG_LIBS) \
195                       $(ECORE_WAYLAND_LIBS) \
196                       $(CAPI_MEDIA_PLAYER_LIBS)
197
198 libdali_video_player_plugin_cxx11_la_LDFLAGS = \
199                       -rdynamic
200
201 endif
202 endif
203
204 endif # CXX03