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