2 # Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # Build the Dali feedback plugin
19 plugin_src_dir = ../../../plugins
21 include ../../../plugins/sounds/file.list
22 include ../../../plugins/file.list
24 plugin_sounds_dir = ../../../plugins/sounds
29 lib_LTLIBRARIES += libdali-feedback-plugin-cxx11.la
33 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
34 dalisound_DATA = ${dali_plugin_sound_files}
37 LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES = \
38 $(feedback_plugin_src_files)
41 libdali_feedback_plugin_la_DEPENDENCIES =
43 LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS = -DDALI_COMPILATION \
44 -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
49 $(DALI_PROFILE_CFLAGS) \
50 $(DALI_ADAPTOR_CFLAGS) \
54 LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD = \
58 LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS = \
61 LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD += \
67 libdali_feedback_plugin_cxx11_la_SOURCES = $(LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES)
68 libdali_feedback_plugin_cxx11_la_LIBADD = $(LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD)
69 libdali_feedback_plugin_cxx11_la_CXXFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS)
70 libdali_feedback_plugin_cxx11_la_LDFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS)
75 rm -rf $(libdir)/libdali_feedback_plugin-cxx11.so
76 rm -rf $(libdir)/libdali_feedback_plugin.so
77 ln -s $(libdir)/libdali_feedback_plugin-cxx11.so.0.0.* $(libdir)/libdali_feedback_plugin.so