Merge branch devel/master (1.0.49) into tizen
[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 USE_FEEDBACK
33 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
34 dalisound_DATA = ${dali_plugin_sound_files}
35
36 # Feedback
37 libdali_feedback_plugin_la_SOURCES = \
38                      $(plugin_src_files)
39
40 libdali_feedback_plugin_la_DEPENDENCIES =
41
42 libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
43                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
44                       $(DLOG_CFLAGS) \
45                       $(DALICORE_CFLAGS) \
46                       $(MMFSOUND_CFLAGS) \
47                       $(FEEDBACK_CFLAGS) \
48                       $(DALI_PROFILE_CFLAGS) \
49                       $(DALI_ADAPTOR_CFLAGS) \
50                       -I../../../adaptors/public-api \
51                       -I../../../adaptors/integration-api \
52                       -I../../../adaptors/public-api/adaptor-framework \
53                       -Werror -Wall
54
55 libdali_feedback_plugin_la_LIBADD = \
56                       $(DLOG_LIBS) \
57                       $(MMFSOUND_LIBS)
58
59 libdali_feedback_plugin_la_LDFLAGS = \
60                       -rdynamic
61
62 if MOBILE_PROFILE
63 libdali_feedback_plugin_la_CXXFLAGS += \
64                       $(DEVICED_CFLAGS)
65
66 libdali_feedback_plugin_la_LIBADD += \
67                       $(DEVICED_LIBS)
68 endif
69
70 if TV_PROFILE
71 libdali_feedback_plugin_la_CXXFLAGS += \
72                       $(HAPTIC_CFLAGS)
73
74 libdali_feedback_plugin_la_LIBADD += \
75                       $(HAPTIC_LIBS)
76 endif
77
78 if COMMON_PROFILE
79 libdali_feedback_plugin_la_CXXFLAGS += \
80                       $(HAPTIC_CFLAGS)
81
82 libdali_feedback_plugin_la_LIBADD += \
83                       $(HAPTIC_LIBS)
84 endif
85
86 libdali_feedback_plugin_la_LIBADD += \
87                       $(FEEDBACK_LIBS)
88
89 endif