#
# Copyright (c) 2014 Samsung Electronics Co., Ltd.
#
-# Licensed under the Flora License, Version 1.0 (the License);
+# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
-# http://floralicense.org/license/
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an AS IS BASIS,
+# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
plugin_sounds_dir = ../../../plugins/sounds
-lib_LTLIBRARIES = libdali-feedback-plugin.la
+lib_LTLIBRARIES =
+
+if USE_FEEDBACK
+lib_LTLIBRARIES += libdali-feedback-plugin.la
+endif
if USE_BULLET
lib_LTLIBRARIES += libdali-bullet-plugin.la
endif
+if USE_FEEDBACK
dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
dalisound_DATA = ${dali_plugin_sound_files}
$(DLOG_CFLAGS) \
$(DALICORE_CFLAGS) \
$(MMFSOUND_CFLAGS) \
- $(DEVICED_CFLAGS) \
$(FEEDBACK_CFLAGS) \
- -I../../../adaptors/tizen \
+ $(DALI_PROFILE_CFLAGS) \
+ $(DALI_ADAPTOR_CFLAGS) \
+ -I../../../adaptors/public-api \
+ -I../../../adaptors/public-api/adaptor-framework \
-Werror -Wall
libdali_feedback_plugin_la_LIBADD = \
$(DLOG_LIBS) \
- $(MMFSOUND_LIBS) \
- $(DEVICED_LIBS) \
- $(FEEDBACK_LIBS)
+ $(MMFSOUND_LIBS)
libdali_feedback_plugin_la_LDFLAGS = \
-rdynamic
+if MOBILE_PROFILE
+libdali_feedback_plugin_la_CXXFLAGS += \
+ $(DEVICED_CFLAGS)
+
+libdali_feedback_plugin_la_LIBADD += \
+ $(DEVICED_LIBS)
+endif
+
+if TV_PROFILE
+libdali_feedback_plugin_la_CXXFLAGS += \
+ $(HAPTIC_CFLAGS)
+
+libdali_feedback_plugin_la_LIBADD += \
+ $(HAPTIC_LIBS)
+endif
+
+if COMMON_PROFILE
+libdali_feedback_plugin_la_CXXFLAGS += \
+ $(HAPTIC_CFLAGS)
+
+libdali_feedback_plugin_la_LIBADD += \
+ $(HAPTIC_LIBS)
+endif
+
+libdali_feedback_plugin_la_LIBADD += \
+ $(FEEDBACK_LIBS)
+
+endif
+
+if USE_BULLET
+
# Bullet Physics
libdali_bullet_plugin_la_SOURCES = \
$(bullet_plugin_src_files)
$(DALICORE_CFLAGS) \
$(DLOG_CFLAGS) \
$(BULLET_CFLAGS) \
+ $(DALI_ADAPTOR_CFLAGS) \
-I../../.. \
-Werror -Wall
-rdynamic
libdali_bullet_plugin_la_DEPENDENCIES =
+endif