Update build system for multiple tizen profiles
[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 Flora License, Version 1.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://floralicense.org/license/
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/tizen \
49                       -Werror -Wall
50
51 libdali_feedback_plugin_la_LIBADD = \
52                       $(DLOG_LIBS) \
53                       $(MMFSOUND_LIBS)
54
55 libdali_feedback_plugin_la_LDFLAGS = \
56                       -rdynamic
57
58 if MOBILE_PROFILE
59 libdali_feedback_plugin_la_CXXFLAGS += \
60                       $(DEVICED_CFLAGS)
61
62 libdali_feedback_plugin_la_LIBADD += \
63                       $(DEVICED_LIBS)
64 endif
65
66 if TV_PROFILE
67 libdali_feedback_plugin_la_CXXFLAGS += \
68                       $(HAPTIC_CFLAGS)
69
70 libdali_feedback_plugin_la_LIBADD += \
71                       $(HAPTIC_LIBS)
72 endif
73
74 if COMMON_PROFILE
75 libdali_feedback_plugin_la_CXXFLAGS += \
76                       $(HAPTIC_CFLAGS)
77
78 libdali_feedback_plugin_la_LIBADD += \
79                       $(HAPTIC_LIBS)
80 endif
81
82 libdali_feedback_plugin_la_LIBADD += \
83                       $(FEEDBACK_LIBS)
84
85
86 # Bullet Physics
87 libdali_bullet_plugin_la_SOURCES = \
88                       $(bullet_plugin_src_files)
89
90 libdali_bullet_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
91                       $(DALICORE_CFLAGS) \
92                       $(DLOG_CFLAGS) \
93                       $(BULLET_CFLAGS) \
94                       -I../../.. \
95                       -Werror -Wall
96
97 libdali_bullet_plugin_la_LIBADD = \
98                       $(DLOG_LIBS) \
99                       $(BULLET_LIBS)
100
101 libdali_bullet_plugin_la_LDFLAGS = \
102                       -rdynamic
103
104 libdali_bullet_plugin_la_DEPENDENCIES =