#
-# Copyright (c) 2014 Samsung Electronics Co., Ltd.
+# Copyright (c) 2015 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_BULLET
-lib_LTLIBRARIES += libdali-bullet-plugin.la
+if ENABLE_CXX03_ABI
+
+if USE_FEEDBACK
+lib_LTLIBRARIES += libdali-feedback-plugin.la
+endif
+
+else # ENABLE_CXX03_ABI
+
+if USE_FEEDBACK
+lib_LTLIBRARIES += libdali-feedback-plugin-cxx11.la
endif
+endif # ENABLE_CXX03_ABI
+
+if USE_FEEDBACK
dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
dalisound_DATA = ${dali_plugin_sound_files}
# Feedback
-libdali_feedback_plugin_la_SOURCES = \
- $(plugin_src_files)
+LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES = \
+ $(feedback_plugin_src_files)
+
libdali_feedback_plugin_la_DEPENDENCIES =
-libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
+LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS = -DDALI_COMPILATION \
-DDALI_SOUND_DIR="\"${dalisounddir}\"" \
$(DLOG_CFLAGS) \
$(DALICORE_CFLAGS) \
$(MMFSOUND_CFLAGS) \
$(FEEDBACK_CFLAGS) \
$(DALI_PROFILE_CFLAGS) \
- -I../../../adaptors/tizen \
+ $(DALI_ADAPTOR_CFLAGS) \
+ -I../../../adaptors/public-api \
+ -I../../../adaptors/integration-api \
+ -I../../../adaptors/public-api/adaptor-framework \
+ -I../../../adaptors/devel-api/adaptor-framework \
-Werror -Wall
-libdali_feedback_plugin_la_LIBADD = \
+LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD = \
$(DLOG_LIBS) \
$(MMFSOUND_LIBS)
-libdali_feedback_plugin_la_LDFLAGS = \
+LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS = \
-rdynamic
-if MOBILE_PROFILE
-libdali_feedback_plugin_la_CXXFLAGS += \
- $(DEVICED_CFLAGS)
+LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD += \
+ $(FEEDBACK_LIBS)
-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 ENABLE_CXX03_ABI
-if COMMON_PROFILE
-libdali_feedback_plugin_la_CXXFLAGS += \
- $(HAPTIC_CFLAGS)
+if USE_FEEDBACK
+libdali_feedback_plugin_la_SOURCES = $(LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES)
+libdali_feedback_plugin_la_LIBADD = $(LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD)
+libdali_feedback_plugin_la_CXXFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS)
+libdali_feedback_plugin_la_LDFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS)
-libdali_feedback_plugin_la_LIBADD += \
- $(HAPTIC_LIBS)
+if ENABLE_RENAME_SO
+#rename
+install: install-am
+ rm -rf $(libdir)/libdali_feedback_plugin.so
+ rm -rf $(libdir)/libdali_feedback_plugin-cxx03.so
+ ln -s $(libdir)/libdali_feedback_plugin.so.0.0.* $(libdir)/libdali_feedback_plugin-cxx03.so
+endif
endif
-libdali_feedback_plugin_la_LIBADD += \
- $(FEEDBACK_LIBS)
-
-
-# Bullet Physics
-libdali_bullet_plugin_la_SOURCES = \
- $(bullet_plugin_src_files)
-
-libdali_bullet_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
- $(DALICORE_CFLAGS) \
- $(DLOG_CFLAGS) \
- $(BULLET_CFLAGS) \
- -I../../.. \
- -Werror -Wall
+else # CXX03
-libdali_bullet_plugin_la_LIBADD = \
- $(DLOG_LIBS) \
- $(BULLET_LIBS)
+if USE_FEEDBACK
+libdali_feedback_plugin_cxx11_la_SOURCES = $(LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES)
+libdali_feedback_plugin_cxx11_la_LIBADD = $(LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD)
+libdali_feedback_plugin_cxx11_la_CXXFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS)
+libdali_feedback_plugin_cxx11_la_LDFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS)
-libdali_bullet_plugin_la_LDFLAGS = \
- -rdynamic
+if ENABLE_RENAME_SO
+#rename
+install: install-am
+ rm -rf $(libdir)/libdali_feedback_plugin-cxx11.so
+ rm -rf $(libdir)/libdali_feedback_plugin.so
+ ln -s $(libdir)/libdali_feedback_plugin-cxx11.so.0.0.* $(libdir)/libdali_feedback_plugin.so
+endif
+endif
-libdali_bullet_plugin_la_DEPENDENCIES =
+endif # CXX03