Public API headers are installed in the correct folder
[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 = libdali-feedback-plugin.la
27
28 if USE_BULLET
29 lib_LTLIBRARIES += libdali-bullet-plugin.la
30 endif
31
32 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
33 dalisound_DATA = ${dali_plugin_sound_files}
34
35 # Feedback
36 libdali_feedback_plugin_la_SOURCES = \
37                      $(plugin_src_files)
38
39 libdali_feedback_plugin_la_DEPENDENCIES =
40
41 libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
42                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
43                       $(DLOG_CFLAGS) \
44                       $(DALICORE_CFLAGS) \
45                       $(MMFSOUND_CFLAGS) \
46                       $(FEEDBACK_CFLAGS) \
47                       $(DALI_PROFILE_CFLAGS) \
48                       -I../../../adaptors/public-api \
49                       -I../../../adaptors/public-api/adaptor-framework \
50                       -Werror -Wall
51
52 libdali_feedback_plugin_la_LIBADD = \
53                       $(DLOG_LIBS) \
54                       $(MMFSOUND_LIBS)
55
56 libdali_feedback_plugin_la_LDFLAGS = \
57                       -rdynamic
58
59 if MOBILE_PROFILE
60 libdali_feedback_plugin_la_CXXFLAGS += \
61                       $(DEVICED_CFLAGS)
62
63 libdali_feedback_plugin_la_LIBADD += \
64                       $(DEVICED_LIBS)
65 endif
66
67 if TV_PROFILE
68 libdali_feedback_plugin_la_CXXFLAGS += \
69                       $(HAPTIC_CFLAGS)
70
71 libdali_feedback_plugin_la_LIBADD += \
72                       $(HAPTIC_LIBS)
73 endif
74
75 if COMMON_PROFILE
76 libdali_feedback_plugin_la_CXXFLAGS += \
77                       $(HAPTIC_CFLAGS)
78
79 libdali_feedback_plugin_la_LIBADD += \
80                       $(HAPTIC_LIBS)
81 endif
82
83 libdali_feedback_plugin_la_LIBADD += \
84                       $(FEEDBACK_LIBS)
85
86
87 # Bullet Physics
88 libdali_bullet_plugin_la_SOURCES = \
89                       $(bullet_plugin_src_files)
90
91 libdali_bullet_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
92                       $(DALICORE_CFLAGS) \
93                       $(DLOG_CFLAGS) \
94                       $(BULLET_CFLAGS) \
95                       -I../../.. \
96                       -Werror -Wall
97
98 libdali_bullet_plugin_la_LIBADD = \
99                       $(DLOG_LIBS) \
100                       $(BULLET_LIBS)
101
102 libdali_bullet_plugin_la_LDFLAGS = \
103                       -rdynamic
104
105 libdali_bullet_plugin_la_DEPENDENCIES =