Revert "[Tizen] feedback-plugin enabled for Unified profile"
[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 USE_FEEDBACK
29 lib_LTLIBRARIES += libdali-feedback-plugin.la
30 endif
31
32 if WAYLAND
33 if USE_VIDEOPLAYER
34 lib_LTLIBRARIES += libdali-video-player-plugin.la
35 endif
36 endif
37
38 if USE_FEEDBACK
39 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
40 dalisound_DATA = ${dali_plugin_sound_files}
41
42 # Feedback
43 libdali_feedback_plugin_la_SOURCES = \
44                      $(feedback_plugin_src_files)
45
46 libdali_feedback_plugin_la_DEPENDENCIES =
47
48 libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
49                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
50                       $(DLOG_CFLAGS) \
51                       $(DALICORE_CFLAGS) \
52                       $(MMFSOUND_CFLAGS) \
53                       $(FEEDBACK_CFLAGS) \
54                       $(DALI_PROFILE_CFLAGS) \
55                       $(DALI_ADAPTOR_CFLAGS) \
56                       -I../../../adaptors/public-api \
57                       -I../../../adaptors/integration-api \
58                       -I../../../adaptors/public-api/adaptor-framework \
59                       -Werror -Wall
60
61 libdali_feedback_plugin_la_LIBADD = \
62                       $(DLOG_LIBS) \
63                       $(MMFSOUND_LIBS)
64
65 libdali_feedback_plugin_la_LDFLAGS = \
66                       -rdynamic
67
68 if MOBILE_PROFILE
69 libdali_feedback_plugin_la_CXXFLAGS += \
70                       $(DEVICED_CFLAGS)
71
72 libdali_feedback_plugin_la_LIBADD += \
73                       $(DEVICED_LIBS)
74 endif
75
76 if TV_PROFILE
77 libdali_feedback_plugin_la_CXXFLAGS += \
78                       $(HAPTIC_CFLAGS)
79
80 libdali_feedback_plugin_la_LIBADD += \
81                       $(HAPTIC_LIBS)
82 endif
83
84 if COMMON_PROFILE
85 libdali_feedback_plugin_la_CXXFLAGS += \
86                       $(HAPTIC_CFLAGS)
87
88 libdali_feedback_plugin_la_LIBADD += \
89                       $(HAPTIC_LIBS)
90 endif
91
92 libdali_feedback_plugin_la_LIBADD += \
93                       $(FEEDBACK_LIBS)
94
95 endif
96
97 # VideoPlayer
98 if WAYLAND
99 if USE_VIDEOPLAYER
100
101 libdali_video_player_plugin_la_SOURCES = \
102                      $(video_player_plugin_src_files)
103
104 libdali_video_player_plugin_la_DEPENDENCIES =
105
106 libdali_video_player_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
107                       -DDALI_ADAPTOR_COMPILATION \
108                       $(DLOG_CFLAGS) \
109                       $(DALICORE_CFLAGS) \
110                       $(ECORE_WAYLAND_CFLAGS) \
111                       $(CAPI_MEDIA_PLAYER_CFLAGS) \
112                       $(DALI_PROFILE_CFLAGS) \
113                       $(DALI_ADAPTOR_CFLAGS) \
114                       -I../../../adaptors/public-api \
115                       -I../../../adaptors/devel-api \
116                       -I../../../adaptors/devel-api/adaptor-framework \
117                       -I../../../adaptors/integration-api \
118                       -I../../../adaptors/public-api/adaptor-framework \
119                       -I../../../plugins/video-player \
120                       -Werror -Wall
121
122 libdali_video_player_plugin_la_LIBADD = \
123                       $(DLOG_LIBS) \
124                       $(ECORE_WAYLAND_LIBS) \
125                       $(CAPI_MEDIA_PLAYER_LIBS)
126
127 libdali_video_player_plugin_la_LDFLAGS = \
128                       -rdynamic
129
130 endif # USE_VIDEOPLAYER
131 endif # WAYLAND