Merge remote-tracking branch 'origin/tizen' into new_text
[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                       $(DALI_ADAPTOR_CFLAGS) \
54                       -I../../../adaptors/public-api \
55                       -I../../../adaptors/public-api/adaptor-framework \
56                       -Werror -Wall
57
58 libdali_feedback_plugin_la_LIBADD = \
59                       $(DLOG_LIBS) \
60                       $(MMFSOUND_LIBS)
61
62 libdali_feedback_plugin_la_LDFLAGS = \
63                       -rdynamic
64
65 if MOBILE_PROFILE
66 libdali_feedback_plugin_la_CXXFLAGS += \
67                       $(DEVICED_CFLAGS)
68
69 libdali_feedback_plugin_la_LIBADD += \
70                       $(DEVICED_LIBS)
71 endif
72
73 if TV_PROFILE
74 libdali_feedback_plugin_la_CXXFLAGS += \
75                       $(HAPTIC_CFLAGS)
76
77 libdali_feedback_plugin_la_LIBADD += \
78                       $(HAPTIC_LIBS)
79 endif
80
81 if COMMON_PROFILE
82 libdali_feedback_plugin_la_CXXFLAGS += \
83                       $(HAPTIC_CFLAGS)
84
85 libdali_feedback_plugin_la_LIBADD += \
86                       $(HAPTIC_LIBS)
87 endif
88
89 libdali_feedback_plugin_la_LIBADD += \
90                       $(FEEDBACK_LIBS)
91
92 endif
93
94 if USE_BULLET
95
96 # Bullet Physics
97 libdali_bullet_plugin_la_SOURCES = \
98                       $(bullet_plugin_src_files)
99
100 libdali_bullet_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
101                       $(DALICORE_CFLAGS) \
102                       $(DLOG_CFLAGS) \
103                       $(BULLET_CFLAGS) \
104                       $(DALI_ADAPTOR_CFLAGS) \
105                       -I../../.. \
106                       -Werror -Wall
107
108 libdali_bullet_plugin_la_LIBADD = \
109                       $(DLOG_LIBS) \
110                       $(BULLET_LIBS)
111
112 libdali_bullet_plugin_la_LDFLAGS = \
113                       -rdynamic
114
115 libdali_bullet_plugin_la_DEPENDENCIES =
116 endif