Change of plugins build and fix of efl-assist build issue
[platform/core/uifw/dali-adaptor.git] / build / tizen / plugins / Makefile.am
1 #
2 # Copyright (c) 2014 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_BULLET
33 lib_LTLIBRARIES += libdali-bullet-plugin.la
34 endif
35
36 if USE_FEEDBACK
37 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
38 dalisound_DATA = ${dali_plugin_sound_files}
39
40 # Feedback
41 libdali_feedback_plugin_la_SOURCES = \
42                      $(plugin_src_files)
43
44 libdali_feedback_plugin_la_DEPENDENCIES =
45
46 libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
47                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
48                       $(DLOG_CFLAGS) \
49                       $(DALICORE_CFLAGS) \
50                       $(MMFSOUND_CFLAGS) \
51                       $(FEEDBACK_CFLAGS) \
52                       $(DALI_PROFILE_CFLAGS) \
53                       -I../../../adaptors/public-api \
54                       -I../../../adaptors/public-api/adaptor-framework \
55                       -Werror -Wall
56
57 libdali_feedback_plugin_la_LIBADD = \
58                       $(DLOG_LIBS) \
59                       $(MMFSOUND_LIBS)
60
61 libdali_feedback_plugin_la_LDFLAGS = \
62                       -rdynamic
63
64 if MOBILE_PROFILE
65 libdali_feedback_plugin_la_CXXFLAGS += \
66                       $(DEVICED_CFLAGS)
67
68 libdali_feedback_plugin_la_LIBADD += \
69                       $(DEVICED_LIBS)
70 endif
71
72 if TV_PROFILE
73 libdali_feedback_plugin_la_CXXFLAGS += \
74                       $(HAPTIC_CFLAGS)
75
76 libdali_feedback_plugin_la_LIBADD += \
77                       $(HAPTIC_LIBS)
78 endif
79
80 if COMMON_PROFILE
81 libdali_feedback_plugin_la_CXXFLAGS += \
82                       $(HAPTIC_CFLAGS)
83
84 libdali_feedback_plugin_la_LIBADD += \
85                       $(HAPTIC_LIBS)
86 endif
87
88 libdali_feedback_plugin_la_LIBADD += \
89                       $(FEEDBACK_LIBS)
90
91 endif
92
93 if USE_BULLET
94
95 # Bullet Physics
96 libdali_bullet_plugin_la_SOURCES = \
97                       $(bullet_plugin_src_files)
98
99 libdali_bullet_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
100                       $(DALICORE_CFLAGS) \
101                       $(DLOG_CFLAGS) \
102                       $(BULLET_CFLAGS) \
103                       -I../../.. \
104                       -Werror -Wall
105
106 libdali_bullet_plugin_la_LIBADD = \
107                       $(DLOG_LIBS) \
108                       $(BULLET_LIBS)
109
110 libdali_bullet_plugin_la_LDFLAGS = \
111                       -rdynamic
112
113 libdali_bullet_plugin_la_DEPENDENCIES =
114 endif