X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build%2Ftizen%2Fplugins%2FMakefile.am;h=bdbd546a0bc008df081672c2457919bb676b77a8;hb=f2c93c6d606a656a89299783c277ec1d56289f75;hp=60009abea6f1a9e1447f2b2c9478316306b69950;hpb=cec7ed1323c749c2ae563a3ca1036d2410a36948;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/build/tizen/plugins/Makefile.am b/build/tizen/plugins/Makefile.am index 60009ab..bdbd546 100644 --- a/build/tizen/plugins/Makefile.am +++ b/build/tizen/plugins/Makefile.am @@ -1,14 +1,14 @@ # -# 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. @@ -23,56 +23,88 @@ include ../../../plugins/file.list 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) \ - $(DEVICED_CFLAGS) \ $(FEEDBACK_CFLAGS) \ - -I../../../adaptors/tizen \ + $(DALI_PROFILE_CFLAGS) \ + $(DALI_ADAPTOR_CFLAGS) \ + -I../../../ \ -Werror -Wall -libdali_feedback_plugin_la_LIBADD = \ +LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD = \ $(DLOG_LIBS) \ - $(MMFSOUND_LIBS) \ - $(DEVICED_LIBS) \ - $(FEEDBACK_LIBS) + $(MMFSOUND_LIBS) -libdali_feedback_plugin_la_LDFLAGS = \ +LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS = \ -rdynamic -# Bullet Physics -libdali_bullet_plugin_la_SOURCES = \ - $(bullet_plugin_src_files) +LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD += \ + $(FEEDBACK_LIBS) -libdali_bullet_plugin_la_CXXFLAGS = -DDALI_COMPILATION \ - $(DALICORE_CFLAGS) \ - $(DLOG_CFLAGS) \ - $(BULLET_CFLAGS) \ - -I../../.. \ - -Werror -Wall +endif -libdali_bullet_plugin_la_LIBADD = \ - $(DLOG_LIBS) \ - $(BULLET_LIBS) +if ENABLE_CXX03_ABI -libdali_bullet_plugin_la_LDFLAGS = \ - -rdynamic +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) + +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 + +else # CXX03 + +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) + +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