Public API headers are installed in the correct folder
[platform/core/uifw/dali-adaptor.git] / build / tizen / plugins / Makefile.am
index e3c2783..cb4f2fe 100644 (file)
@@ -1,14 +1,14 @@
 #
 # 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.
@@ -43,20 +43,47 @@ libdali_feedback_plugin_la_CXXFLAGS = -DDALI_COMPILATION \
                       $(DLOG_CFLAGS) \
                       $(DALICORE_CFLAGS) \
                       $(MMFSOUND_CFLAGS) \
-                      $(HAPTIC_CFLAGS) \
                       $(FEEDBACK_CFLAGS) \
-                      -I../../../adaptors/tizen \
+                      $(DALI_PROFILE_CFLAGS) \
+                      -I../../../adaptors/public-api \
+                      -I../../../adaptors/public-api/adaptor-framework \
                       -Werror -Wall
 
 libdali_feedback_plugin_la_LIBADD = \
                       $(DLOG_LIBS) \
-                      $(MMFSOUND_LIBS) \
-                      $(HAPTIC_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)
+
+
 # Bullet Physics
 libdali_bullet_plugin_la_SOURCES = \
                       $(bullet_plugin_src_files)